You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

476 lines
18 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f0xx_hal_pwr_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of PWR HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
  10. *
  11. * Redistribution and use in source and binary forms, with or without modification,
  12. * are permitted provided that the following conditions are met:
  13. * 1. Redistributions of source code must retain the above copyright notice,
  14. * this list of conditions and the following disclaimer.
  15. * 2. Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  19. * may be used to endorse or promote products derived from this software
  20. * without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  25. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  26. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  28. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  29. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. *
  33. ******************************************************************************
  34. */
  35. /* Define to prevent recursive inclusion -------------------------------------*/
  36. #ifndef __STM32F0xx_HAL_PWR_EX_H
  37. #define __STM32F0xx_HAL_PWR_EX_H
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. /* Includes ------------------------------------------------------------------*/
  42. #include "stm32f0xx_hal_def.h"
  43. /** @addtogroup STM32F0xx_HAL_Driver
  44. * @{
  45. */
  46. /** @addtogroup PWREx
  47. * @{
  48. */
  49. /* Exported types ------------------------------------------------------------*/
  50. /** @defgroup PWREx_Exported_Types PWREx Exported Types
  51. * @{
  52. */
  53. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  54. defined (STM32F071xB) || defined (STM32F072xB) || \
  55. defined (STM32F091xC)
  56. /**
  57. * @brief PWR PVD configuration structure definition
  58. */
  59. typedef struct
  60. {
  61. uint32_t PVDLevel; /*!< PVDLevel: Specifies the PVD detection level
  62. This parameter can be a value of @ref PWREx_PVD_detection_level */
  63. uint32_t Mode; /*!< Mode: Specifies the operating mode for the selected pins.
  64. This parameter can be a value of @ref PWREx_PVD_Mode */
  65. }PWR_PVDTypeDef;
  66. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  67. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  68. /* defined (STM32F091xC) */
  69. /**
  70. * @}
  71. */
  72. /* Exported constants --------------------------------------------------------*/
  73. /** @defgroup PWREx_Exported_Constants PWREx Exported Constants
  74. * @{
  75. */
  76. /** @defgroup PWREx_WakeUp_Pins PWREx Wakeup Pins
  77. * @{
  78. */
  79. #if defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  80. defined (STM32F091xC) || defined (STM32F098xx)
  81. #define PWR_WAKEUP_PIN1 ((uint32_t)PWR_CSR_EWUP1)
  82. #define PWR_WAKEUP_PIN2 ((uint32_t)PWR_CSR_EWUP2)
  83. #define PWR_WAKEUP_PIN3 ((uint32_t)PWR_CSR_EWUP3)
  84. #define PWR_WAKEUP_PIN4 ((uint32_t)PWR_CSR_EWUP4)
  85. #define PWR_WAKEUP_PIN5 ((uint32_t)PWR_CSR_EWUP5)
  86. #define PWR_WAKEUP_PIN6 ((uint32_t)PWR_CSR_EWUP6)
  87. #define PWR_WAKEUP_PIN7 ((uint32_t)PWR_CSR_EWUP7)
  88. #define PWR_WAKEUP_PIN8 ((uint32_t)PWR_CSR_EWUP8)
  89. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  90. ((PIN) == PWR_WAKEUP_PIN2) || \
  91. ((PIN) == PWR_WAKEUP_PIN3) || \
  92. ((PIN) == PWR_WAKEUP_PIN4) || \
  93. ((PIN) == PWR_WAKEUP_PIN5) || \
  94. ((PIN) == PWR_WAKEUP_PIN6) || \
  95. ((PIN) == PWR_WAKEUP_PIN7) || \
  96. ((PIN) == PWR_WAKEUP_PIN8))
  97. #elif defined(STM32F030xC) || defined (STM32F070xB)
  98. #define PWR_WAKEUP_PIN1 ((uint32_t)PWR_CSR_EWUP1)
  99. #define PWR_WAKEUP_PIN2 ((uint32_t)PWR_CSR_EWUP2)
  100. #define PWR_WAKEUP_PIN4 ((uint32_t)PWR_CSR_EWUP4)
  101. #define PWR_WAKEUP_PIN5 ((uint32_t)PWR_CSR_EWUP5)
  102. #define PWR_WAKEUP_PIN6 ((uint32_t)PWR_CSR_EWUP6)
  103. #define PWR_WAKEUP_PIN7 ((uint32_t)PWR_CSR_EWUP7)
  104. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  105. ((PIN) == PWR_WAKEUP_PIN2) || \
  106. ((PIN) == PWR_WAKEUP_PIN4) || \
  107. ((PIN) == PWR_WAKEUP_PIN5) || \
  108. ((PIN) == PWR_WAKEUP_PIN6) || \
  109. ((PIN) == PWR_WAKEUP_PIN7))
  110. #elif defined(STM32F042x6) || defined (STM32F048xx)
  111. #define PWR_WAKEUP_PIN1 ((uint32_t)PWR_CSR_EWUP1)
  112. #define PWR_WAKEUP_PIN2 ((uint32_t)PWR_CSR_EWUP2)
  113. #define PWR_WAKEUP_PIN4 ((uint32_t)PWR_CSR_EWUP4)
  114. #define PWR_WAKEUP_PIN6 ((uint32_t)PWR_CSR_EWUP6)
  115. #define PWR_WAKEUP_PIN7 ((uint32_t)PWR_CSR_EWUP7)
  116. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  117. ((PIN) == PWR_WAKEUP_PIN2) || \
  118. ((PIN) == PWR_WAKEUP_PIN4) || \
  119. ((PIN) == PWR_WAKEUP_PIN6) || \
  120. ((PIN) == PWR_WAKEUP_PIN7))
  121. #else
  122. #define PWR_WAKEUP_PIN1 ((uint32_t)PWR_CSR_EWUP1)
  123. #define PWR_WAKEUP_PIN2 ((uint32_t)PWR_CSR_EWUP2)
  124. #define IS_PWR_WAKEUP_PIN(PIN) (((PIN) == PWR_WAKEUP_PIN1) || \
  125. ((PIN) == PWR_WAKEUP_PIN2))
  126. #endif
  127. /**
  128. * @}
  129. */
  130. /** @defgroup PWREx_EXTI_Line PWREx EXTI Line
  131. * @{
  132. */
  133. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  134. defined (STM32F071xB) || defined (STM32F072xB) || \
  135. defined (STM32F091xC)
  136. #define PWR_EXTI_LINE_PVD ((uint32_t)EXTI_IMR_MR16) /*!< External interrupt line 16 Connected to the PVD EXTI Line */
  137. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  138. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  139. /* defined (STM32F091xC) */
  140. #if defined (STM32F042x6) || defined (STM32F048xx) || \
  141. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  142. defined (STM32F091xC) || defined (STM32F098xx)
  143. #define PWR_EXTI_LINE_VDDIO2 ((uint32_t)EXTI_IMR_MR31) /*!< External interrupt line 31 Connected to the Vddio2 Monitor EXTI Line */
  144. #endif /* defined (STM32F042x6) || defined (STM32F048xx) ||\
  145. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  146. defined (STM32F091xC) || defined (STM32F098xx) ||*/
  147. /**
  148. * @}
  149. */
  150. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  151. defined (STM32F071xB) || defined (STM32F072xB) || \
  152. defined (STM32F091xC)
  153. /** @defgroup PWREx_PVD_detection_level PWREx PVD detection level
  154. * @{
  155. */
  156. #define PWR_PVDLEVEL_0 PWR_CR_PLS_LEV0
  157. #define PWR_PVDLEVEL_1 PWR_CR_PLS_LEV1
  158. #define PWR_PVDLEVEL_2 PWR_CR_PLS_LEV2
  159. #define PWR_PVDLEVEL_3 PWR_CR_PLS_LEV3
  160. #define PWR_PVDLEVEL_4 PWR_CR_PLS_LEV4
  161. #define PWR_PVDLEVEL_5 PWR_CR_PLS_LEV5
  162. #define PWR_PVDLEVEL_6 PWR_CR_PLS_LEV6
  163. #define PWR_PVDLEVEL_7 PWR_CR_PLS_LEV7
  164. #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLEVEL_0) || ((LEVEL) == PWR_PVDLEVEL_1)|| \
  165. ((LEVEL) == PWR_PVDLEVEL_2) || ((LEVEL) == PWR_PVDLEVEL_3)|| \
  166. ((LEVEL) == PWR_PVDLEVEL_4) || ((LEVEL) == PWR_PVDLEVEL_5)|| \
  167. ((LEVEL) == PWR_PVDLEVEL_6) || ((LEVEL) == PWR_PVDLEVEL_7))
  168. /**
  169. * @}
  170. */
  171. /** @defgroup PWREx_PVD_Mode PWREx PVD Mode
  172. * @{
  173. */
  174. #define PWR_PVD_MODE_NORMAL (0x00000000U) /*!< basic mode is used */
  175. #define PWR_PVD_MODE_IT_RISING (0x00010001U) /*!< External Interrupt Mode with Rising edge trigger detection */
  176. #define PWR_PVD_MODE_IT_FALLING (0x00010002U) /*!< External Interrupt Mode with Falling edge trigger detection */
  177. #define PWR_PVD_MODE_IT_RISING_FALLING (0x00010003U) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
  178. #define PWR_PVD_MODE_EVENT_RISING (0x00020001U) /*!< Event Mode with Rising edge trigger detection */
  179. #define PWR_PVD_MODE_EVENT_FALLING (0x00020002U) /*!< Event Mode with Falling edge trigger detection */
  180. #define PWR_PVD_MODE_EVENT_RISING_FALLING (0x00020003U) /*!< Event Mode with Rising/Falling edge trigger detection */
  181. #define IS_PWR_PVD_MODE(MODE) (((MODE) == PWR_PVD_MODE_IT_RISING)|| ((MODE) == PWR_PVD_MODE_IT_FALLING) || \
  182. ((MODE) == PWR_PVD_MODE_IT_RISING_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING) || \
  183. ((MODE) == PWR_PVD_MODE_EVENT_FALLING) || ((MODE) == PWR_PVD_MODE_EVENT_RISING_FALLING) || \
  184. ((MODE) == PWR_PVD_MODE_NORMAL))
  185. /**
  186. * @}
  187. */
  188. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  189. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  190. /* defined (STM32F091xC) */
  191. /** @defgroup PWREx_Flag PWREx Flag
  192. * @{
  193. */
  194. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  195. defined (STM32F071xB) || defined (STM32F072xB) || \
  196. defined (STM32F091xC)
  197. #define PWR_FLAG_WU PWR_CSR_WUF
  198. #define PWR_FLAG_SB PWR_CSR_SBF
  199. #define PWR_FLAG_PVDO PWR_CSR_PVDO
  200. #define PWR_FLAG_VREFINTRDY PWR_CSR_VREFINTRDYF
  201. #elif defined (STM32F070x6) || defined (STM32F070xB) || defined (STM32F030xC)
  202. #define PWR_FLAG_WU PWR_CSR_WUF
  203. #define PWR_FLAG_SB PWR_CSR_SBF
  204. #define PWR_FLAG_VREFINTRDY PWR_CSR_VREFINTRDYF
  205. #else
  206. #define PWR_FLAG_WU PWR_CSR_WUF
  207. #define PWR_FLAG_SB PWR_CSR_SBF
  208. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  209. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  210. /* defined (STM32F091xC) */
  211. /**
  212. * @}
  213. */
  214. /**
  215. * @}
  216. */
  217. /* Exported macro ------------------------------------------------------------*/
  218. /** @defgroup PWREx_Exported_Macros PWREx Exported Macros
  219. * @{
  220. */
  221. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  222. defined (STM32F071xB) || defined (STM32F072xB) || \
  223. defined (STM32F091xC)
  224. /**
  225. * @brief Enable interrupt on PVD Exti Line 16.
  226. * @retval None.
  227. */
  228. #define __HAL_PWR_PVD_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_PVD))
  229. /**
  230. * @brief Disable interrupt on PVD Exti Line 16.
  231. * @retval None.
  232. */
  233. #define __HAL_PWR_PVD_EXTI_DISABLE_IT() (EXTI->IMR &= ~(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() (EXTI->EMR |= (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() (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))
  244. /**
  245. * @brief Disable the PVD Extended Interrupt Rising Trigger.
  246. * @retval None.
  247. */
  248. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
  249. /**
  250. * @brief Disable the PVD Extended Interrupt Falling Trigger.
  251. * @retval None.
  252. */
  253. #define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
  254. /**
  255. * @brief Disable the PVD Extended Interrupt Rising & Falling Trigger.
  256. * @retval None
  257. */
  258. #define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();
  259. /**
  260. * @brief PVD EXTI line configuration: set falling edge trigger.
  261. * @retval None.
  262. */
  263. #define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE() EXTI->FTSR |= (PWR_EXTI_LINE_PVD)
  264. /**
  265. * @brief PVD EXTI line configuration: set rising edge trigger.
  266. * @retval None.
  267. */
  268. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE() EXTI->RTSR |= (PWR_EXTI_LINE_PVD)
  269. /**
  270. * @brief Enable the PVD Extended Interrupt Rising & Falling Trigger.
  271. * @retval None
  272. */
  273. #define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE() __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();
  274. /**
  275. * @brief Check whether the specified PVD EXTI interrupt flag is set or not.
  276. * @retval EXTI PVD Line Status.
  277. */
  278. #define __HAL_PWR_PVD_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_PVD))
  279. /**
  280. * @brief Clear the PVD EXTI flag.
  281. * @retval None.
  282. */
  283. #define __HAL_PWR_PVD_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_PVD))
  284. /**
  285. * @brief Generate a Software interrupt on selected EXTI line.
  286. * @retval None.
  287. */
  288. #define __HAL_PWR_PVD_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))
  289. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  290. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  291. /* defined (STM32F091xC) */
  292. #if defined (STM32F042x6) || defined (STM32F048xx) || \
  293. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  294. defined (STM32F091xC) || defined (STM32F098xx)
  295. /**
  296. * @brief Enable interrupt on Vddio2 Monitor Exti Line 31.
  297. * @retval None.
  298. */
  299. #define __HAL_PWR_VDDIO2_EXTI_ENABLE_IT() (EXTI->IMR |= (PWR_EXTI_LINE_VDDIO2))
  300. /**
  301. * @brief Disable interrupt on Vddio2 Monitor Exti Line 31.
  302. * @retval None.
  303. */
  304. #define __HAL_PWR_VDDIO2_EXTI_DISABLE_IT() (EXTI->IMR &= ~(PWR_EXTI_LINE_VDDIO2))
  305. /**
  306. * @brief Vddio2 Monitor EXTI line configuration: clear falling edge and rising edge trigger.
  307. * @retval None.
  308. */
  309. #define __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE() \
  310. do{ \
  311. EXTI->FTSR &= ~(PWR_EXTI_LINE_VDDIO2); \
  312. EXTI->RTSR &= ~(PWR_EXTI_LINE_VDDIO2); \
  313. } while(0)
  314. /**
  315. * @brief Vddio2 Monitor EXTI line configuration: set falling edge trigger.
  316. * @retval None.
  317. */
  318. #define __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE() EXTI->FTSR |= (PWR_EXTI_LINE_VDDIO2)
  319. /**
  320. * @brief Check whether the specified VDDIO2 monitor EXTI interrupt flag is set or not.
  321. * @retval EXTI VDDIO2 Monitor Line Status.
  322. */
  323. #define __HAL_PWR_VDDIO2_EXTI_GET_FLAG() (EXTI->PR & (PWR_EXTI_LINE_VDDIO2))
  324. /**
  325. * @brief Clear the VDDIO2 Monitor EXTI flag.
  326. * @retval None.
  327. */
  328. #define __HAL_PWR_VDDIO2_EXTI_CLEAR_FLAG() (EXTI->PR = (PWR_EXTI_LINE_VDDIO2))
  329. /**
  330. * @brief Generate a Software interrupt on selected EXTI line.
  331. * @retval None.
  332. */
  333. #define __HAL_PWR_VDDIO2_EXTI_GENERATE_SWIT() (EXTI->SWIER |= (PWR_EXTI_LINE_VDDIO2))
  334. #endif /* defined (STM32F042x6) || defined (STM32F048xx) ||\
  335. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  336. defined (STM32F091xC) || defined (STM32F098xx) */
  337. /**
  338. * @}
  339. */
  340. /* Exported functions --------------------------------------------------------*/
  341. /** @addtogroup PWREx_Exported_Functions PWREx Exported Functions
  342. * @{
  343. */
  344. /** @addtogroup PWREx_Exported_Functions_Group1
  345. * @{
  346. */
  347. /* I/O operation functions ***************************************************/
  348. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  349. defined (STM32F071xB) || defined (STM32F072xB) || \
  350. defined (STM32F091xC)
  351. void HAL_PWR_PVD_IRQHandler(void);
  352. void HAL_PWR_PVDCallback(void);
  353. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  354. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  355. /* defined (STM32F091xC) */
  356. #if defined (STM32F042x6) || defined (STM32F048xx) || \
  357. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  358. defined (STM32F091xC) || defined (STM32F098xx)
  359. void HAL_PWREx_Vddio2Monitor_IRQHandler(void);
  360. void HAL_PWREx_Vddio2MonitorCallback(void);
  361. #endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
  362. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  363. defined (STM32F091xC) || defined (STM32F098xx) */
  364. /* Peripheral Control functions **********************************************/
  365. #if defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || \
  366. defined (STM32F071xB) || defined (STM32F072xB) || \
  367. defined (STM32F091xC)
  368. void HAL_PWR_ConfigPVD(PWR_PVDTypeDef *sConfigPVD);
  369. void HAL_PWR_EnablePVD(void);
  370. void HAL_PWR_DisablePVD(void);
  371. #endif /* defined (STM32F031x6) || defined (STM32F042x6) || defined (STM32F051x8) || */
  372. /* defined (STM32F071xB) || defined (STM32F072xB) || */
  373. /* defined (STM32F091xC) */
  374. #if defined (STM32F042x6) || defined (STM32F048xx) || \
  375. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  376. defined (STM32F091xC) || defined (STM32F098xx)
  377. void HAL_PWREx_EnableVddio2Monitor(void);
  378. void HAL_PWREx_DisableVddio2Monitor(void);
  379. #endif /* defined (STM32F042x6) || defined (STM32F048xx) || \
  380. defined (STM32F071xB) || defined (STM32F072xB) || defined (STM32F078xx) || \
  381. defined (STM32F091xC) || defined (STM32F098xx) */
  382. /**
  383. * @}
  384. */
  385. /**
  386. * @}
  387. */
  388. /**
  389. * @}
  390. */
  391. /**
  392. * @}
  393. */
  394. #ifdef __cplusplus
  395. }
  396. #endif
  397. #endif /* __STM32F0xx_HAL_PWR_EX_H */
  398. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/