Fawwaz Nadzmy / mbed-STM

Fork of mbed-dev by mbed official

Committer:
fwndz
Date:
Thu Dec 22 05:12:40 2016 +0000
Revision:
153:9398a535854b
Parent:
149:156823d33999
device target maximize

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