Ricardo Benitez / mbed

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Mar 02 09:58:28 2016 +0100
Revision:
115:87f2f5183dfb
Child:
116:c0f6e94411f5
Release 115 of the mbed library

Changes:
- new targets - NUCLEO_F746ZG
- Bugfix - STM32F7 + STM32L4 - RTC init fix
- Bugfix - STM32L4 Set NVIC_RAM_VECTOR_ADDRESS to 0x10000000
- B96B_F446VE - CAN addition
- Changed target name from NZ32SC151 to NZ32_SC151

Who changed what in which revision?

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