stm32h7xx_hal_pwr.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_hal_pwr.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 21-April-2017
  7. * @brief Header file of PWR HAL module.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT(c) 2017 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 __STM32H7xx_HAL_PWR_H
  39. #define __STM32H7xx_HAL_PWR_H
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. /* Includes ------------------------------------------------------------------*/
  44. #include "stm32h7xx_hal_def.h"
  45. /** @addtogroup STM32H7xx_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_PVD_detection_level PWR PVD detection level
  73. * @{
  74. */
  75. #define PWR_PVDLEVEL_0 PWR_CR1_PLS_LEV0
  76. #define PWR_PVDLEVEL_1 PWR_CR1_PLS_LEV1
  77. #define PWR_PVDLEVEL_2 PWR_CR1_PLS_LEV2
  78. #define PWR_PVDLEVEL_3 PWR_CR1_PLS_LEV3
  79. #define PWR_PVDLEVEL_4 PWR_CR1_PLS_LEV4
  80. #define PWR_PVDLEVEL_5 PWR_CR1_PLS_LEV5
  81. #define PWR_PVDLEVEL_6 PWR_CR1_PLS_LEV6
  82. #define PWR_PVDLEVEL_7 PWR_CR1_PLS_LEV7/* External input analog voltage (Compare internally to VREFINT) */
  83. /**
  84. * @}
  85. */
  86. /** @defgroup PWR_PVD_Mode PWR PVD Mode
  87. * @{
  88. */
  89. #define PWR_PVD_MODE_NORMAL ((uint32_t)0x00000000U) /*!< Basic mode is used */
  90. #define PWR_PVD_MODE_IT_RISING ((uint32_t)0x00010001U) /*!< External Interrupt Mode with Rising edge trigger detection */
  91. #define PWR_PVD_MODE_IT_FALLING ((uint32_t)0x00010002U) /*!< External Interrupt Mode with Falling edge trigger detection */
  92. #define PWR_PVD_MODE_IT_RISING_FALLING ((uint32_t)0x00010003U) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
  93. #define PWR_PVD_MODE_EVENT_RISING ((uint32_t)0x00020001U) /*!< Event Mode with Rising edge trigger detection */
  94. #define PWR_PVD_MODE_EVENT_FALLING ((uint32_t)0x00020002U) /*!< Event Mode with Falling edge trigger detection */
  95. #define PWR_PVD_MODE_EVENT_RISING_FALLING ((uint32_t)0x00020003U) /*!< Event Mode with Rising/Falling edge trigger detection */
  96. /**
  97. * @}
  98. */
  99. /** @defgroup PWR_Regulator_state_in_STOP_mode PWR Regulator state in SLEEP/STOP mode
  100. * @{
  101. */
  102. #define PWR_MAINREGULATOR_ON ((uint32_t)0x00000000U)
  103. #define PWR_LOWPOWERREGULATOR_ON PWR_CR1_LPDS
  104. /**
  105. * @}
  106. */
  107. /** @defgroup PWR_SLEEP_mode_entry PWR SLEEP mode entry
  108. * @{
  109. */
  110. #define PWR_SLEEPENTRY_WFI ((uint8_t)0x01U)
  111. #define PWR_SLEEPENTRY_WFE ((uint8_t)0x02U)
  112. /**
  113. * @}
  114. */
  115. /** @defgroup PWR_STOP_mode_entry PWR STOP mode entry
  116. * @{
  117. */
  118. #define PWR_STOPENTRY_WFI ((uint8_t)0x01U)
  119. #define PWR_STOPENTRY_WFE ((uint8_t)0x02U)
  120. /**
  121. * @}
  122. */
  123. /** @defgroup PWR_Regulator_Voltage_Scale PWR Regulator Voltage Scale
  124. * @{
  125. */
  126. #define PWR_REGULATOR_VOLTAGE_SCALE1 (PWR_D3CR_VOS_1 | PWR_D3CR_VOS_0)
  127. #define PWR_REGULATOR_VOLTAGE_SCALE2 (PWR_D3CR_VOS_1)
  128. #define PWR_REGULATOR_VOLTAGE_SCALE3 (PWR_D3CR_VOS_0)
  129. /**
  130. * @}
  131. */
  132. /** @defgroup PWR_Flag PWR Flag
  133. * @{
  134. */
  135. #define PWR_FLAG_STOP ((uint8_t)0x01U)
  136. #define PWR_FLAG_SB_D1 ((uint8_t)0x02U)
  137. #define PWR_FLAG_SB_D2 ((uint8_t)0x03U)
  138. #define PWR_FLAG_SB ((uint8_t)0x04U)
  139. #define PWR_FLAG_PVDO ((uint8_t)0x07U)
  140. #define PWR_FLAG_AVDO ((uint8_t)0x08U)
  141. #define PWR_FLAG_ACTVOSRDY ((uint8_t)0x09U)
  142. #define PWR_FLAG_ACTVOS ((uint8_t)0x0AU)
  143. #define PWR_FLAG_BRR ((uint8_t)0x0BU)
  144. #define PWR_FLAG_VOSRDY ((uint8_t)0x0CU)
  145. #define PWR_FLAG_SCUEN ((uint8_t)0x0DU)
  146. /**
  147. * @}
  148. */
  149. /** @defgroup PWR_ENABLE_WUP_Mask PWR Enable WUP Mask
  150. * @{
  151. */
  152. #define PWR_EWUP_MASK ((uint32_t)0x0FFF3F3FU)
  153. /**
  154. * @}
  155. */
  156. /**
  157. * @}
  158. */
  159. /* Exported macro ------------------------------------------------------------*/
  160. /** @defgroup PWR_Exported_Macro PWR Exported Macro
  161. * @{
  162. */
  163. /** @brief macros configure the main internal regulator output voltage.
  164. * @param __REGULATOR__: specifies the regulator output voltage to achieve
  165. * a tradeoff between performance and power consumption when the device does
  166. * not operate at the maximum frequency (refer to the datasheets for more details).
  167. * This parameter can be one of the following values:
  168. * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode
  169. * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode
  170. * @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode
  171. * @retval None
  172. */
  173. #define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__) \
  174. do { \
  175. __IO uint32_t tmpreg = 0x00; \
  176. MODIFY_REG(PWR->D3CR, PWR_D3CR_VOS, (__REGULATOR__)); \
  177. /* Delay after an RCC peripheral clock enabling */ \
  178. tmpreg = READ_BIT(PWR->D3CR, PWR_D3CR_VOS); \
  179. UNUSED(tmpreg); \
  180. } while(0)
  181. /** @brief Check PWR PVD/AVD and VOSflags are set or not.
  182. * @param __FLAG__: specifies the flag to check.
  183. * This parameter can be one of the following values:
  184. * @arg PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled
  185. * by the HAL_PWR_EnablePVD() function. The PVD is stopped by Standby mode
  186. * For this reason, this bit is equal to 0 after Standby or reset
  187. * until the PVDE bit is set.
  188. * @arg PWR_FLAG_AVDO: AVD Output. This flag is valid only if AVD is enabled
  189. * by the HAL_PWREx_EnableAVD() function. The AVD is stopped by Standby mode
  190. * For this reason, this bit is equal to 0 after Standby or reset
  191. * until the AVDE bit is set.
  192. * @arg PWR_FLAG_ACTVOSRDY: This flag indicates that the Regulator voltage
  193. * scaling output selection is ready.
  194. * @arg PWR_FLAG_VOSRDY: This flag indicates that the Regulator voltage
  195. * scaling output selection is ready.
  196. * @arg PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset
  197. * when the device wakes up from Standby mode or by a system reset
  198. * or power reset.
  199. * @arg PWR_FLAG_SB: StandBy flag
  200. * @arg PWR_FLAG_STOP: STOP flag
  201. * @arg PWR_FLAG_SB_D1: StandBy D1 flag
  202. * @arg PWR_FLAG_SB_D2: StandBy D2 flag
  203. * @retval The new state of __FLAG__ (TRUE or FALSE).
  204. */
  205. #define __HAL_PWR_GET_FLAG(__FLAG__) ( \
  206. ((__FLAG__) == PWR_FLAG_PVDO)?((PWR->CSR1 & PWR_CSR1_PVDO) == PWR_CSR1_PVDO) : \
  207. ((__FLAG__) == PWR_FLAG_AVDO)?((PWR->CSR1 & PWR_CSR1_AVDO) == PWR_CSR1_AVDO) : \
  208. ((__FLAG__) == PWR_FLAG_ACTVOSRDY)?((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == PWR_CSR1_ACTVOSRDY) : \
  209. ((__FLAG__) == PWR_FLAG_VOSRDY)?((PWR->D3CR & PWR_D3CR_VOSRDY) == PWR_D3CR_VOSRDY) : \
  210. ((__FLAG__) == PWR_FLAG_SCUEN)?((PWR->CR3 & PWR_CR3_SCUEN) == PWR_CR3_SCUEN) : \
  211. ((__FLAG__) == PWR_FLAG_BRR)?((PWR->CR2 & PWR_CR2_BRRDY) == PWR_CR2_BRRDY) : \
  212. ((__FLAG__) == PWR_FLAG_SB)?((PWR->CPUCR & PWR_CPUCR_SBF) == PWR_CPUCR_SBF) : \
  213. ((__FLAG__) == PWR_FLAG_STOP)?((PWR->CPUCR & PWR_CPUCR_STOPF) == PWR_CPUCR_STOPF) : \
  214. ((__FLAG__) == PWR_FLAG_SB_D1)?((PWR->CPUCR & PWR_CPUCR_SBF_D1) == PWR_CPUCR_SBF_D1) : \
  215. ((PWR->CPUCR & PWR_CPUCR_SBF_D2) == PWR_CPUCR_SBF_D2))
  216. /** @brief Clear the PWR's flags.
  217. * @param __FLAG__: specifies the flag to clear.
  218. * This parameter can be one of the following values:
  219. * @arg PWR_FLAG_SB: StandBy flag.
  220. * @arg PWR_CPU_FLAGS: Clear STOPF, SBF, SBF_D1, and SBF_D2 CPU flags.
  221. * @retval None.
  222. */
  223. #define __HAL_PWR_CLEAR_FLAG(__FLAG__) SET_BIT(PWR->CPUCR, PWR_CPUCR_CSSF)
  224. /**
  225. * @brief Enable the PVD EXTI Line 16.
  226. * @retval None.
  227. */
  228. #define __HAL_PWR_PVD_EXTI_ENABLE_IT() SET_BIT(EXTI_D1->IMR1, PWR_EXTI_LINE_PVD)
  229. /**
  230. * @brief Disable the PVD EXTI Line 16.
  231. * @retval None.
  232. */
  233. #define __HAL_PWR_PVD_EXTI_DISABLE_IT() CLEAR_BIT(EXTI_D1->IMR1, PWR_EXTI_LINE_PVD)
  234. /**
  235. * @brief Enable event on PVD EXTI Line 16.
  236. * @retval None.
  237. */
  238. #define __HAL_PWR_PVD_EXTI_ENABLE_EVENT() SET_BIT(EXTI_D1->EMR1, PWR_EXTI_LINE_PVD)
  239. /**
  240. * @brief Disable event on PVD EXTI Line 16.
  241. * @retval None.
  242. */
  243. #define __HAL_PWR_PVD_EXTI_DISABLE_EVENT() CLEAR_BIT(EXTI_D1->EMR1, PWR_EXTI_LINE_PVD)
  244. /**
  245. * @brief Enable the PVD Extended Interrupt Rising Trigger.
  246. * @retval None.
  247. */
  248. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD)
  249. /**
  250. * @brief Disable the PVD Extended Interrupt Rising Trigger.
  251. * @retval None.
  252. */
  253. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR1, PWR_EXTI_LINE_PVD)
  254. /**
  255. * @brief Enable the PVD Extended Interrupt Falling Trigger.
  256. * @retval None.
  257. */
  258. #define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD)
  259. /**
  260. * @brief Disable the PVD Extended Interrupt Falling Trigger.
  261. * @retval None.
  262. */
  263. #define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR1, PWR_EXTI_LINE_PVD)
  264. /**
  265. * @brief PVD EXTI line configuration: set rising & falling edge trigger.
  266. * @retval None.
  267. */
  268. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() \
  269. do { \
  270. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE(); \
  271. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE(); \
  272. } while(0);
  273. /**
  274. * @brief Disable the PVD Extended Interrupt Rising & Falling Trigger.
  275. * @retval None.
  276. */
  277. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() \
  278. do { \
  279. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE(); \
  280. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); \
  281. } while(0);
  282. /**
  283. * @brief Check whether the specified PVD EXTI interrupt flag is set or not.
  284. * @retval EXTI PVD Line Status.
  285. */
  286. #define __HAL_PWR_PVD_EXTI_GET_FLAG() READ_BIT(EXTI_D1->PR1, PWR_EXTI_LINE_PVD)
  287. /**
  288. * @brief Clear the PVD EXTI flag.
  289. * @retval None.
  290. */
  291. #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() SET_BIT(EXTI_D1->PR1, PWR_EXTI_LINE_PVD)
  292. /**
  293. * @brief Generates a Software interrupt on PVD EXTI line.
  294. * @retval None.
  295. */
  296. #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() SET_BIT(EXTI->SWIER1, PWR_EXTI_LINE_PVD)
  297. /**
  298. * @}
  299. */
  300. /* Include PWR HAL Extension module */
  301. #include "stm32h7xx_hal_pwr_ex.h"
  302. /* Exported functions --------------------------------------------------------*/
  303. /** @addtogroup PWR_Exported_Functions PWR Exported Functions
  304. * @{
  305. */
  306. /** @addtogroup PWR_Exported_Functions_Group1 Initialization and De-Initialization functions
  307. * @{
  308. */
  309. /* Initialization and de-initialization functions *****************************/
  310. void HAL_PWR_DeInit(void);
  311. void HAL_PWR_EnableBkUpAccess(void);
  312. void HAL_PWR_DisableBkUpAccess(void);
  313. /**
  314. * @}
  315. */
  316. /** @addtogroup PWR_Exported_Functions_Group2 Peripheral Control functions
  317. * @{
  318. */
  319. /* Peripheral Control functions **********************************************/
  320. /* PVD configuration */
  321. void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD);
  322. void HAL_PWR_EnablePVD(void);
  323. void HAL_PWR_DisablePVD(void);
  324. /* WakeUp pins configuration */
  325. void HAL_PWR_EnableWakeUpPin(uint32_t WakeUpPinPolarity);
  326. void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx);
  327. /* Low Power modes entry */
  328. void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry);
  329. void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry);
  330. void HAL_PWR_EnterSTANDBYMode(void);
  331. /* Power PVD IRQ Handler */
  332. void HAL_PWR_PVD_IRQHandler(void);
  333. void HAL_PWR_PVDCallback(void);
  334. /* Cortex System Control functions *******************************************/
  335. void HAL_PWR_EnableSleepOnExit(void);
  336. void HAL_PWR_DisableSleepOnExit(void);
  337. void HAL_PWR_EnableSEVOnPend(void);
  338. void HAL_PWR_DisableSEVOnPend(void);
  339. /**
  340. * @}
  341. */
  342. /**
  343. * @}
  344. */
  345. /* Private types -------------------------------------------------------------*/
  346. /* Private variables ---------------------------------------------------------*/
  347. /* Private constants ---------------------------------------------------------*/
  348. /** @defgroup PWR_Private_Constants PWR Private Constants
  349. * @{
  350. */
  351. /** @defgroup PWR_PVD_EXTI_Line PWR PVD EXTI Line
  352. * @{
  353. */
  354. /*!< External interrupt line 16 Connected to the PVD EXTI Line */
  355. #define PWR_EXTI_LINE_PVD ((uint32_t)EXTI_IMR1_IM16)
  356. /**
  357. * @}
  358. */
  359. /**
  360. * @}
  361. */
  362. /* Private macros ------------------------------------------------------------*/
  363. /** @defgroup PWR_Private_Macros PWR Private Macros
  364. * @{
  365. */
  366. /** @defgroup PWR_IS_PWR_Definitions PWR Private macros to check input parameters
  367. * @{
  368. */
  369. #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
  370. ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
  371. ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
  372. ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
  373. #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
  374. ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
  375. ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
  376. ((MODE) == PWR_PVD_MODE_NORMAL))
  377. #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_MAINREGULATOR_ON) || \
  378. ((REGULATOR) == PWR_LOWPOWERREGULATOR_ON))
  379. #define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))
  380. #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE))
  381. #define IS_PWR_REGULATOR_VOLTAGE(VOLTAGE) (((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE1) || \
  382. ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE2) || \
  383. ((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE3))
  384. /**
  385. * @}
  386. */
  387. /**
  388. * @}
  389. */
  390. /**
  391. * @}
  392. */
  393. /**
  394. * @}
  395. */
  396. #ifdef __cplusplus
  397. }
  398. #endif
  399. #endif /* __STM32H7xx_HAL_PWR_H */
  400. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/