mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Thu Apr 19 17:12:19 2018 +0100
Revision:
184:08ed48f1de7f
Parent:
149:156823d33999
mbed-dev library. Release version 161

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /**
<> 149:156823d33999 2 ******************************************************************************
<> 149:156823d33999 3 * @file stm32l1xx_hal_pwr_ex.h
<> 149:156823d33999 4 * @author MCD Application Team
<> 149:156823d33999 5 * @brief Header file of PWR HAL Extension module.
<> 149:156823d33999 6 ******************************************************************************
<> 149:156823d33999 7 * @attention
<> 149:156823d33999 8 *
AnnaBridge 184:08ed48f1de7f 9 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
<> 149:156823d33999 10 *
<> 149:156823d33999 11 * Redistribution and use in source and binary forms, with or without modification,
<> 149:156823d33999 12 * are permitted provided that the following conditions are met:
<> 149:156823d33999 13 * 1. Redistributions of source code must retain the above copyright notice,
<> 149:156823d33999 14 * this list of conditions and the following disclaimer.
<> 149:156823d33999 15 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 149:156823d33999 16 * this list of conditions and the following disclaimer in the documentation
<> 149:156823d33999 17 * and/or other materials provided with the distribution.
<> 149:156823d33999 18 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 149:156823d33999 19 * may be used to endorse or promote products derived from this software
<> 149:156823d33999 20 * without specific prior written permission.
<> 149:156823d33999 21 *
<> 149:156823d33999 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 149:156823d33999 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 149:156823d33999 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 149:156823d33999 25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 149:156823d33999 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 149:156823d33999 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 149:156823d33999 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 149:156823d33999 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 149:156823d33999 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 149:156823d33999 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 149:156823d33999 32 *
<> 149:156823d33999 33 ******************************************************************************
<> 149:156823d33999 34 */
<> 149:156823d33999 35
<> 149:156823d33999 36 /* Define to prevent recursive inclusion -------------------------------------*/
<> 149:156823d33999 37 #ifndef __STM32L1xx_HAL_PWR_EX_H
<> 149:156823d33999 38 #define __STM32L1xx_HAL_PWR_EX_H
<> 149:156823d33999 39
<> 149:156823d33999 40 #ifdef __cplusplus
<> 149:156823d33999 41 extern "C" {
<> 149:156823d33999 42 #endif
<> 149:156823d33999 43
<> 149:156823d33999 44 /* Includes ------------------------------------------------------------------*/
<> 149:156823d33999 45 #include "stm32l1xx_hal_def.h"
<> 149:156823d33999 46
<> 149:156823d33999 47 /** @addtogroup STM32L1xx_HAL_Driver
<> 149:156823d33999 48 * @{
<> 149:156823d33999 49 */
<> 149:156823d33999 50
<> 149:156823d33999 51 /** @addtogroup PWREx
<> 149:156823d33999 52 * @{
<> 149:156823d33999 53 */
<> 149:156823d33999 54
<> 149:156823d33999 55
<> 149:156823d33999 56 /* Exported types ------------------------------------------------------------*/
<> 149:156823d33999 57 /* Exported constants --------------------------------------------------------*/
<> 149:156823d33999 58
<> 149:156823d33999 59 /** @defgroup PWREx_Exported_Constants PWREx Exported Constants
<> 149:156823d33999 60 * @{
<> 149:156823d33999 61 */
<> 149:156823d33999 62
<> 149:156823d33999 63
<> 149:156823d33999 64 /** @defgroup PWREx_WakeUp_Pins PWREx Wakeup Pins
<> 149:156823d33999 65 * @{
<> 149:156823d33999 66 */
<> 149:156823d33999 67
<> 149:156823d33999 68 #if defined (STM32L151xCA) || defined (STM32L151xD) || defined (STM32L152xCA) || defined (STM32L152xD) || defined (STM32L162xCA) || defined (STM32L162xD) || defined (STM32L151xE) || defined (STM32L151xDX) || defined (STM32L152xE) || defined (STM32L152xDX) || defined (STM32L162xE) || defined (STM32L162xDX) || defined (STM32L151xB) || defined (STM32L151xBA) || defined (STM32L151xC) || defined (STM32L152xB) || defined (STM32L152xBA) || defined (STM32L152xC) || defined (STM32L162xC)
<> 149:156823d33999 69
<> 149:156823d33999 70 #define PWR_WAKEUP_PIN1 PWR_CSR_EWUP1
<> 149:156823d33999 71 #define PWR_WAKEUP_PIN2 PWR_CSR_EWUP2
<> 149:156823d33999 72 #define PWR_WAKEUP_PIN3 PWR_CSR_EWUP3
<> 149:156823d33999 73 #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
<> 149:156823d33999 74 ((PIN) == PWR_WAKEUP_PIN2) || \
<> 149:156823d33999 75 ((PIN) == PWR_WAKEUP_PIN3))
<> 149:156823d33999 76 #else
<> 149:156823d33999 77 #define PWR_WAKEUP_PIN1 PWR_CSR_EWUP1
<> 149:156823d33999 78 #define PWR_WAKEUP_PIN2 PWR_CSR_EWUP2
<> 149:156823d33999 79 #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
<> 149:156823d33999 80 ((PIN) == PWR_WAKEUP_PIN2))
<> 149:156823d33999 81 #endif
<> 149:156823d33999 82
<> 149:156823d33999 83 /**
<> 149:156823d33999 84 * @}
<> 149:156823d33999 85 */
<> 149:156823d33999 86
<> 149:156823d33999 87 /**
<> 149:156823d33999 88 * @}
<> 149:156823d33999 89 */
<> 149:156823d33999 90
<> 149:156823d33999 91 /* Exported macro ------------------------------------------------------------*/
<> 149:156823d33999 92 /* Exported functions --------------------------------------------------------*/
<> 149:156823d33999 93
<> 149:156823d33999 94 /** @defgroup PWREx_Exported_Functions PWREx Exported Functions
<> 149:156823d33999 95 * @{
<> 149:156823d33999 96 */
<> 149:156823d33999 97
<> 149:156823d33999 98 /** @addtogroup PWREx_Exported_Functions_Group1
<> 149:156823d33999 99 * @{
<> 149:156823d33999 100 */
<> 149:156823d33999 101
<> 149:156823d33999 102 /* Peripheral Control methods ************************************************/
<> 149:156823d33999 103 uint32_t HAL_PWREx_GetVoltageRange(void);
<> 149:156823d33999 104 void HAL_PWREx_EnableFastWakeUp(void);
<> 149:156823d33999 105 void HAL_PWREx_DisableFastWakeUp(void);
<> 149:156823d33999 106 void HAL_PWREx_EnableUltraLowPower(void);
<> 149:156823d33999 107 void HAL_PWREx_DisableUltraLowPower(void);
<> 149:156823d33999 108 void HAL_PWREx_EnableLowPowerRunMode(void);
<> 149:156823d33999 109 HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode(void);
<> 149:156823d33999 110
<> 149:156823d33999 111 /**
<> 149:156823d33999 112 * @}
<> 149:156823d33999 113 */
<> 149:156823d33999 114
<> 149:156823d33999 115 /**
<> 149:156823d33999 116 * @}
<> 149:156823d33999 117 */
<> 149:156823d33999 118
<> 149:156823d33999 119 /**
<> 149:156823d33999 120 * @}
<> 149:156823d33999 121 */
<> 149:156823d33999 122
<> 149:156823d33999 123 /**
<> 149:156823d33999 124 * @}
<> 149:156823d33999 125 */
<> 149:156823d33999 126
<> 149:156823d33999 127 #ifdef __cplusplus
<> 149:156823d33999 128 }
<> 149:156823d33999 129 #endif
<> 149:156823d33999 130
<> 149:156823d33999 131
<> 149:156823d33999 132 #endif /* __STM32L1xx_HAL_PWR_EX_H */
<> 149:156823d33999 133
<> 149:156823d33999 134 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/