stm32f2xx_hal_rcc_ex.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. /**
  2. ******************************************************************************
  3. * @file stm32f2xx_hal_rcc_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of RCC HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __STM32F2xx_HAL_RCC_EX_H
  21. #define __STM32F2xx_HAL_RCC_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32f2xx_hal_def.h"
  27. /** @addtogroup STM32F2xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup RCCEx
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /** @defgroup RCCEx_Exported_Types RCCEx Exported Types
  35. * @{
  36. */
  37. /**
  38. * @brief PLLI2S Clock structure definition
  39. */
  40. typedef struct
  41. {
  42. uint32_t PLLI2SN; /*!< Specifies the multiplication factor for PLLI2S VCO output clock.
  43. This parameter must be a number between Min_Data = 192 and Max_Data = 432.
  44. This parameter will be used only when PLLI2S is selected as Clock Source I2S */
  45. uint32_t PLLI2SR; /*!< Specifies the division factor for I2S clock.
  46. This parameter must be a number between Min_Data = 2 and Max_Data = 7.
  47. This parameter will be used only when PLLI2S is selected as Clock Source I2S */
  48. }RCC_PLLI2SInitTypeDef;
  49. /**
  50. * @brief RCC extended clocks structure definition
  51. */
  52. typedef struct
  53. {
  54. uint32_t PeriphClockSelection; /*!< The Extended Clock to be configured.
  55. This parameter can be a value of @ref RCCEx_Periph_Clock_Selection */
  56. RCC_PLLI2SInitTypeDef PLLI2S; /*!< PLL I2S structure parameters.
  57. This parameter will be used only when PLLI2S is selected as Clock Source I2S */
  58. uint32_t RTCClockSelection; /*!< Specifies RTC Clock Prescalers Selection.
  59. This parameter can be a value of @ref RCC_RTC_Clock_Source */
  60. uint8_t TIMPresSelection; /*!< Specifies TIM Clock Prescalers Selection.
  61. This parameter can be a value of @ref RCCEx_TIM_PRescaler_Selection */
  62. }RCC_PeriphCLKInitTypeDef;
  63. /**
  64. * @}
  65. */
  66. /* Exported constants --------------------------------------------------------*/
  67. /** @defgroup RCCEx_Exported_Constants RCCEx Exported Constants
  68. * @{
  69. */
  70. /** @defgroup RCCEx_Periph_Clock_Selection RCC Periph Clock Selection
  71. * @{
  72. */
  73. #define RCC_PERIPHCLK_I2S ((uint32_t)0x00000001)
  74. #define RCC_PERIPHCLK_TIM ((uint32_t)0x00000002)
  75. #define RCC_PERIPHCLK_RTC ((uint32_t)0x00000004)
  76. #define RCC_PERIPHCLK_PLLI2S ((uint32_t)0x00000008)
  77. /**
  78. * @}
  79. */
  80. /** @defgroup RCCEx_TIM_PRescaler_Selection RCC TIM PRescaler Selection
  81. * @{
  82. */
  83. #define RCC_TIMPRES_DESACTIVATED ((uint8_t)0x00)
  84. #define RCC_TIMPRES_ACTIVATED ((uint8_t)0x01)
  85. /**
  86. * @}
  87. */
  88. /**
  89. * @}
  90. */
  91. /* Exported macro ------------------------------------------------------------*/
  92. /** @defgroup RCCEx_Exported_Macros RCC Exported Macros
  93. * @{
  94. */
  95. /** @defgroup RCCEx_AHB1_Clock_Enable_Disable AHB1 Peripheral Clock Enable Disable
  96. * @brief Enables or disables the AHB1 peripheral clock.
  97. * @note After reset, the peripheral clock (used for registers read/write access)
  98. * is disabled and the application software has to enable this clock before
  99. * using it.
  100. * @{
  101. */
  102. #if defined(STM32F207xx) || defined(STM32F217xx)
  103. #define __HAL_RCC_ETHMAC_CLK_ENABLE() do { \
  104. __IO uint32_t tmpreg = 0x00; \
  105. SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\
  106. /* Delay after an RCC peripheral clock enabling */ \
  107. tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACEN);\
  108. UNUSED(tmpreg); \
  109. } while(0)
  110. #define __HAL_RCC_ETHMACTX_CLK_ENABLE() do { \
  111. __IO uint32_t tmpreg = 0x00; \
  112. SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\
  113. /* Delay after an RCC peripheral clock enabling */ \
  114. tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACTXEN);\
  115. UNUSED(tmpreg); \
  116. } while(0)
  117. #define __HAL_RCC_ETHMACRX_CLK_ENABLE() do { \
  118. __IO uint32_t tmpreg = 0x00; \
  119. SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\
  120. /* Delay after an RCC peripheral clock enabling */ \
  121. tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACRXEN);\
  122. UNUSED(tmpreg); \
  123. } while(0)
  124. #define __HAL_RCC_ETHMACPTP_CLK_ENABLE() do { \
  125. __IO uint32_t tmpreg = 0x00; \
  126. SET_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\
  127. /* Delay after an RCC peripheral clock enabling */ \
  128. tmpreg = READ_BIT(RCC->AHB1ENR, RCC_AHB1ENR_ETHMACPTPEN);\
  129. UNUSED(tmpreg); \
  130. } while(0)
  131. #define __HAL_RCC_ETHMAC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACEN))
  132. #define __HAL_RCC_ETHMACTX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACTXEN))
  133. #define __HAL_RCC_ETHMACRX_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACRXEN))
  134. #define __HAL_RCC_ETHMACPTP_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_ETHMACPTPEN))
  135. /** @defgroup RCC_AHB1_Peripheral_Clock_Enable_Disable_Status AHB1 Peripheral Clock Enable Disable Status
  136. * @brief Get the enable or disable status of the AHB1 peripheral clock.
  137. * @note After reset, the peripheral clock (used for registers read/write access)
  138. * is disabled and the application software has to enable this clock before
  139. * using it.
  140. * @{
  141. */
  142. #define __HAL_RCC_ETHMAC_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACEN))!= RESET)
  143. #define __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACTXEN))!= RESET)
  144. #define __HAL_RCC_ETHMACRX_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACRXEN))!= RESET)
  145. #define __HAL_RCC_ETHMACPTP_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACPTPEN))!= RESET)
  146. #define __HAL_RCC_ETH_IS_CLK_ENABLED() (__HAL_RCC_ETHMAC_IS_CLK_ENABLED() && \
  147. __HAL_RCC_ETHMACTX_IS_CLK_ENABLED() && \
  148. __HAL_RCC_ETHMACRX_IS_CLK_ENABLED())
  149. #define __HAL_RCC_ETHMAC_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACEN))== RESET)
  150. #define __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACTXEN))== RESET)
  151. #define __HAL_RCC_ETHMACRX_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACRXEN))== RESET)
  152. #define __HAL_RCC_ETHMACPTP_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_ETHMACPTPEN))== RESET)
  153. #define __HAL_RCC_ETH_IS_CLK_DISABLED() (__HAL_RCC_ETHMAC_IS_CLK_DISABLED() && \
  154. __HAL_RCC_ETHMACTX_IS_CLK_DISABLED() && \
  155. __HAL_RCC_ETHMACRX_IS_CLK_DISABLED())
  156. /**
  157. * @}
  158. */
  159. /**
  160. * @brief Enable ETHERNET clock.
  161. */
  162. #define __HAL_RCC_ETH_CLK_ENABLE() do { \
  163. __HAL_RCC_ETHMAC_CLK_ENABLE(); \
  164. __HAL_RCC_ETHMACTX_CLK_ENABLE(); \
  165. __HAL_RCC_ETHMACRX_CLK_ENABLE(); \
  166. } while(0)
  167. /**
  168. * @brief Disable ETHERNET clock.
  169. */
  170. #define __HAL_RCC_ETH_CLK_DISABLE() do { \
  171. __HAL_RCC_ETHMACTX_CLK_DISABLE(); \
  172. __HAL_RCC_ETHMACRX_CLK_DISABLE(); \
  173. __HAL_RCC_ETHMAC_CLK_DISABLE(); \
  174. } while(0)
  175. #endif /* STM32F207xx || STM32F217xx */
  176. /**
  177. * @}
  178. */
  179. /** @defgroup RCCEx_AHB2_Clock_Enable_Disable AHB2 Peripheral Clock Enable Disable
  180. * @brief Enable or disable the AHB2 peripheral clock.
  181. * @note After reset, the peripheral clock (used for registers read/write access)
  182. * is disabled and the application software has to enable this clock before
  183. * using it.
  184. * @{
  185. */
  186. #if defined(STM32F207xx) || defined(STM32F217xx)
  187. #define __HAL_RCC_DCMI_CLK_ENABLE() do { \
  188. __IO uint32_t tmpreg = 0x00; \
  189. SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\
  190. /* Delay after an RCC peripheral clock enabling */ \
  191. tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\
  192. UNUSED(tmpreg); \
  193. } while(0)
  194. #define __HAL_RCC_DCMI_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_DCMIEN))
  195. #endif /* STM32F207xx || STM32F217xx */
  196. #if defined(STM32F215xx) || defined(STM32F217xx)
  197. #define __HAL_RCC_CRYP_CLK_ENABLE() do { \
  198. __IO uint32_t tmpreg = 0x00; \
  199. SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\
  200. /* Delay after an RCC peripheral clock enabling */ \
  201. tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_CRYPEN);\
  202. UNUSED(tmpreg); \
  203. } while(0)
  204. #define __HAL_RCC_HASH_CLK_ENABLE() do { \
  205. __IO uint32_t tmpreg = 0x00; \
  206. SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\
  207. /* Delay after an RCC peripheral clock enabling */ \
  208. tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_HASHEN);\
  209. UNUSED(tmpreg); \
  210. } while(0)
  211. #define __HAL_RCC_CRYP_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_CRYPEN))
  212. #define __HAL_RCC_HASH_CLK_DISABLE() (RCC->AHB2ENR &= ~(RCC_AHB2ENR_HASHEN))
  213. #endif /* STM32F215xx || STM32F217xx */
  214. /**
  215. * @}
  216. */
  217. /** @defgroup RCC_AHB2_Peripheral_Clock_Enable_Disable_Status AHB2 Peripheral Clock Enable Disable Status
  218. * @brief Get the enable or disable status of the AHB2 peripheral clock.
  219. * @note After reset, the peripheral clock (used for registers read/write access)
  220. * is disabled and the application software has to enable this clock before
  221. * using it.
  222. * @{
  223. */
  224. #if defined(STM32F207xx) || defined(STM32F217xx)
  225. #define __HAL_RCC_DCMI_IS_CLK_ENABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_DCMIEN))!= RESET)
  226. #define __HAL_RCC_DCMI_IS_CLK_DISABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_DCMIEN))== RESET)
  227. #endif /* defined(STM32F207xx) || defined(STM32F217xx) */
  228. #if defined(STM32F215xx) || defined(STM32F217xx)
  229. #define __HAL_RCC_CRYP_IS_CLK_ENABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_CRYPEN))!= RESET)
  230. #define __HAL_RCC_HASH_IS_CLK_ENABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_HASHEN))!= RESET)
  231. #define __HAL_RCC_CRYP_IS_CLK_DISABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_CRYPEN))== RESET)
  232. #define __HAL_RCC_HASH_IS_CLK_DISABLED() ((RCC->AHB2ENR &(RCC_AHB2ENR_HASHEN))== RESET)
  233. #endif /* defined(STM32F215xx) || defined(STM32F217xx) */
  234. /**
  235. * @}
  236. */
  237. /** @defgroup RCCEx_AHB1_Force_Release_Reset AHB1 Force Release Reset
  238. * @brief Force or release AHB1 peripheral reset.
  239. * @{
  240. */
  241. #if defined(STM32F207xx) || defined(STM32F217xx)
  242. #define __HAL_RCC_ETHMAC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_ETHMACRST))
  243. #define __HAL_RCC_ETHMAC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_ETHMACRST))
  244. #endif /* STM32F207xx || STM32F217xx */
  245. /**
  246. * @}
  247. */
  248. /** @defgroup RCCEx_AHB2_Force_Release_Reset AHB2 Force Release Reset
  249. * @brief Force or release AHB2 peripheral reset.
  250. * @{
  251. */
  252. #if defined(STM32F207xx) || defined(STM32F217xx)
  253. #define __HAL_RCC_DCMI_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_DCMIRST))
  254. #define __HAL_RCC_DCMI_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_DCMIRST))
  255. #endif /* STM32F207xx || STM32F217xx */
  256. #if defined(STM32F215xx) || defined(STM32F217xx)
  257. #define __HAL_RCC_CRYP_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_CRYPRST))
  258. #define __HAL_RCC_HASH_FORCE_RESET() (RCC->AHB2RSTR |= (RCC_AHB2RSTR_HASHRST))
  259. #define __HAL_RCC_CRYP_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_CRYPRST))
  260. #define __HAL_RCC_HASH_RELEASE_RESET() (RCC->AHB2RSTR &= ~(RCC_AHB2RSTR_HASHRST))
  261. #endif /* STM32F215xx || STM32F217xx */
  262. /**
  263. * @}
  264. */
  265. /** @defgroup RCCEx_AHB1_LowPower_Enable_Disable AHB1 Peripheral Low Power Enable Disable
  266. * @brief Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode.
  267. * @note Peripheral clock gating in SLEEP mode can be used to further reduce
  268. * power consumption.
  269. * @note After wakeup from SLEEP mode, the peripheral clock is enabled again.
  270. * @note By default, all peripheral clocks are enabled during SLEEP mode.
  271. * @{
  272. */
  273. #if defined(STM32F207xx) || defined(STM32F217xx)
  274. #define __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACLPEN))
  275. #define __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACTXLPEN))
  276. #define __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACRXLPEN))
  277. #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_ETHMACPTPLPEN))
  278. #define __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACLPEN))
  279. #define __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACTXLPEN))
  280. #define __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACRXLPEN))
  281. #define __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_ETHMACPTPLPEN))
  282. #endif /* STM32F207xx || STM32F217xx */
  283. /**
  284. * @}
  285. */
  286. /** @defgroup RCCEx_AHB2_LowPower_Enable_Disable AHB2 Peripheral Low Power Enable Disable
  287. * @brief Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode.
  288. * @note Peripheral clock gating in SLEEP mode can be used to further reduce
  289. * power consumption.
  290. * @note After wake-up from SLEEP mode, the peripheral clock is enabled again.
  291. * @note By default, all peripheral clocks are enabled during SLEEP mode.
  292. * @{
  293. */
  294. #if defined(STM32F207xx) || defined(STM32F217xx)
  295. #define __HAL_RCC_DCMI_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_DCMILPEN))
  296. #define __HAL_RCC_DCMI_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_DCMILPEN))
  297. #endif /* STM32F207xx || STM32F217xx */
  298. #if defined(STM32F215xx) || defined(STM32F217xx)
  299. #define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_CRYPLPEN))
  300. #define __HAL_RCC_HASH_CLK_SLEEP_ENABLE() (RCC->AHB2LPENR |= (RCC_AHB2LPENR_HASHLPEN))
  301. #define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_CRYPLPEN))
  302. #define __HAL_RCC_HASH_CLK_SLEEP_DISABLE() (RCC->AHB2LPENR &= ~(RCC_AHB2LPENR_HASHLPEN))
  303. #endif /* STM32F215xx || STM32F217xx */
  304. /**
  305. * @}
  306. */
  307. /**
  308. * @}
  309. */
  310. /* Exported functions --------------------------------------------------------*/
  311. /** @addtogroup RCCEx_Exported_Functions
  312. * @{
  313. */
  314. /** @addtogroup RCCEx_Exported_Functions_Group1
  315. * @{
  316. */
  317. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
  318. void HAL_RCCEx_GetPeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
  319. /**
  320. * @}
  321. */
  322. /**
  323. * @}
  324. */
  325. /* Private types -------------------------------------------------------------*/
  326. /* Private variables ---------------------------------------------------------*/
  327. /* Private constants ---------------------------------------------------------*/
  328. /** @defgroup RCCEx_Private_Constants RCC Private Constants
  329. * @{
  330. */
  331. /** @defgroup RCCEx_BitAddress_AliasRegion RCC BitAddress AliasRegion
  332. * @brief RCC registers bit address in the alias region
  333. * @{
  334. */
  335. #define PLL_TIMEOUT_VALUE ((uint32_t)100) /* 100 ms */
  336. /**
  337. * @}
  338. */
  339. /**
  340. * @}
  341. */
  342. /* Private macros ------------------------------------------------------------*/
  343. /** @defgroup RCCEx_Private_Macros RCC Private Macros
  344. * @{
  345. */
  346. /** @defgroup RCCEx_IS_RCC_Definitions RCC Private macros to check input parameters
  347. * @{
  348. */
  349. #define IS_RCC_PERIPHCLOCK(SELECTION) ((1 <= (SELECTION)) && ((SELECTION) <= 0x0000000F))
  350. #define IS_RCC_PLLI2SN_VALUE(VALUE) ((192 <= (VALUE)) && ((VALUE) <= 432))
  351. #define IS_RCC_PLLI2SR_VALUE(VALUE) ((2 <= (VALUE)) && ((VALUE) <= 7))
  352. /**
  353. * @}
  354. */
  355. /**
  356. * @}
  357. */
  358. /**
  359. * @}
  360. */
  361. /**
  362. * @}
  363. */
  364. #ifdef __cplusplus
  365. }
  366. #endif
  367. #endif /* __STM32F2xx_HAL_RCC_EX_H */
  368. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/