SPKT

Dependents:   WAV

Committer:
phungductung
Date:
Tue Jun 04 21:51:46 2019 +0000
Revision:
0:e87aa4c49e95
libray

Who changed what in which revision?

UserRevisionLine numberNew contents of line
phungductung 0:e87aa4c49e95 1 /**
phungductung 0:e87aa4c49e95 2 ******************************************************************************
phungductung 0:e87aa4c49e95 3 * @file stm32f7xx_hal_pwr_ex.h
phungductung 0:e87aa4c49e95 4 * @author MCD Application Team
phungductung 0:e87aa4c49e95 5 * @version V1.0.4
phungductung 0:e87aa4c49e95 6 * @date 09-December-2015
phungductung 0:e87aa4c49e95 7 * @brief Header file of PWR HAL Extension module.
phungductung 0:e87aa4c49e95 8 ******************************************************************************
phungductung 0:e87aa4c49e95 9 * @attention
phungductung 0:e87aa4c49e95 10 *
phungductung 0:e87aa4c49e95 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
phungductung 0:e87aa4c49e95 12 *
phungductung 0:e87aa4c49e95 13 * Redistribution and use in source and binary forms, with or without modification,
phungductung 0:e87aa4c49e95 14 * are permitted provided that the following conditions are met:
phungductung 0:e87aa4c49e95 15 * 1. Redistributions of source code must retain the above copyright notice,
phungductung 0:e87aa4c49e95 16 * this list of conditions and the following disclaimer.
phungductung 0:e87aa4c49e95 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
phungductung 0:e87aa4c49e95 18 * this list of conditions and the following disclaimer in the documentation
phungductung 0:e87aa4c49e95 19 * and/or other materials provided with the distribution.
phungductung 0:e87aa4c49e95 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
phungductung 0:e87aa4c49e95 21 * may be used to endorse or promote products derived from this software
phungductung 0:e87aa4c49e95 22 * without specific prior written permission.
phungductung 0:e87aa4c49e95 23 *
phungductung 0:e87aa4c49e95 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
phungductung 0:e87aa4c49e95 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
phungductung 0:e87aa4c49e95 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
phungductung 0:e87aa4c49e95 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
phungductung 0:e87aa4c49e95 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
phungductung 0:e87aa4c49e95 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
phungductung 0:e87aa4c49e95 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
phungductung 0:e87aa4c49e95 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
phungductung 0:e87aa4c49e95 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
phungductung 0:e87aa4c49e95 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
phungductung 0:e87aa4c49e95 34 *
phungductung 0:e87aa4c49e95 35 ******************************************************************************
phungductung 0:e87aa4c49e95 36 */
phungductung 0:e87aa4c49e95 37
phungductung 0:e87aa4c49e95 38 /* Define to prevent recursive inclusion -------------------------------------*/
phungductung 0:e87aa4c49e95 39 #ifndef __STM32F7xx_HAL_PWR_EX_H
phungductung 0:e87aa4c49e95 40 #define __STM32F7xx_HAL_PWR_EX_H
phungductung 0:e87aa4c49e95 41
phungductung 0:e87aa4c49e95 42 #ifdef __cplusplus
phungductung 0:e87aa4c49e95 43 extern "C" {
phungductung 0:e87aa4c49e95 44 #endif
phungductung 0:e87aa4c49e95 45
phungductung 0:e87aa4c49e95 46 /* Includes ------------------------------------------------------------------*/
phungductung 0:e87aa4c49e95 47 #include "stm32f7xx_hal_def.h"
phungductung 0:e87aa4c49e95 48
phungductung 0:e87aa4c49e95 49 /** @addtogroup STM32F7xx_HAL_Driver
phungductung 0:e87aa4c49e95 50 * @{
phungductung 0:e87aa4c49e95 51 */
phungductung 0:e87aa4c49e95 52
phungductung 0:e87aa4c49e95 53 /** @addtogroup PWREx
phungductung 0:e87aa4c49e95 54 * @{
phungductung 0:e87aa4c49e95 55 */
phungductung 0:e87aa4c49e95 56
phungductung 0:e87aa4c49e95 57 /* Exported types ------------------------------------------------------------*/
phungductung 0:e87aa4c49e95 58 /* Exported constants --------------------------------------------------------*/
phungductung 0:e87aa4c49e95 59 /** @defgroup PWREx_Exported_Constants PWREx Exported Constants
phungductung 0:e87aa4c49e95 60 * @{
phungductung 0:e87aa4c49e95 61 */
phungductung 0:e87aa4c49e95 62 /** @defgroup PWREx_WakeUp_Pins PWREx Wake Up Pins
phungductung 0:e87aa4c49e95 63 * @{
phungductung 0:e87aa4c49e95 64 */
phungductung 0:e87aa4c49e95 65 #define PWR_WAKEUP_PIN1 PWR_CSR2_EWUP1
phungductung 0:e87aa4c49e95 66 #define PWR_WAKEUP_PIN2 PWR_CSR2_EWUP2
phungductung 0:e87aa4c49e95 67 #define PWR_WAKEUP_PIN3 PWR_CSR2_EWUP3
phungductung 0:e87aa4c49e95 68 #define PWR_WAKEUP_PIN4 PWR_CSR2_EWUP4
phungductung 0:e87aa4c49e95 69 #define PWR_WAKEUP_PIN5 PWR_CSR2_EWUP5
phungductung 0:e87aa4c49e95 70 #define PWR_WAKEUP_PIN6 PWR_CSR2_EWUP6
phungductung 0:e87aa4c49e95 71 #define PWR_WAKEUP_PIN1_HIGH PWR_CSR2_EWUP1
phungductung 0:e87aa4c49e95 72 #define PWR_WAKEUP_PIN2_HIGH PWR_CSR2_EWUP2
phungductung 0:e87aa4c49e95 73 #define PWR_WAKEUP_PIN3_HIGH PWR_CSR2_EWUP3
phungductung 0:e87aa4c49e95 74 #define PWR_WAKEUP_PIN4_HIGH PWR_CSR2_EWUP4
phungductung 0:e87aa4c49e95 75 #define PWR_WAKEUP_PIN5_HIGH PWR_CSR2_EWUP5
phungductung 0:e87aa4c49e95 76 #define PWR_WAKEUP_PIN6_HIGH PWR_CSR2_EWUP6
phungductung 0:e87aa4c49e95 77 #define PWR_WAKEUP_PIN1_LOW (uint32_t)((PWR_CR2_WUPP1<<6) | PWR_CSR2_EWUP1)
phungductung 0:e87aa4c49e95 78 #define PWR_WAKEUP_PIN2_LOW (uint32_t)((PWR_CR2_WUPP2<<6) | PWR_CSR2_EWUP2)
phungductung 0:e87aa4c49e95 79 #define PWR_WAKEUP_PIN3_LOW (uint32_t)((PWR_CR2_WUPP3<<6) | PWR_CSR2_EWUP3)
phungductung 0:e87aa4c49e95 80 #define PWR_WAKEUP_PIN4_LOW (uint32_t)((PWR_CR2_WUPP4<<6) | PWR_CSR2_EWUP4)
phungductung 0:e87aa4c49e95 81 #define PWR_WAKEUP_PIN5_LOW (uint32_t)((PWR_CR2_WUPP5<<6) | PWR_CSR2_EWUP5)
phungductung 0:e87aa4c49e95 82 #define PWR_WAKEUP_PIN6_LOW (uint32_t)((PWR_CR2_WUPP6<<6) | PWR_CSR2_EWUP6)
phungductung 0:e87aa4c49e95 83
phungductung 0:e87aa4c49e95 84 /**
phungductung 0:e87aa4c49e95 85 * @}
phungductung 0:e87aa4c49e95 86 */
phungductung 0:e87aa4c49e95 87
phungductung 0:e87aa4c49e95 88 /** @defgroup PWREx_Regulator_state_in_UnderDrive_mode PWREx Regulator state in UnderDrive mode
phungductung 0:e87aa4c49e95 89 * @{
phungductung 0:e87aa4c49e95 90 */
phungductung 0:e87aa4c49e95 91 #define PWR_MAINREGULATOR_UNDERDRIVE_ON PWR_CR1_MRUDS
phungductung 0:e87aa4c49e95 92 #define PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON ((uint32_t)(PWR_CR1_LPDS | PWR_CR1_LPUDS))
phungductung 0:e87aa4c49e95 93 /**
phungductung 0:e87aa4c49e95 94 * @}
phungductung 0:e87aa4c49e95 95 */
phungductung 0:e87aa4c49e95 96
phungductung 0:e87aa4c49e95 97 /** @defgroup PWREx_Over_Under_Drive_Flag PWREx Over Under Drive Flag
phungductung 0:e87aa4c49e95 98 * @{
phungductung 0:e87aa4c49e95 99 */
phungductung 0:e87aa4c49e95 100 #define PWR_FLAG_ODRDY PWR_CSR1_ODRDY
phungductung 0:e87aa4c49e95 101 #define PWR_FLAG_ODSWRDY PWR_CSR1_ODSWRDY
phungductung 0:e87aa4c49e95 102 #define PWR_FLAG_UDRDY PWR_CSR1_UDSWRDY
phungductung 0:e87aa4c49e95 103 /**
phungductung 0:e87aa4c49e95 104 * @}
phungductung 0:e87aa4c49e95 105 */
phungductung 0:e87aa4c49e95 106
phungductung 0:e87aa4c49e95 107 /** @defgroup PWREx_Wakeup_Pins_Flag PWREx Wake Up Pin Flags
phungductung 0:e87aa4c49e95 108 * @{
phungductung 0:e87aa4c49e95 109 */
phungductung 0:e87aa4c49e95 110 #define PWR_WAKEUP_PIN_FLAG1 PWR_CSR2_WUPF1
phungductung 0:e87aa4c49e95 111 #define PWR_WAKEUP_PIN_FLAG2 PWR_CSR2_WUPF2
phungductung 0:e87aa4c49e95 112 #define PWR_WAKEUP_PIN_FLAG3 PWR_CSR2_WUPF3
phungductung 0:e87aa4c49e95 113 #define PWR_WAKEUP_PIN_FLAG4 PWR_CSR2_WUPF4
phungductung 0:e87aa4c49e95 114 #define PWR_WAKEUP_PIN_FLAG5 PWR_CSR2_WUPF5
phungductung 0:e87aa4c49e95 115 #define PWR_WAKEUP_PIN_FLAG6 PWR_CSR2_WUPF6
phungductung 0:e87aa4c49e95 116 /**
phungductung 0:e87aa4c49e95 117 * @}
phungductung 0:e87aa4c49e95 118 */
phungductung 0:e87aa4c49e95 119
phungductung 0:e87aa4c49e95 120 /**
phungductung 0:e87aa4c49e95 121 * @}
phungductung 0:e87aa4c49e95 122 */
phungductung 0:e87aa4c49e95 123
phungductung 0:e87aa4c49e95 124 /* Exported macro ------------------------------------------------------------*/
phungductung 0:e87aa4c49e95 125 /** @defgroup PWREx_Exported_Macro PWREx Exported Macro
phungductung 0:e87aa4c49e95 126 * @{
phungductung 0:e87aa4c49e95 127 */
phungductung 0:e87aa4c49e95 128 /** @brief Macros to enable or disable the Over drive mode.
phungductung 0:e87aa4c49e95 129 */
phungductung 0:e87aa4c49e95 130 #define __HAL_PWR_OVERDRIVE_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_ODEN)
phungductung 0:e87aa4c49e95 131 #define __HAL_PWR_OVERDRIVE_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODEN))
phungductung 0:e87aa4c49e95 132
phungductung 0:e87aa4c49e95 133 /** @brief Macros to enable or disable the Over drive switching.
phungductung 0:e87aa4c49e95 134 */
phungductung 0:e87aa4c49e95 135 #define __HAL_PWR_OVERDRIVESWITCHING_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_ODSWEN)
phungductung 0:e87aa4c49e95 136 #define __HAL_PWR_OVERDRIVESWITCHING_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODSWEN))
phungductung 0:e87aa4c49e95 137
phungductung 0:e87aa4c49e95 138 /** @brief Macros to enable or disable the Under drive mode.
phungductung 0:e87aa4c49e95 139 * @note This mode is enabled only with STOP low power mode.
phungductung 0:e87aa4c49e95 140 * In this mode, the 1.2V domain is preserved in reduced leakage mode. This
phungductung 0:e87aa4c49e95 141 * mode is only available when the main regulator or the low power regulator
phungductung 0:e87aa4c49e95 142 * is in low voltage mode.
phungductung 0:e87aa4c49e95 143 * @note If the Under-drive mode was enabled, it is automatically disabled after
phungductung 0:e87aa4c49e95 144 * exiting Stop mode.
phungductung 0:e87aa4c49e95 145 * When the voltage regulator operates in Under-drive mode, an additional
phungductung 0:e87aa4c49e95 146 * startup delay is induced when waking up from Stop mode.
phungductung 0:e87aa4c49e95 147 */
phungductung 0:e87aa4c49e95 148 #define __HAL_PWR_UNDERDRIVE_ENABLE() (PWR->CR1 |= (uint32_t)PWR_CR1_UDEN)
phungductung 0:e87aa4c49e95 149 #define __HAL_PWR_UNDERDRIVE_DISABLE() (PWR->CR1 &= (uint32_t)(~PWR_CR1_UDEN))
phungductung 0:e87aa4c49e95 150
phungductung 0:e87aa4c49e95 151 /** @brief Check PWR flag is set or not.
phungductung 0:e87aa4c49e95 152 * @param __FLAG__: specifies the flag to check.
phungductung 0:e87aa4c49e95 153 * This parameter can be one of the following values:
phungductung 0:e87aa4c49e95 154 * @arg PWR_FLAG_ODRDY: This flag indicates that the Over-drive mode
phungductung 0:e87aa4c49e95 155 * is ready
phungductung 0:e87aa4c49e95 156 * @arg PWR_FLAG_ODSWRDY: This flag indicates that the Over-drive mode
phungductung 0:e87aa4c49e95 157 * switching is ready
phungductung 0:e87aa4c49e95 158 * @arg PWR_FLAG_UDRDY: This flag indicates that the Under-drive mode
phungductung 0:e87aa4c49e95 159 * is enabled in Stop mode
phungductung 0:e87aa4c49e95 160 * @retval The new state of __FLAG__ (TRUE or FALSE).
phungductung 0:e87aa4c49e95 161 */
phungductung 0:e87aa4c49e95 162 #define __HAL_PWR_GET_ODRUDR_FLAG(__FLAG__) ((PWR->CSR1 & (__FLAG__)) == (__FLAG__))
phungductung 0:e87aa4c49e95 163
phungductung 0:e87aa4c49e95 164 /** @brief Clear the Under-Drive Ready flag.
phungductung 0:e87aa4c49e95 165 */
phungductung 0:e87aa4c49e95 166 #define __HAL_PWR_CLEAR_ODRUDR_FLAG() (PWR->CSR1 |= PWR_FLAG_UDRDY)
phungductung 0:e87aa4c49e95 167
phungductung 0:e87aa4c49e95 168 /** @brief Check Wake Up flag is set or not.
phungductung 0:e87aa4c49e95 169 * @param __WUFLAG__: specifies the Wake Up flag to check.
phungductung 0:e87aa4c49e95 170 * This parameter can be one of the following values:
phungductung 0:e87aa4c49e95 171 * @arg PWR_WAKEUP_PIN_FLAG1: Wakeup Pin Flag for PA0
phungductung 0:e87aa4c49e95 172 * @arg PWR_WAKEUP_PIN_FLAG2: Wakeup Pin Flag for PA2
phungductung 0:e87aa4c49e95 173 * @arg PWR_WAKEUP_PIN_FLAG3: Wakeup Pin Flag for PC1
phungductung 0:e87aa4c49e95 174 * @arg PWR_WAKEUP_PIN_FLAG4: Wakeup Pin Flag for PC13
phungductung 0:e87aa4c49e95 175 * @arg PWR_WAKEUP_PIN_FLAG5: Wakeup Pin Flag for PI8
phungductung 0:e87aa4c49e95 176 * @arg PWR_WAKEUP_PIN_FLAG6: Wakeup Pin Flag for PI11
phungductung 0:e87aa4c49e95 177 */
phungductung 0:e87aa4c49e95 178 #define __HAL_PWR_GET_WAKEUP_FLAG(__WUFLAG__) (PWR->CSR2 & (__WUFLAG__))
phungductung 0:e87aa4c49e95 179
phungductung 0:e87aa4c49e95 180 /** @brief Clear the WakeUp pins flags.
phungductung 0:e87aa4c49e95 181 * @param __WUFLAG__: specifies the Wake Up pin flag to clear.
phungductung 0:e87aa4c49e95 182 * This parameter can be one of the following values:
phungductung 0:e87aa4c49e95 183 * @arg PWR_WAKEUP_PIN_FLAG1: Wakeup Pin Flag for PA0
phungductung 0:e87aa4c49e95 184 * @arg PWR_WAKEUP_PIN_FLAG2: Wakeup Pin Flag for PA2
phungductung 0:e87aa4c49e95 185 * @arg PWR_WAKEUP_PIN_FLAG3: Wakeup Pin Flag for PC1
phungductung 0:e87aa4c49e95 186 * @arg PWR_WAKEUP_PIN_FLAG4: Wakeup Pin Flag for PC13
phungductung 0:e87aa4c49e95 187 * @arg PWR_WAKEUP_PIN_FLAG5: Wakeup Pin Flag for PI8
phungductung 0:e87aa4c49e95 188 * @arg PWR_WAKEUP_PIN_FLAG6: Wakeup Pin Flag for PI11
phungductung 0:e87aa4c49e95 189 */
phungductung 0:e87aa4c49e95 190 #define __HAL_PWR_CLEAR_WAKEUP_FLAG(__WUFLAG__) (PWR->CR2 |= (__WUFLAG__))
phungductung 0:e87aa4c49e95 191 /**
phungductung 0:e87aa4c49e95 192 * @}
phungductung 0:e87aa4c49e95 193 */
phungductung 0:e87aa4c49e95 194 /* Exported functions --------------------------------------------------------*/
phungductung 0:e87aa4c49e95 195 /** @addtogroup PWREx_Exported_Functions PWREx Exported Functions
phungductung 0:e87aa4c49e95 196 * @{
phungductung 0:e87aa4c49e95 197 */
phungductung 0:e87aa4c49e95 198
phungductung 0:e87aa4c49e95 199 /** @addtogroup PWREx_Exported_Functions_Group1
phungductung 0:e87aa4c49e95 200 * @{
phungductung 0:e87aa4c49e95 201 */
phungductung 0:e87aa4c49e95 202 uint32_t HAL_PWREx_GetVoltageRange(void);
phungductung 0:e87aa4c49e95 203 HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling);
phungductung 0:e87aa4c49e95 204
phungductung 0:e87aa4c49e95 205 void HAL_PWREx_EnableFlashPowerDown(void);
phungductung 0:e87aa4c49e95 206 void HAL_PWREx_DisableFlashPowerDown(void);
phungductung 0:e87aa4c49e95 207 HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void);
phungductung 0:e87aa4c49e95 208 HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void);
phungductung 0:e87aa4c49e95 209
phungductung 0:e87aa4c49e95 210 void HAL_PWREx_EnableMainRegulatorLowVoltage(void);
phungductung 0:e87aa4c49e95 211 void HAL_PWREx_DisableMainRegulatorLowVoltage(void);
phungductung 0:e87aa4c49e95 212 void HAL_PWREx_EnableLowRegulatorLowVoltage(void);
phungductung 0:e87aa4c49e95 213 void HAL_PWREx_DisableLowRegulatorLowVoltage(void);
phungductung 0:e87aa4c49e95 214
phungductung 0:e87aa4c49e95 215 HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void);
phungductung 0:e87aa4c49e95 216 HAL_StatusTypeDef HAL_PWREx_DisableOverDrive(void);
phungductung 0:e87aa4c49e95 217 HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode(uint32_t Regulator, uint8_t STOPEntry);
phungductung 0:e87aa4c49e95 218
phungductung 0:e87aa4c49e95 219 /**
phungductung 0:e87aa4c49e95 220 * @}
phungductung 0:e87aa4c49e95 221 */
phungductung 0:e87aa4c49e95 222
phungductung 0:e87aa4c49e95 223 /**
phungductung 0:e87aa4c49e95 224 * @}
phungductung 0:e87aa4c49e95 225 */
phungductung 0:e87aa4c49e95 226 /* Private types -------------------------------------------------------------*/
phungductung 0:e87aa4c49e95 227 /* Private variables ---------------------------------------------------------*/
phungductung 0:e87aa4c49e95 228 /* Private constants ---------------------------------------------------------*/
phungductung 0:e87aa4c49e95 229 /* Private macros ------------------------------------------------------------*/
phungductung 0:e87aa4c49e95 230 /** @defgroup PWREx_Private_Macros PWREx Private Macros
phungductung 0:e87aa4c49e95 231 * @{
phungductung 0:e87aa4c49e95 232 */
phungductung 0:e87aa4c49e95 233
phungductung 0:e87aa4c49e95 234 /** @defgroup PWREx_IS_PWR_Definitions PWREx Private macros to check input parameters
phungductung 0:e87aa4c49e95 235 * @{
phungductung 0:e87aa4c49e95 236 */
phungductung 0:e87aa4c49e95 237 #define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_UNDERDRIVE_ON) || \
phungductung 0:e87aa4c49e95 238 ((REGULATOR) == PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON))
phungductung 0:e87aa4c49e95 239 #define IS_PWR_WAKEUP_PIN(__PIN__) (((__PIN__) == PWR_WAKEUP_PIN1) || \
phungductung 0:e87aa4c49e95 240 ((__PIN__) == PWR_WAKEUP_PIN2) || \
phungductung 0:e87aa4c49e95 241 ((__PIN__) == PWR_WAKEUP_PIN3) || \
phungductung 0:e87aa4c49e95 242 ((__PIN__) == PWR_WAKEUP_PIN4) || \
phungductung 0:e87aa4c49e95 243 ((__PIN__) == PWR_WAKEUP_PIN5) || \
phungductung 0:e87aa4c49e95 244 ((__PIN__) == PWR_WAKEUP_PIN6) || \
phungductung 0:e87aa4c49e95 245 ((__PIN__) == PWR_WAKEUP_PIN1_HIGH) || \
phungductung 0:e87aa4c49e95 246 ((__PIN__) == PWR_WAKEUP_PIN2_HIGH) || \
phungductung 0:e87aa4c49e95 247 ((__PIN__) == PWR_WAKEUP_PIN3_HIGH) || \
phungductung 0:e87aa4c49e95 248 ((__PIN__) == PWR_WAKEUP_PIN4_HIGH) || \
phungductung 0:e87aa4c49e95 249 ((__PIN__) == PWR_WAKEUP_PIN5_HIGH) || \
phungductung 0:e87aa4c49e95 250 ((__PIN__) == PWR_WAKEUP_PIN6_HIGH) || \
phungductung 0:e87aa4c49e95 251 ((__PIN__) == PWR_WAKEUP_PIN1_LOW) || \
phungductung 0:e87aa4c49e95 252 ((__PIN__) == PWR_WAKEUP_PIN2_LOW) || \
phungductung 0:e87aa4c49e95 253 ((__PIN__) == PWR_WAKEUP_PIN3_LOW) || \
phungductung 0:e87aa4c49e95 254 ((__PIN__) == PWR_WAKEUP_PIN4_LOW) || \
phungductung 0:e87aa4c49e95 255 ((__PIN__) == PWR_WAKEUP_PIN5_LOW) || \
phungductung 0:e87aa4c49e95 256 ((__PIN__) == PWR_WAKEUP_PIN6_LOW))
phungductung 0:e87aa4c49e95 257 /**
phungductung 0:e87aa4c49e95 258 * @}
phungductung 0:e87aa4c49e95 259 */
phungductung 0:e87aa4c49e95 260
phungductung 0:e87aa4c49e95 261 /**
phungductung 0:e87aa4c49e95 262 * @}
phungductung 0:e87aa4c49e95 263 */
phungductung 0:e87aa4c49e95 264
phungductung 0:e87aa4c49e95 265 /**
phungductung 0:e87aa4c49e95 266 * @}
phungductung 0:e87aa4c49e95 267 */
phungductung 0:e87aa4c49e95 268
phungductung 0:e87aa4c49e95 269 /**
phungductung 0:e87aa4c49e95 270 * @}
phungductung 0:e87aa4c49e95 271 */
phungductung 0:e87aa4c49e95 272
phungductung 0:e87aa4c49e95 273 #ifdef __cplusplus
phungductung 0:e87aa4c49e95 274 }
phungductung 0:e87aa4c49e95 275 #endif
phungductung 0:e87aa4c49e95 276
phungductung 0:e87aa4c49e95 277
phungductung 0:e87aa4c49e95 278 #endif /* __STM32F7xx_HAL_PWR_EX_H */
phungductung 0:e87aa4c49e95 279
phungductung 0:e87aa4c49e95 280 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/