stm32l5xx_hal.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. /**
  2. ******************************************************************************
  3. * @file stm32l5xx_hal.h
  4. * @author MCD Application Team
  5. * @brief This file contains all the functions prototypes for the HAL
  6. * module driver.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef STM32L5xx_HAL_H
  22. #define STM32L5xx_HAL_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "stm32l5xx_hal_conf.h"
  28. /** @addtogroup STM32L5xx_HAL_Driver
  29. * @{
  30. */
  31. /** @addtogroup HAL
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported types ------------------------------------------------------------*/
  36. /* Exported constants --------------------------------------------------------*/
  37. /** @defgroup HAL_Exported_Constants HAL Exported Constants
  38. * @{
  39. */
  40. /** @defgroup HAL_TICK_FREQ Tick Frequency
  41. * @{
  42. */
  43. #define HAL_TICK_FREQ_10HZ 100U
  44. #define HAL_TICK_FREQ_100HZ 10U
  45. #define HAL_TICK_FREQ_1KHZ 1U
  46. #define HAL_TICK_FREQ_DEFAULT HAL_TICK_FREQ_1KHZ
  47. /**
  48. * @}
  49. */
  50. /**
  51. * @}
  52. */
  53. /** @defgroup SYSCFG_Exported_Constants SYSCFG Exported Constants
  54. * @{
  55. */
  56. /** @defgroup SYSCFG_FPU_Interrupts FPU Interrupts
  57. * @{
  58. */
  59. #define SYSCFG_IT_FPU_IOC SYSCFG_FPUIMR_FPU_IE_0 /*!< Floating Point Unit Invalid operation Interrupt */
  60. #define SYSCFG_IT_FPU_DZC SYSCFG_FPUIMR_FPU_IE_1 /*!< Floating Point Unit Divide-by-zero Interrupt */
  61. #define SYSCFG_IT_FPU_UFC SYSCFG_FPUIMR_FPU_IE_2 /*!< Floating Point Unit Underflow Interrupt */
  62. #define SYSCFG_IT_FPU_OFC SYSCFG_FPUIMR_FPU_IE_3 /*!< Floating Point Unit Overflow Interrupt */
  63. #define SYSCFG_IT_FPU_IDC SYSCFG_FPUIMR_FPU_IE_4 /*!< Floating Point Unit Input denormal Interrupt */
  64. #define SYSCFG_IT_FPU_IXC SYSCFG_FPUIMR_FPU_IE_5 /*!< Floating Point Unit Inexact Interrupt */
  65. /**
  66. * @}
  67. */
  68. /** @defgroup SYSCFG_SRAM2WRP_0_31 SRAM2 Page Write protection (0 to 31)
  69. * @{
  70. */
  71. #define SYSCFG_SRAM2WRP_PAGE0 SYSCFG_SWPR_P0WP /*!< SRAM2 Write protection page 0 */
  72. #define SYSCFG_SRAM2WRP_PAGE1 SYSCFG_SWPR_P1WP /*!< SRAM2 Write protection page 1 */
  73. #define SYSCFG_SRAM2WRP_PAGE2 SYSCFG_SWPR_P2WP /*!< SRAM2 Write protection page 2 */
  74. #define SYSCFG_SRAM2WRP_PAGE3 SYSCFG_SWPR_P3WP /*!< SRAM2 Write protection page 3 */
  75. #define SYSCFG_SRAM2WRP_PAGE4 SYSCFG_SWPR_P4WP /*!< SRAM2 Write protection page 4 */
  76. #define SYSCFG_SRAM2WRP_PAGE5 SYSCFG_SWPR_P5WP /*!< SRAM2 Write protection page 5 */
  77. #define SYSCFG_SRAM2WRP_PAGE6 SYSCFG_SWPR_P6WP /*!< SRAM2 Write protection page 6 */
  78. #define SYSCFG_SRAM2WRP_PAGE7 SYSCFG_SWPR_P7WP /*!< SRAM2 Write protection page 7 */
  79. #define SYSCFG_SRAM2WRP_PAGE8 SYSCFG_SWPR_P8WP /*!< SRAM2 Write protection page 8 */
  80. #define SYSCFG_SRAM2WRP_PAGE9 SYSCFG_SWPR_P9WP /*!< SRAM2 Write protection page 9 */
  81. #define SYSCFG_SRAM2WRP_PAGE10 SYSCFG_SWPR_P10WP /*!< SRAM2 Write protection page 10 */
  82. #define SYSCFG_SRAM2WRP_PAGE11 SYSCFG_SWPR_P11WP /*!< SRAM2 Write protection page 11 */
  83. #define SYSCFG_SRAM2WRP_PAGE12 SYSCFG_SWPR_P12WP /*!< SRAM2 Write protection page 12 */
  84. #define SYSCFG_SRAM2WRP_PAGE13 SYSCFG_SWPR_P13WP /*!< SRAM2 Write protection page 13 */
  85. #define SYSCFG_SRAM2WRP_PAGE14 SYSCFG_SWPR_P14WP /*!< SRAM2 Write protection page 14 */
  86. #define SYSCFG_SRAM2WRP_PAGE15 SYSCFG_SWPR_P15WP /*!< SRAM2 Write protection page 15 */
  87. #define SYSCFG_SRAM2WRP_PAGE16 SYSCFG_SWPR_P16WP /*!< SRAM2 Write protection page 16 */
  88. #define SYSCFG_SRAM2WRP_PAGE17 SYSCFG_SWPR_P17WP /*!< SRAM2 Write protection page 17 */
  89. #define SYSCFG_SRAM2WRP_PAGE18 SYSCFG_SWPR_P18WP /*!< SRAM2 Write protection page 18 */
  90. #define SYSCFG_SRAM2WRP_PAGE19 SYSCFG_SWPR_P19WP /*!< SRAM2 Write protection page 19 */
  91. #define SYSCFG_SRAM2WRP_PAGE20 SYSCFG_SWPR_P20WP /*!< SRAM2 Write protection page 20 */
  92. #define SYSCFG_SRAM2WRP_PAGE21 SYSCFG_SWPR_P21WP /*!< SRAM2 Write protection page 21 */
  93. #define SYSCFG_SRAM2WRP_PAGE22 SYSCFG_SWPR_P22WP /*!< SRAM2 Write protection page 22 */
  94. #define SYSCFG_SRAM2WRP_PAGE23 SYSCFG_SWPR_P23WP /*!< SRAM2 Write protection page 23 */
  95. #define SYSCFG_SRAM2WRP_PAGE24 SYSCFG_SWPR_P24WP /*!< SRAM2 Write protection page 24 */
  96. #define SYSCFG_SRAM2WRP_PAGE25 SYSCFG_SWPR_P25WP /*!< SRAM2 Write protection page 25 */
  97. #define SYSCFG_SRAM2WRP_PAGE26 SYSCFG_SWPR_P26WP /*!< SRAM2 Write protection page 26 */
  98. #define SYSCFG_SRAM2WRP_PAGE27 SYSCFG_SWPR_P27WP /*!< SRAM2 Write protection page 27 */
  99. #define SYSCFG_SRAM2WRP_PAGE28 SYSCFG_SWPR_P28WP /*!< SRAM2 Write protection page 28 */
  100. #define SYSCFG_SRAM2WRP_PAGE29 SYSCFG_SWPR_P29WP /*!< SRAM2 Write protection page 29 */
  101. #define SYSCFG_SRAM2WRP_PAGE30 SYSCFG_SWPR_P30WP /*!< SRAM2 Write protection page 30 */
  102. #define SYSCFG_SRAM2WRP_PAGE31 SYSCFG_SWPR_P31WP /*!< SRAM2 Write protection page 31 */
  103. /**
  104. * @}
  105. */
  106. /** @defgroup SYSCFG_SRAM2WRP_32_63 SRAM2 Page Write protection (32 to 63)
  107. * @{
  108. */
  109. #define SYSCFG_SRAM2WRP_PAGE32 SYSCFG_SWPR2_P32WP /*!< SRAM2 Write protection page 32 */
  110. #define SYSCFG_SRAM2WRP_PAGE33 SYSCFG_SWPR2_P33WP /*!< SRAM2 Write protection page 33 */
  111. #define SYSCFG_SRAM2WRP_PAGE34 SYSCFG_SWPR2_P34WP /*!< SRAM2 Write protection page 34 */
  112. #define SYSCFG_SRAM2WRP_PAGE35 SYSCFG_SWPR2_P35WP /*!< SRAM2 Write protection page 35 */
  113. #define SYSCFG_SRAM2WRP_PAGE36 SYSCFG_SWPR2_P36WP /*!< SRAM2 Write protection page 36 */
  114. #define SYSCFG_SRAM2WRP_PAGE37 SYSCFG_SWPR2_P37WP /*!< SRAM2 Write protection page 37 */
  115. #define SYSCFG_SRAM2WRP_PAGE38 SYSCFG_SWPR2_P38WP /*!< SRAM2 Write protection page 38 */
  116. #define SYSCFG_SRAM2WRP_PAGE39 SYSCFG_SWPR2_P39WP /*!< SRAM2 Write protection page 39 */
  117. #define SYSCFG_SRAM2WRP_PAGE40 SYSCFG_SWPR2_P40WP /*!< SRAM2 Write protection page 40 */
  118. #define SYSCFG_SRAM2WRP_PAGE41 SYSCFG_SWPR2_P41WP /*!< SRAM2 Write protection page 41 */
  119. #define SYSCFG_SRAM2WRP_PAGE42 SYSCFG_SWPR2_P42WP /*!< SRAM2 Write protection page 42 */
  120. #define SYSCFG_SRAM2WRP_PAGE43 SYSCFG_SWPR2_P43WP /*!< SRAM2 Write protection page 43 */
  121. #define SYSCFG_SRAM2WRP_PAGE44 SYSCFG_SWPR2_P44WP /*!< SRAM2 Write protection page 44 */
  122. #define SYSCFG_SRAM2WRP_PAGE45 SYSCFG_SWPR2_P45WP /*!< SRAM2 Write protection page 45 */
  123. #define SYSCFG_SRAM2WRP_PAGE46 SYSCFG_SWPR2_P46WP /*!< SRAM2 Write protection page 46 */
  124. #define SYSCFG_SRAM2WRP_PAGE47 SYSCFG_SWPR2_P47WP /*!< SRAM2 Write protection page 47 */
  125. #define SYSCFG_SRAM2WRP_PAGE48 SYSCFG_SWPR2_P48WP /*!< SRAM2 Write protection page 48 */
  126. #define SYSCFG_SRAM2WRP_PAGE49 SYSCFG_SWPR2_P49WP /*!< SRAM2 Write protection page 49 */
  127. #define SYSCFG_SRAM2WRP_PAGE50 SYSCFG_SWPR2_P50WP /*!< SRAM2 Write protection page 50 */
  128. #define SYSCFG_SRAM2WRP_PAGE51 SYSCFG_SWPR2_P51WP /*!< SRAM2 Write protection page 51 */
  129. #define SYSCFG_SRAM2WRP_PAGE52 SYSCFG_SWPR2_P52WP /*!< SRAM2 Write protection page 52 */
  130. #define SYSCFG_SRAM2WRP_PAGE53 SYSCFG_SWPR2_P53WP /*!< SRAM2 Write protection page 53 */
  131. #define SYSCFG_SRAM2WRP_PAGE54 SYSCFG_SWPR2_P54WP /*!< SRAM2 Write protection page 54 */
  132. #define SYSCFG_SRAM2WRP_PAGE55 SYSCFG_SWPR2_P55WP /*!< SRAM2 Write protection page 55 */
  133. #define SYSCFG_SRAM2WRP_PAGE56 SYSCFG_SWPR2_P56WP /*!< SRAM2 Write protection page 56 */
  134. #define SYSCFG_SRAM2WRP_PAGE57 SYSCFG_SWPR2_P57WP /*!< SRAM2 Write protection page 57 */
  135. #define SYSCFG_SRAM2WRP_PAGE58 SYSCFG_SWPR2_P58WP /*!< SRAM2 Write protection page 58 */
  136. #define SYSCFG_SRAM2WRP_PAGE59 SYSCFG_SWPR2_P59WP /*!< SRAM2 Write protection page 59 */
  137. #define SYSCFG_SRAM2WRP_PAGE60 SYSCFG_SWPR2_P60WP /*!< SRAM2 Write protection page 60 */
  138. #define SYSCFG_SRAM2WRP_PAGE61 SYSCFG_SWPR2_P61WP /*!< SRAM2 Write protection page 61 */
  139. #define SYSCFG_SRAM2WRP_PAGE62 SYSCFG_SWPR2_P62WP /*!< SRAM2 Write protection page 62 */
  140. #define SYSCFG_SRAM2WRP_PAGE63 SYSCFG_SWPR2_P63WP /*!< SRAM2 Write protection page 63 */
  141. /**
  142. * @}
  143. */
  144. /** @defgroup SYSCFG_VREFBUF_VoltageScale VREFBUF Voltage Scale
  145. * @{
  146. */
  147. #define SYSCFG_VREFBUF_VOLTAGE_SCALE0 0U /*!< Voltage reference scale 0 (VREF_OUT1) */
  148. #define SYSCFG_VREFBUF_VOLTAGE_SCALE1 VREFBUF_CSR_VRS /*!< Voltage reference scale 1 (VREF_OUT2) */
  149. /**
  150. * @}
  151. */
  152. /** @defgroup SYSCFG_VREFBUF_HighImpedance VREFBUF High Impedance
  153. * @{
  154. */
  155. #define SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE 0U /*!< VREF_plus pin is internally connected to Voltage reference buffer output */
  156. #define SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE VREFBUF_CSR_HIZ /*!< VREF_plus pin is high impedance */
  157. /**
  158. * @}
  159. */
  160. /** @defgroup SYSCFG_flags_definition Flags
  161. * @{
  162. */
  163. #define SYSCFG_FLAG_SRAM2_PE SYSCFG_CFGR2_SPF /*!< SRAM2 parity error */
  164. #define SYSCFG_FLAG_SRAM2_BUSY SYSCFG_SCSR_SRAM2BSY /*!< SRAM2 busy by erase operation */
  165. /**
  166. * @}
  167. */
  168. /** @defgroup SYSCFG_FastModePlus_GPIO Fast-mode Plus on GPIO
  169. * @{
  170. */
  171. /** @brief Fast-mode Plus driving capability on a specific GPIO
  172. */
  173. #define SYSCFG_FASTMODEPLUS_PB6 SYSCFG_CFGR1_I2C_PB6_FMP /*!< Enable Fast-mode Plus on PB6 */
  174. #define SYSCFG_FASTMODEPLUS_PB7 SYSCFG_CFGR1_I2C_PB7_FMP /*!< Enable Fast-mode Plus on PB7 */
  175. #define SYSCFG_FASTMODEPLUS_PB8 SYSCFG_CFGR1_I2C_PB8_FMP /*!< Enable Fast-mode Plus on PB8 */
  176. #define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_CFGR1_I2C_PB9_FMP /*!< Enable Fast-mode Plus on PB9 */
  177. /**
  178. * @}
  179. */
  180. /** @defgroup SYSCFG_Lock_items SYSCFG Lock items
  181. * @brief SYSCFG items to set lock on
  182. * @{
  183. */
  184. #define SYSCFG_MPU_NSEC SYSCFG_CNSLCKR_LOCKNSMPU /*!< Non-secure MPU lock (privileged secure or non-secure only) */
  185. #define SYSCFG_VTOR_NSEC SYSCFG_CNSLCKR_LOCKNSVTOR /*!< Non-secure VTOR lock (privileged secure or non-secure only) */
  186. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  187. #define SYSCFG_SAU (SYSCFG_CSLCKR_LOCKSAU << 16U) /*!< SAU lock (privileged secure code only) */
  188. #define SYSCFG_MPU_SEC (SYSCFG_CSLCKR_LOCKSMPU << 16U) /*!< Secure MPU lock (privileged secure code only) */
  189. #define SYSCFG_VTOR_AIRCR_SEC (SYSCFG_CSLCKR_LOCKSVTAIRCR << 16U) /*!< VTOR_S and AIRCR lock (privileged secure code only) */
  190. #define SYSCFG_LOCK_ALL (SYSCFG_MPU_NSEC|SYSCFG_VTOR_NSEC|SYSCFG_SAU|SYSCFG_MPU_SEC|SYSCFG_VTOR_AIRCR_SEC) /*!< All */
  191. #else
  192. #define SYSCFG_LOCK_ALL (SYSCFG_MPU_NSEC|SYSCFG_VTOR_NSEC) /*!< All (privileged secure or non-secure only) */
  193. #endif /* __ARM_FEATURE_CMSE */
  194. /**
  195. * @}
  196. */
  197. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  198. /** @defgroup SYSCFG_Attributes_items SYSCFG Attributes items
  199. * @brief SYSCFG items to configure secure or non-secure attributes on
  200. * @{
  201. */
  202. #define SYSCFG_CLK SYSCFG_SECCFGR_SYSCFGSEC /*!< SYSCFG clock control */
  203. #define SYSCFG_CLASSB SYSCFG_SECCFGR_CLASSBSEC /*!< Class B */
  204. #define SYSCFG_SRAM2 SYSCFG_SECCFGR_SRAM2SEC /*!< SRAM2 */
  205. #define SYSCFG_FPU SYSCFG_SECCFGR_FPUSEC /*!< FPU */
  206. #define SYSCFG_ALL (SYSCFG_CLK | SYSCFG_CLASSB | SYSCFG_SRAM2 | SYSCFG_FPU) /*!< All */
  207. /**
  208. * @}
  209. */
  210. /** @defgroup SYSCFG_attributes SYSCFG attributes
  211. * @brief SYSCFG secure or non-secure attributes
  212. * @{
  213. */
  214. #define SYSCFG_SEC 0x00000001U /*!< Secure attribute */
  215. #define SYSCFG_NSEC 0x00000000U /*!< Non-secure attribute */
  216. /**
  217. * @}
  218. */
  219. #endif /* __ARM_FEATURE_CMSE */
  220. /**
  221. * @}
  222. */
  223. /* Exported macros -----------------------------------------------------------*/
  224. /** @defgroup DBGMCU_Exported_Macros DBGMCU Exported Macros
  225. * @{
  226. */
  227. /** @brief Freeze/Unfreeze Peripherals in Debug mode
  228. */
  229. #if defined(DBGMCU_APB1FZR1_DBG_TIM2_STOP)
  230. #define __HAL_DBGMCU_FREEZE_TIM2() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM2_STOP)
  231. #define __HAL_DBGMCU_UNFREEZE_TIM2() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM2_STOP)
  232. #endif
  233. #if defined(DBGMCU_APB1FZR1_DBG_TIM3_STOP)
  234. #define __HAL_DBGMCU_FREEZE_TIM3() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM3_STOP)
  235. #define __HAL_DBGMCU_UNFREEZE_TIM3() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM3_STOP)
  236. #endif
  237. #if defined(DBGMCU_APB1FZR1_DBG_TIM4_STOP)
  238. #define __HAL_DBGMCU_FREEZE_TIM4() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM4_STOP)
  239. #define __HAL_DBGMCU_UNFREEZE_TIM4() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM4_STOP)
  240. #endif
  241. #if defined(DBGMCU_APB1FZR1_DBG_TIM5_STOP)
  242. #define __HAL_DBGMCU_FREEZE_TIM5() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM5_STOP)
  243. #define __HAL_DBGMCU_UNFREEZE_TIM5() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM5_STOP)
  244. #endif
  245. #if defined(DBGMCU_APB1FZR1_DBG_TIM6_STOP)
  246. #define __HAL_DBGMCU_FREEZE_TIM6() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM6_STOP)
  247. #define __HAL_DBGMCU_UNFREEZE_TIM6() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM6_STOP)
  248. #endif
  249. #if defined(DBGMCU_APB1FZR1_DBG_TIM7_STOP)
  250. #define __HAL_DBGMCU_FREEZE_TIM7() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM7_STOP)
  251. #define __HAL_DBGMCU_UNFREEZE_TIM7() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_TIM7_STOP)
  252. #endif
  253. #if defined(DBGMCU_APB1FZR1_DBG_RTC_STOP)
  254. #define __HAL_DBGMCU_FREEZE_RTC() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_RTC_STOP)
  255. #define __HAL_DBGMCU_UNFREEZE_RTC() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_RTC_STOP)
  256. #endif
  257. #if defined(DBGMCU_APB1FZR1_DBG_WWDG_STOP)
  258. #define __HAL_DBGMCU_FREEZE_WWDG() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_WWDG_STOP)
  259. #define __HAL_DBGMCU_UNFREEZE_WWDG() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_WWDG_STOP)
  260. #endif
  261. #if defined(DBGMCU_APB1FZR1_DBG_IWDG_STOP)
  262. #define __HAL_DBGMCU_FREEZE_IWDG() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_IWDG_STOP)
  263. #define __HAL_DBGMCU_UNFREEZE_IWDG() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_IWDG_STOP)
  264. #endif
  265. #if defined(DBGMCU_APB1FZR1_DBG_I2C1_STOP)
  266. #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C1_STOP)
  267. #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C1_STOP)
  268. #endif
  269. #if defined(DBGMCU_APB1FZR1_DBG_I2C2_STOP)
  270. #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C2_STOP)
  271. #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C2_STOP)
  272. #endif
  273. #if defined(DBGMCU_APB1FZR1_DBG_I2C3_STOP)
  274. #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C3_STOP)
  275. #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_I2C3_STOP)
  276. #endif
  277. #if defined(DBGMCU_APB1FZR2_DBG_I2C4_STOP)
  278. #define __HAL_DBGMCU_FREEZE_I2C4_TIMEOUT() SET_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_I2C4_STOP)
  279. #define __HAL_DBGMCU_UNFREEZE_I2C4_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_I2C4_STOP)
  280. #endif
  281. #if defined(DBGMCU_APB1FZR1_DBG_FDCAN1_STOP)
  282. #define __HAL_DBGMCU_FREEZE_FDCAN1() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_FDCAN1_STOP)
  283. #define __HAL_DBGMCU_UNFREEZE_FDCAN1() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_FDCAN1_STOP)
  284. #endif
  285. #if defined(DBGMCU_APB1FZR1_DBG_LPTIM1_STOP)
  286. #define __HAL_DBGMCU_FREEZE_LPTIM1() SET_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_LPTIM1_STOP)
  287. #define __HAL_DBGMCU_UNFREEZE_LPTIM1() CLEAR_BIT(DBGMCU->APB1FZR1, DBGMCU_APB1FZR1_DBG_LPTIM1_STOP)
  288. #endif
  289. #if defined(DBGMCU_APB1FZR2_DBG_LPTIM2_STOP)
  290. #define __HAL_DBGMCU_FREEZE_LPTIM2() SET_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_LPTIM2_STOP)
  291. #define __HAL_DBGMCU_UNFREEZE_LPTIM2() CLEAR_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_LPTIM2_STOP)
  292. #endif
  293. #if defined(DBGMCU_APB1FZR2_DBG_LPTIM3_STOP)
  294. #define __HAL_DBGMCU_FREEZE_LPTIM3() SET_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_LPTIM3_STOP)
  295. #define __HAL_DBGMCU_UNFREEZE_LPTIM3() CLEAR_BIT(DBGMCU->APB1FZR2, DBGMCU_APB1FZR2_DBG_LPTIM3_STOP)
  296. #endif
  297. #if defined(DBGMCU_APB2FZR_DBG_TIM1_STOP)
  298. #define __HAL_DBGMCU_FREEZE_TIM1() SET_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM1_STOP)
  299. #define __HAL_DBGMCU_UNFREEZE_TIM1() CLEAR_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM1_STOP)
  300. #endif
  301. #if defined(DBGMCU_APB2FZR_DBG_TIM8_STOP)
  302. #define __HAL_DBGMCU_FREEZE_TIM8() SET_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM8_STOP)
  303. #define __HAL_DBGMCU_UNFREEZE_TIM8() CLEAR_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM8_STOP)
  304. #endif
  305. #if defined(DBGMCU_APB2FZR_DBG_TIM15_STOP)
  306. #define __HAL_DBGMCU_FREEZE_TIM15() SET_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM15_STOP)
  307. #define __HAL_DBGMCU_UNFREEZE_TIM15() CLEAR_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM15_STOP)
  308. #endif
  309. #if defined(DBGMCU_APB2FZR_DBG_TIM16_STOP)
  310. #define __HAL_DBGMCU_FREEZE_TIM16() SET_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM16_STOP)
  311. #define __HAL_DBGMCU_UNFREEZE_TIM16() CLEAR_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM16_STOP)
  312. #endif
  313. #if defined(DBGMCU_APB2FZR_DBG_TIM17_STOP)
  314. #define __HAL_DBGMCU_FREEZE_TIM17() SET_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM17_STOP)
  315. #define __HAL_DBGMCU_UNFREEZE_TIM17() CLEAR_BIT(DBGMCU->APB2FZR, DBGMCU_APB2FZR_DBG_TIM17_STOP)
  316. #endif
  317. /**
  318. * @}
  319. */
  320. /** @defgroup SYSCFG_Exported_Macros SYSCFG Exported Macros
  321. * @{
  322. */
  323. /** @brief SRAM2 page 0 to 31 write protection enable macro
  324. * @param __SRAM2WRP__ This parameter can be a combination of values of @ref SYSCFG_SRAM2WRP_0_31
  325. * @note Write protection can only be disabled by a system reset
  326. */
  327. #define __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE(__SRAM2WRP__) do {assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
  328. SET_BIT(SYSCFG->SWPR, (__SRAM2WRP__));\
  329. }while(0)
  330. /** @brief SRAM2 page 32 to 63 write protection enable macro
  331. * @param __SRAM2WRP__ This parameter can be a combination of values of @ref SYSCFG_SRAM2WRP_32_63
  332. * @note Write protection can only be disabled by a system reset
  333. */
  334. #define __HAL_SYSCFG_SRAM2_WRP_32_63_ENABLE(__SRAM2WRP__) do {assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
  335. SET_BIT(SYSCFG->SWPR2, (__SRAM2WRP__));\
  336. }while(0)
  337. /** @brief SRAM2 page write protection unlock prior to erase
  338. * @note Writing a wrong key reactivates the write protection
  339. */
  340. #define __HAL_SYSCFG_SRAM2_WRP_UNLOCK() do {SYSCFG->SKR = 0xCA;\
  341. SYSCFG->SKR = 0x53;\
  342. }while(0)
  343. /** @brief SRAM2 erase
  344. * @note __SYSCFG_GET_FLAG(SYSCFG_FLAG_SRAM2_BUSY) may be used to check end of erase
  345. */
  346. #define __HAL_SYSCFG_SRAM2_ERASE() SET_BIT(SYSCFG->SCSR, SYSCFG_SCSR_SRAM2ER)
  347. /** @brief Floating Point Unit interrupt enable/disable macros
  348. * @param __INTERRUPT__ This parameter can be a value of @ref SYSCFG_FPU_Interrupts
  349. */
  350. #define __HAL_SYSCFG_FPU_INTERRUPT_ENABLE(__INTERRUPT__) do {assert_param(IS_SYSCFG_FPU_INTERRUPT((__INTERRUPT__)));\
  351. SET_BIT(SYSCFG->FPUIMR, (__INTERRUPT__));\
  352. }while(0)
  353. #define __HAL_SYSCFG_FPU_INTERRUPT_DISABLE(__INTERRUPT__) do {assert_param(IS_SYSCFG_FPU_INTERRUPT((__INTERRUPT__)));\
  354. CLEAR_BIT(SYSCFG->FPUIMR, (__INTERRUPT__));\
  355. }while(0)
  356. /** @brief SYSCFG Break ECC lock.
  357. * Enable and lock the connection of Flash ECC error connection to TIM1/8/15/16/17 Break input.
  358. * @note The selected configuration is locked and can be unlocked only by system reset.
  359. */
  360. #define __HAL_SYSCFG_BREAK_ECC_LOCK() SET_BIT(SYSCFG->CFGR2, SYSCFG_CFGR2_ECCL)
  361. /** @brief SYSCFG Break Cortex-M33 Lockup lock.
  362. * Enable and lock the connection of Cortex-M33 LOCKUP (Hardfault) output to TIM1/8/15/16/17 Break input.
  363. * @note The selected configuration is locked and can be unlocked only by system reset.
  364. */
  365. #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK() SET_BIT(SYSCFG->CFGR2, SYSCFG_CFGR2_CLL)
  366. /** @brief SYSCFG Break PVD lock.
  367. * Enable and lock the PVD connection to Timer1/8/15/16/17 Break input, as well as the PVDE and PLS[2:0] in the PWR_CR2 register.
  368. * @note The selected configuration is locked and can be unlocked only by system reset.
  369. */
  370. #define __HAL_SYSCFG_BREAK_PVD_LOCK() SET_BIT(SYSCFG->CFGR2, SYSCFG_CFGR2_PVDL)
  371. /** @brief SYSCFG Break SRAM2 parity lock.
  372. * Enable and lock the SRAM2 parity error signal connection to TIM1/8/15/16/17 Break input.
  373. * @note The selected configuration is locked and can be unlocked by system reset.
  374. */
  375. #define __HAL_SYSCFG_BREAK_SRAM2PARITY_LOCK() SET_BIT(SYSCFG->CFGR2, SYSCFG_CFGR2_SPL)
  376. /** @brief Check SYSCFG flag is set or not.
  377. * @param __FLAG__ specifies the flag to check.
  378. * This parameter can be one of the following values:
  379. * @arg @ref SYSCFG_FLAG_SRAM2_PE SRAM2 Parity Error Flag
  380. * @arg @ref SYSCFG_FLAG_SRAM2_BUSY SRAM2 Erase Ongoing
  381. * @retval The new state of __FLAG__ (TRUE or FALSE).
  382. */
  383. #define __HAL_SYSCFG_GET_FLAG(__FLAG__) ((((((__FLAG__) == SYSCFG_SCSR_SRAM2BSY)? SYSCFG->SCSR : SYSCFG->CFGR2) & (__FLAG__))!= 0U) ? 1U : 0U)
  384. /** @brief Set the SPF bit to clear the SRAM Parity Error Flag.
  385. */
  386. #define __HAL_SYSCFG_CLEAR_FLAG() SET_BIT(SYSCFG->CFGR2, SYSCFG_CFGR2_SPF)
  387. /** @brief Fast-mode Plus driving capability enable/disable macros
  388. * @param __FASTMODEPLUS__ This parameter can be a value of :
  389. * @arg @ref SYSCFG_FASTMODEPLUS_PB6 Fast-mode Plus driving capability activation on PB6
  390. * @arg @ref SYSCFG_FASTMODEPLUS_PB7 Fast-mode Plus driving capability activation on PB7
  391. * @arg @ref SYSCFG_FASTMODEPLUS_PB8 Fast-mode Plus driving capability activation on PB8
  392. * @arg @ref SYSCFG_FASTMODEPLUS_PB9 Fast-mode Plus driving capability activation on PB9
  393. */
  394. #define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\
  395. SET_BIT(SYSCFG->CFGR1, (__FASTMODEPLUS__));\
  396. }while(0)
  397. #define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\
  398. CLEAR_BIT(SYSCFG->CFGR1, (__FASTMODEPLUS__));\
  399. }while(0)
  400. /**
  401. * @}
  402. */
  403. /* Private macros ------------------------------------------------------------*/
  404. /** @defgroup HAL_Private_Macros HAL Private Macros
  405. * @{
  406. */
  407. #define IS_TICKFREQ(__FREQ__) (((__FREQ__) == HAL_TICK_FREQ_10HZ) || \
  408. ((__FREQ__) == HAL_TICK_FREQ_100HZ) || \
  409. ((__FREQ__) == HAL_TICK_FREQ_1KHZ))
  410. /**
  411. * @}
  412. */
  413. /** @defgroup SYSCFG_Private_Macros SYSCFG Private Macros
  414. * @{
  415. */
  416. #define IS_SYSCFG_FPU_INTERRUPT(__INTERRUPT__) ((((__INTERRUPT__) & SYSCFG_IT_FPU_IOC) == SYSCFG_IT_FPU_IOC) || \
  417. (((__INTERRUPT__) & SYSCFG_IT_FPU_DZC) == SYSCFG_IT_FPU_DZC) || \
  418. (((__INTERRUPT__) & SYSCFG_IT_FPU_UFC) == SYSCFG_IT_FPU_UFC) || \
  419. (((__INTERRUPT__) & SYSCFG_IT_FPU_OFC) == SYSCFG_IT_FPU_OFC) || \
  420. (((__INTERRUPT__) & SYSCFG_IT_FPU_IDC) == SYSCFG_IT_FPU_IDC) || \
  421. (((__INTERRUPT__) & SYSCFG_IT_FPU_IXC) == SYSCFG_IT_FPU_IXC))
  422. #define IS_SYSCFG_BREAK_CONFIG(__CONFIG__) (((__CONFIG__) == SYSCFG_BREAK_ECC) || \
  423. ((__CONFIG__) == SYSCFG_BREAK_PVD) || \
  424. ((__CONFIG__) == SYSCFG_BREAK_SRAM2_PARITY) || \
  425. ((__CONFIG__) == SYSCFG_BREAK_LOCKUP))
  426. #define IS_SYSCFG_SRAM2WRP_PAGE(__PAGE__) (((__PAGE__) > 0U) && ((__PAGE__) <= 0xFFFFFFFFUL))
  427. #define IS_SYSCFG_VREFBUF_VOLTAGE_SCALE(__SCALE__) (((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE0) || \
  428. ((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE1))
  429. #define IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(__VALUE__) (((__VALUE__) == SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE) || \
  430. ((__VALUE__) == SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE))
  431. #define IS_SYSCFG_VREFBUF_TRIMMING(__VALUE__) (((__VALUE__) > 0U) && ((__VALUE__) <= VREFBUF_CCR_TRIM))
  432. #define IS_SYSCFG_FASTMODEPLUS(__PIN__) ((((__PIN__) & SYSCFG_FASTMODEPLUS_PB6) == SYSCFG_FASTMODEPLUS_PB6) || \
  433. (((__PIN__) & SYSCFG_FASTMODEPLUS_PB7) == SYSCFG_FASTMODEPLUS_PB7) || \
  434. (((__PIN__) & SYSCFG_FASTMODEPLUS_PB8) == SYSCFG_FASTMODEPLUS_PB8) || \
  435. (((__PIN__) & SYSCFG_FASTMODEPLUS_PB9) == SYSCFG_FASTMODEPLUS_PB9))
  436. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  437. #define IS_SYSCFG_ATTRIBUTES(__ATTRIBUTES__) (((__ATTRIBUTES__) == SYSCFG_SEC) ||\
  438. ((__ATTRIBUTES__) == SYSCFG_NSEC))
  439. #define IS_SYSCFG_ITEMS_ATTRIBUTES(__ITEM__) ((((__ITEM__) & SYSCFG_CLK) == SYSCFG_CLK) || \
  440. (((__ITEM__) & SYSCFG_CLK) == SYSCFG_CLASSB) || \
  441. (((__ITEM__) & SYSCFG_SRAM2) == SYSCFG_SRAM2) || \
  442. (((__ITEM__) & SYSCFG_FPU) == SYSCFG_CLK) || \
  443. (((__ITEM__) & ~(SYSCFG_ALL)) == 0U))
  444. #define IS_SYSCFG_LOCK_ITEMS(__ITEM__) ((((__ITEM__) & SYSCFG_MPU_NSEC) == SYSCFG_MPU_NSEC) || \
  445. (((__ITEM__) & SYSCFG_VTOR_NSEC) == SYSCFG_VTOR_NSEC) || \
  446. (((__ITEM__) & SYSCFG_SAU) == SYSCFG_SAU) || \
  447. (((__ITEM__) & SYSCFG_MPU_SEC) == SYSCFG_MPU_SEC) || \
  448. (((__ITEM__) & SYSCFG_VTOR_AIRCR_SEC) == SYSCFG_VTOR_AIRCR_SEC) || \
  449. (((__ITEM__) & ~(SYSCFG_LOCK_ALL)) == 0U))
  450. #else
  451. #define IS_SYSCFG_LOCK_ITEMS(__ITEM__) ((((__ITEM__) & SYSCFG_MPU_NSEC) == SYSCFG_MPU_NSEC) || \
  452. (((__ITEM__) & SYSCFG_VTOR_NSEC) == SYSCFG_VTOR_NSEC) || \
  453. (((__ITEM__) & ~(SYSCFG_LOCK_ALL)) == 0U))
  454. #endif /* __ARM_FEATURE_CMSE */
  455. /**
  456. * @}
  457. */
  458. /* Exported variables --------------------------------------------------------*/
  459. /** @addtogroup HAL_Exported_Variables
  460. * @{
  461. */
  462. extern __IO uint32_t uwTick;
  463. extern uint32_t uwTickPrio;
  464. extern uint32_t uwTickFreq;
  465. /**
  466. * @}
  467. */
  468. /* Exported functions --------------------------------------------------------*/
  469. /** @addtogroup HAL_Exported_Functions
  470. * @{
  471. */
  472. /** @addtogroup HAL_Exported_Functions_Group1
  473. * @{
  474. */
  475. /* Initialization and de-initialization functions ******************************/
  476. HAL_StatusTypeDef HAL_Init(void);
  477. HAL_StatusTypeDef HAL_DeInit(void);
  478. void HAL_MspInit(void);
  479. void HAL_MspDeInit(void);
  480. HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
  481. /**
  482. * @}
  483. */
  484. /** @addtogroup HAL_Exported_Functions_Group2
  485. * @{
  486. */
  487. /* Peripheral Control functions ************************************************/
  488. void HAL_IncTick(void);
  489. void HAL_Delay(uint32_t Delay);
  490. uint32_t HAL_GetTick(void);
  491. uint32_t HAL_GetTickPrio(void);
  492. HAL_StatusTypeDef HAL_SetTickFreq(uint32_t Freq);
  493. uint32_t HAL_GetTickFreq(void);
  494. void HAL_SuspendTick(void);
  495. void HAL_ResumeTick(void);
  496. uint32_t HAL_GetHalVersion(void);
  497. uint32_t HAL_GetREVID(void);
  498. uint32_t HAL_GetDEVID(void);
  499. uint32_t HAL_GetUIDw0(void);
  500. uint32_t HAL_GetUIDw1(void);
  501. uint32_t HAL_GetUIDw2(void);
  502. /**
  503. * @}
  504. */
  505. /** @addtogroup HAL_Exported_Functions_Group3
  506. * @{
  507. */
  508. /* DBGMCU Peripheral Control functions *****************************************/
  509. void HAL_DBGMCU_EnableDBGSleepMode(void);
  510. void HAL_DBGMCU_DisableDBGSleepMode(void);
  511. void HAL_DBGMCU_EnableDBGStopMode(void);
  512. void HAL_DBGMCU_DisableDBGStopMode(void);
  513. void HAL_DBGMCU_EnableDBGStandbyMode(void);
  514. void HAL_DBGMCU_DisableDBGStandbyMode(void);
  515. /**
  516. * @}
  517. */
  518. /** @addtogroup HAL_Exported_Functions_Group4
  519. * @{
  520. */
  521. /* SYSCFG Control functions ****************************************************/
  522. void HAL_SYSCFG_SRAM2Erase(void);
  523. void HAL_SYSCFG_VREFBUF_VoltageScalingConfig(uint32_t VoltageScaling);
  524. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode);
  525. void HAL_SYSCFG_VREFBUF_TrimmingConfig(uint32_t TrimmingValue);
  526. HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF(void);
  527. void HAL_SYSCFG_DisableVREFBUF(void);
  528. void HAL_SYSCFG_EnableIOAnalogBooster(void);
  529. void HAL_SYSCFG_DisableIOAnalogBooster(void);
  530. void HAL_SYSCFG_EnableIOAnalogSwitchVdd(void);
  531. void HAL_SYSCFG_DisableIOAnalogSwitchVdd(void);
  532. /**
  533. * @}
  534. */
  535. /** @addtogroup HAL_Exported_Functions_Group5
  536. * @{
  537. */
  538. /* SYSCFG Lock functions ********************************************/
  539. void HAL_SYSCFG_Lock(uint32_t Item);
  540. HAL_StatusTypeDef HAL_SYSCFG_GetLock(uint32_t *pItem);
  541. /**
  542. * @}
  543. */
  544. #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
  545. /** @addtogroup HAL_Exported_Functions_Group6
  546. * @{
  547. */
  548. /* SYSCFG Attributes functions ********************************************/
  549. void HAL_SYSCFG_ConfigAttributes(uint32_t Item, uint32_t Attributes);
  550. HAL_StatusTypeDef HAL_SYSCFG_GetConfigAttributes(uint32_t Item, uint32_t *pAttributes);
  551. /**
  552. * @}
  553. */
  554. #endif /* __ARM_FEATURE_CMSE */
  555. /**
  556. * @}
  557. */
  558. /**
  559. * @}
  560. */
  561. /**
  562. * @}
  563. */
  564. #ifdef __cplusplus
  565. }
  566. #endif
  567. #endif /* STM32L5xx_HAL_H */
  568. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/