stm32f4xx_hal_pwr.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_hal_pwr.h
  4. * @author MCD Application Team
  5. * @version V1.3.0
  6. * @date 09-March-2015
  7. * @brief Header file of PWR HAL module.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
  12. *
  13. * Redistribution and use in source and binary forms, with or without modification,
  14. * are permitted provided that the following conditions are met:
  15. * 1. Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. * 2. Redistributions in binary form must reproduce the above copyright notice,
  18. * this list of conditions and the following disclaimer in the documentation
  19. * and/or other materials provided with the distribution.
  20. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  21. * may be used to endorse or promote products derived from this software
  22. * without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  27. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  28. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  30. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  31. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  32. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  33. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. *
  35. ******************************************************************************
  36. */
  37. /* Define to prevent recursive inclusion -------------------------------------*/
  38. #ifndef __STM32F4xx_HAL_PWR_H
  39. #define __STM32F4xx_HAL_PWR_H
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. /* Includes ------------------------------------------------------------------*/
  44. #include "stm32f4xx_hal_def.h"
  45. /** @addtogroup STM32F4xx_HAL_Driver
  46. * @{
  47. */
  48. /** @addtogroup PWR
  49. * @{
  50. */
  51. /* Exported types ------------------------------------------------------------*/
  52. /** @defgroup PWR_Exported_Types PWR Exported Types
  53. * @{
  54. */
  55. /**
  56. * @brief PWR PVD configuration structure definition
  57. */
  58. typedef struct
  59. {
  60. uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level.
  61. This parameter can be a value of @ref PWR_PVD_detection_level */
  62. uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins.
  63. This parameter can be a value of @ref PWR_PVD_Mode */
  64. }PWR_PVDTypeDef;
  65. /**
  66. * @}
  67. */
  68. /* Exported constants --------------------------------------------------------*/
  69. /** @defgroup PWR_Exported_Constants PWR Exported Constants
  70. * @{
  71. */
  72. /** @defgroup PWR_WakeUp_Pins PWR WakeUp Pins
  73. * @{
  74. */
  75. #define PWR_WAKEUP_PIN1 ((uint32_t)0x00000100)
  76. #define PWR_WAKEUP_PIN2 ((uint32_t)0x00000080)
  77. /**
  78. * @}
  79. */
  80. /** @defgroup PWR_PVD_detection_level PWR PVD detection level
  81. * @{
  82. */
  83. #define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0
  84. #define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1
  85. #define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2
  86. #define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3
  87. #define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4
  88. #define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5
  89. #define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6
  90. #define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7/* External input analog voltage
  91. (Compare internally to VREFINT) */
  92. /**
  93. * @}
  94. */
  95. /** @defgroup PWR_PVD_Mode PWR PVD Mode
  96. * @{
  97. */
  98. #define PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000) /*!< basic mode is used */
  99. #define PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001) /*!< External Interrupt Mode with Rising edge trigger detection */
  100. #define PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002) /*!< External Interrupt Mode with Falling edge trigger detection */
  101. #define PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
  102. #define PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001) /*!< Event Mode with Rising edge trigger detection */
  103. #define PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002) /*!< Event Mode with Falling edge trigger detection */
  104. #define PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003) /*!< Event Mode with Rising/Falling edge trigger detection */
  105. /**
  106. * @}
  107. */
  108. /** @defgroup PWR_Regulator_state_in_STOP_mode PWR Regulator state in SLEEP/STOP mode
  109. * @{
  110. */
  111. #define PWR_MAINREGULATOR_ON ((uint32_t)0x00000000)
  112. #define PWR_LOWPOWERREGULATOR_ON PWR_CR_LPDS
  113. /**
  114. * @}
  115. */
  116. /** @defgroup PWR_SLEEP_mode_entry PWR SLEEP mode entry
  117. * @{
  118. */
  119. #define PWR_SLEEPENTRY_WFI ((uint8_t)0x01)
  120. #define PWR_SLEEPENTRY_WFE ((uint8_t)0x02)
  121. /**
  122. * @}
  123. */
  124. /** @defgroup PWR_STOP_mode_entry PWR STOP mode entry
  125. * @{
  126. */
  127. #define PWR_STOPENTRY_WFI ((uint8_t)0x01)
  128. #define PWR_STOPENTRY_WFE ((uint8_t)0x02)
  129. /**
  130. * @}
  131. */
  132. /** @defgroup PWR_Flag PWR Flag
  133. * @{
  134. */
  135. #define PWR_FLAG_WU PWR_CSR_WUF
  136. #define PWR_FLAG_SB PWR_CSR_SBF
  137. #define PWR_FLAG_PVDO PWR_CSR_PVDO
  138. #define PWR_FLAG_BRR PWR_CSR_BRR
  139. #define PWR_FLAG_VOSRDY PWR_CSR_VOSRDY
  140. /**
  141. * @}
  142. */
  143. /**
  144. * @}
  145. */
  146. /* Exported macro ------------------------------------------------------------*/
  147. /** @defgroup PWR_Exported_Macro PWR Exported Macro
  148. * @{
  149. */
  150. #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F415xx) || defined(STM32F17xx)
  151. /** @brief macros configure the main internal regulator output voltage.
  152. * @param __REGULATOR__: specifies the regulator output voltage to achieve
  153. * a tradeoff between performance and power consumption when the device does
  154. * not operate at the maximum frequency (refer to the datasheets for more details).
  155. * This parameter can be one of the following values:
  156. * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode
  157. * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode
  158. * @retval None
  159. */
  160. #define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) do { \
  161. __IO uint32_t tmpreg; \
  162. MODIFY_REG(PWR->CR, PWR_CR_VOS, (__REGULATOR__)); \
  163. /* Delay after an RCC peripheral clock enabling */ \
  164. tmpreg = READ_BIT(PWR->CR, PWR_CR_VOS); \
  165. UNUSED(tmpreg); \
  166. } while(0)
  167. #else
  168. /** @brief macros configure the main internal regulator output voltage.
  169. * @param __REGULATOR__: specifies the regulator output voltage to achieve
  170. * a tradeoff between performance and power consumption when the device does
  171. * not operate at the maximum frequency (refer to the datasheets for more details).
  172. * This parameter can be one of the following values:
  173. * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode
  174. * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode
  175. * @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode
  176. * @retval None
  177. */
  178. #define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) do { \
  179. __IO uint32_t tmpreg; \
  180. MODIFY_REG(PWR->CR, PWR_CR_VOS, (__REGULATOR__)); \
  181. /* Delay after an RCC peripheral clock enabling */ \
  182. tmpreg = READ_BIT(PWR->CR, PWR_CR_VOS); \
  183. UNUSED(tmpreg); \
  184. } while(0)
  185. #endif /* STM32F405xx || STM32F407xx || STM32F415xx || STM32F417xx */
  186. /** @brief Check PWR flag is set or not.
  187. * @param __FLAG__: specifies the flag to check.
  188. * This parameter can be one of the following values:
  189. * @arg PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event
  190. * was received from the WKUP pin or from the RTC alarm (Alarm A
  191. * or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup.
  192. * An additional wakeup event is detected if the WKUP pin is enabled
  193. * (by setting the EWUP bit) when the WKUP pin level is already high.
  194. * @arg PWR_FLAG_SB: StandBy flag. This flag indicates that the system was
  195. * resumed from StandBy mode.
  196. * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled
  197. * by the HAL_PWR_EnablePVD() function. The PVD is stopped by Standby mode
  198. * For this reason, this bit is equal to 0 after Standby or reset
  199. * until the PVDE bit is set.
  200. * @arg PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset
  201. * when the device wakes up from Standby mode or by a system reset
  202. * or power reset.
  203. * @arg PWR_FLAG_VOSRDY: This flag indicates that the Regulator voltage
  204. * scaling output selection is ready.
  205. * @retval The new state of __FLAG__ (TRUE or FALSE).
  206. */
  207. #define __HAL_PWR_GET_FLAG(__FLAG__) ((PWR->CSR & (__FLAG__)) == (__FLAG__))
  208. /** @brief Clear the PWR's pending flags.
  209. * @param __FLAG__: specifies the flag to clear.
  210. * This parameter can be one of the following values:
  211. * @arg PWR_FLAG_WU: Wake Up flag
  212. * @arg PWR_FLAG_SB: StandBy flag
  213. */
  214. #define __HAL_PWR_CLEAR_FLAG(__FLAG__) (PWR->CR |= (__FLAG__) << 2)
  215. /**
  216. * @brief Enable the PVD Exti Line 16.
  217. * @retval None.
  218. */
  219. #define __HAL_PWR_PVD_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_PVD))
  220. /**
  221. * @brief Disable the PVD EXTI Line 16.
  222. * @retval None.
  223. */
  224. #define __HAL_PWR_PVD_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))
  225. /**
  226. * @brief Enable event on PVD Exti Line 16.
  227. * @retval None.
  228. */
  229. #define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() (EXTI->EMR |= (PWR_EXTI_LINE_PVD))
  230. /**
  231. * @brief Disable event on PVD Exti Line 16.
  232. * @retval None.
  233. */
  234. #define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))
  235. /**
  236. * @brief Enable the PVD Extended Interrupt Rising Trigger.
  237. * @retval None.
  238. */
  239. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
  240. /**
  241. * @brief Disable the PVD Extended Interrupt Rising Trigger.
  242. * @retval None.
  243. */
  244. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
  245. /**
  246. * @brief Enable the PVD Extended Interrupt Falling Trigger.
  247. * @retval None.
  248. */
  249. #define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
  250. /**
  251. * @brief Disable the PVD Extended Interrupt Falling Trigger.
  252. * @retval None.
  253. */
  254. #define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
  255. /**
  256. * @brief PVD EXTI line configuration: set rising & falling edge trigger.
  257. * @retval None.
  258. */
  259. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();
  260. /**
  261. * @brief Disable the PVD Extended Interrupt Rising & Falling Trigger.
  262. * This parameter can be:
  263. * @retval None.
  264. */
  265. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();
  266. /**
  267. * @brief checks whether the specified PVD Exti interrupt flag is set or not.
  268. * @retval EXTI PVD Line Status.
  269. */
  270. #define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD))
  271. /**
  272. * @brief Clear the PVD Exti flag.
  273. * @retval None.
  274. */
  275. #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD))
  276. /**
  277. * @brief Generates a Software interrupt on PVD EXTI line.
  278. * @retval None
  279. */
  280. #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))
  281. /**
  282. * @}
  283. */
  284. /* Include PWR HAL Extension module */
  285. #include "stm32f4xx_hal_pwr_ex.h"
  286. /* Exported functions --------------------------------------------------------*/
  287. /** @addtogroup PWR_Exported_Functions PWR Exported Functions
  288. * @{
  289. */
  290. /** @addtogroup PWR_Exported_Functions_Group1 Initialization and de-initialization functions
  291. * @{
  292. */
  293. /* Initialization and de-initialization functions *****************************/
  294. void HAL_PWR_DeInit(void);
  295. void HAL_PWR_EnableBkUpAccess(void);
  296. void HAL_PWR_DisableBkUpAccess(void);
  297. /**
  298. * @}
  299. */
  300. /** @addtogroup PWR_Exported_Functions_Group2 Peripheral Control functions
  301. * @{
  302. */
  303. /* Peripheral Control functions **********************************************/
  304. /* PVD configuration */
  305. void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD);
  306. void HAL_PWR_EnablePVD(void);
  307. void HAL_PWR_DisablePVD(void);
  308. /* WakeUp pins configuration */
  309. void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinx);
  310. void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx);
  311. /* Low Power modes entry */
  312. void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry);
  313. void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry);
  314. void HAL_PWR_EnterSTANDBYMode(void);
  315. /* Power PVD IRQ Handler */
  316. void HAL_PWR_PVD_IRQHandler(void);
  317. void HAL_PWR_PVDCallback(void);
  318. /* Cortex System Control functions *******************************************/
  319. void HAL_PWR_EnableSleepOnExit(void);
  320. void HAL_PWR_DisableSleepOnExit(void);
  321. void HAL_PWR_EnableSEVOnPend(void);
  322. void HAL_PWR_DisableSEVOnPend(void);
  323. /**
  324. * @}
  325. */
  326. /**
  327. * @}
  328. */
  329. /* Private types -------------------------------------------------------------*/
  330. /* Private variables ---------------------------------------------------------*/
  331. /* Private constants ---------------------------------------------------------*/
  332. /** @defgroup PWR_Private_Constants PWR Private Constants
  333. * @{
  334. */
  335. /** @defgroup PWR_PVD_EXTI_Line PWR PVD EXTI Line
  336. * @{
  337. */
  338. #define PWR_EXTI_LINE_PVD ((uint32_t)EXTI_IMR_MR16) /*!< External interrupt line 16 Connected to the PVD EXTI Line */
  339. /**
  340. * @}
  341. */
  342. /** @defgroup PWR_register_alias_address PWR Register alias address
  343. * @{
  344. */
  345. /* ------------- PWR registers bit address in the alias region ---------------*/
  346. #define PWR_OFFSET (PWR_BASE - PERIPH_BASE)
  347. #define PWR_CR_OFFSET 0x00
  348. #define PWR_CSR_OFFSET 0x04
  349. #define PWR_CR_OFFSET_BB (PWR_OFFSET + PWR_CR_OFFSET)
  350. #define PWR_CSR_OFFSET_BB (PWR_OFFSET + PWR_CSR_OFFSET)
  351. /**
  352. * @}
  353. */
  354. /** @defgroup PWR_CR_register_alias PWR CR Register alias address
  355. * @{
  356. */
  357. /* --- CR Register ---*/
  358. /* Alias word address of DBP bit */
  359. #define DBP_BIT_NUMBER POSITION_VAL(PWR_CR_DBP)
  360. #define CR_DBP_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32) + (DBP_BIT_NUMBER * 4))
  361. /* Alias word address of PVDE bit */
  362. #define PVDE_BIT_NUMBER POSITION_VAL(PWR_CR_PVDE)
  363. #define CR_PVDE_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32) + (PVDE_BIT_NUMBER * 4))
  364. /* Alias word address of PMODE bit */
  365. #define PMODE_BIT_NUMBER POSITION_VAL(PWR_CR_PMODE)
  366. #define CR_PMODE_BB (uint32_t)(PERIPH_BB_BASE + (PWR_CR_OFFSET_BB * 32) + (PMODE_BIT_NUMBER * 4))
  367. /**
  368. * @}
  369. */
  370. /** @defgroup PWR_CSR_register_alias PWR CSR Register alias address
  371. * @{
  372. */
  373. /* --- CSR Register ---*/
  374. /* Alias word address of EWUP bit */
  375. #define EWUP_BIT_NUMBER POSITION_VAL(PWR_CSR_EWUP)
  376. #define CSR_EWUP_BB (PERIPH_BB_BASE + (PWR_CSR_OFFSET_BB * 32) + (EWUP_BIT_NUMBER * 4))
  377. /**
  378. * @}
  379. */
  380. /**
  381. * @}
  382. */
  383. /* Private macros ------------------------------------------------------------*/
  384. /** @defgroup PWR_Private_Macros PWR Private Macros
  385. * @{
  386. */
  387. /** @defgroup PWR_IS_PWR_Definitions PWR Private macros to check input parameters
  388. * @{
  389. */
  390. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || ((PIN) == PWR_WAKEUP_PIN2))
  391. #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
  392. ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
  393. ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
  394. ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
  395. #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
  396. ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
  397. ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
  398. ((MODE) == PWR_PVD_MODE_NORMAL))
  399. #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_ON) || \
  400. ((REGULATOR) == PWR_LOWPOWERREGULATOR_ON))
  401. #define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))
  402. #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE))
  403. /**
  404. * @}
  405. */
  406. /**
  407. * @}
  408. */
  409. /**
  410. * @}
  411. */
  412. /**
  413. * @}
  414. */
  415. #ifdef __cplusplus
  416. }
  417. #endif
  418. #endif /* __STM32F4xx_HAL_PWR_H */
  419. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/