stm32l0xx_hal.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. /**
  2. ******************************************************************************
  3. * @file stm32l0xx_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. * Copyright (c) 2016 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __STM32L0xx_HAL_H
  21. #define __STM32L0xx_HAL_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32l0xx_hal_conf.h"
  27. /** @addtogroup STM32L0xx_HAL_Driver
  28. * @{
  29. */
  30. /** @defgroup HAL HAL
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported constants --------------------------------------------------------*/
  35. /** @defgroup HAL_Exported_Constants HAL Exported Constants
  36. * @{
  37. */
  38. /** @defgroup HAL_TICK_FREQ Tick Frequency
  39. * @{
  40. */
  41. typedef enum
  42. {
  43. HAL_TICK_FREQ_10HZ = 100U,
  44. HAL_TICK_FREQ_100HZ = 10U,
  45. HAL_TICK_FREQ_1KHZ = 1U,
  46. HAL_TICK_FREQ_DEFAULT = HAL_TICK_FREQ_1KHZ
  47. } HAL_TickFreqTypeDef;
  48. /**
  49. * @}
  50. */
  51. /** @defgroup SYSCFG_BootMode Boot Mode
  52. * @{
  53. */
  54. #define SYSCFG_BOOT_MAINFLASH (0x00000000U)
  55. #define SYSCFG_BOOT_SYSTEMFLASH SYSCFG_CFGR1_BOOT_MODE_0
  56. #define SYSCFG_BOOT_SRAM SYSCFG_CFGR1_BOOT_MODE
  57. /**
  58. * @}
  59. */
  60. /** @defgroup DBGMCU_Low_Power_Config DBGMCU Low Power Configuration
  61. * @{
  62. */
  63. #define DBGMCU_SLEEP DBGMCU_CR_DBG_SLEEP
  64. #define DBGMCU_STOP DBGMCU_CR_DBG_STOP
  65. #define DBGMCU_STANDBY DBGMCU_CR_DBG_STANDBY
  66. #define IS_DBGMCU_PERIPH(__PERIPH__) ((((__PERIPH__) & (~(DBGMCU_CR_DBG))) == 0x00U) && ((__PERIPH__) != 0x00U))
  67. /**
  68. * @}
  69. */
  70. #if defined (LCD_BASE) /* STM32L0x3xx only */
  71. /** @defgroup SYSCFG_LCD_EXT_CAPA SYSCFG LCD External Capacitors
  72. * @{
  73. */
  74. #define SYSCFG_LCD_EXT_CAPA SYSCFG_CFGR2_CAPA /*!< Connection of internal Vlcd rail to external capacitors */
  75. #define SYSCFG_VLCD_PB2_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_0 /*!< Connection on PB2 */
  76. #define SYSCFG_VLCD_PB12_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_1 /*!< Connection on PB12 */
  77. #define SYSCFG_VLCD_PB0_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_2 /*!< Connection on PB0 */
  78. #if defined (SYSCFG_CFGR2_CAPA_3)
  79. #define SYSCFG_VLCD_PE11_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_3 /*!< Connection on PE11 */
  80. #endif
  81. #if defined (SYSCFG_CFGR2_CAPA_4)
  82. #define SYSCFG_VLCD_PE12_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_4 /*!< Connection on PE12 */
  83. #endif
  84. /**
  85. * @}
  86. */
  87. #endif
  88. /** @defgroup SYSCFG_VREFINT_OUT_SELECT SYSCFG VREFINT Out Selection
  89. * @{
  90. */
  91. #define SYSCFG_VREFINT_OUT_NONE (0x00000000U) /* no pad connected */
  92. #define SYSCFG_VREFINT_OUT_PB0 SYSCFG_CFGR3_VREF_OUT_0 /* Selects PBO as output for the Vrefint */
  93. #define SYSCFG_VREFINT_OUT_PB1 SYSCFG_CFGR3_VREF_OUT_1 /* Selects PB1 as output for the Vrefint */
  94. #define SYSCFG_VREFINT_OUT_PB0_PB1 SYSCFG_CFGR3_VREF_OUT /* Selects PBO and PB1 as output for the Vrefint */
  95. #define IS_SYSCFG_VREFINT_OUT_SELECT(OUTPUT) (((OUTPUT) == SYSCFG_VREFINT_OUT_NONE) || \
  96. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB0) || \
  97. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB1) || \
  98. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB0_PB1))
  99. /**
  100. * @}
  101. */
  102. /** @defgroup SYSCFG_flags_definition SYSCFG Flags Definition
  103. * @{
  104. */
  105. #define SYSCFG_FLAG_VREFINT_READY SYSCFG_CFGR3_VREFINT_RDYF
  106. #define IS_SYSCFG_FLAG(FLAG) ((FLAG) == SYSCFG_FLAG_VREFINT_READY))
  107. /**
  108. * @}
  109. */
  110. /** @defgroup SYSCFG_FastModePlus_GPIO Fast Mode Plus on GPIO
  111. * @{
  112. */
  113. /** @brief Fast mode Plus driving capability on a specific GPIO
  114. */
  115. #if defined (SYSCFG_CFGR2_I2C_PB6_FMP)
  116. #define SYSCFG_FASTMODEPLUS_PB6 SYSCFG_CFGR2_I2C_PB6_FMP /* Enable Fast Mode Plus on PB6 */
  117. #endif
  118. #if defined (SYSCFG_CFGR2_I2C_PB7_FMP)
  119. #define SYSCFG_FASTMODEPLUS_PB7 SYSCFG_CFGR2_I2C_PB7_FMP /* Enable Fast Mode Plus on PB7 */
  120. #endif
  121. #if defined (SYSCFG_CFGR2_I2C_PB8_FMP)
  122. #define SYSCFG_FASTMODEPLUS_PB8 SYSCFG_CFGR2_I2C_PB8_FMP /* Enable Fast Mode Plus on PB8 */
  123. #endif
  124. #if defined (SYSCFG_CFGR2_I2C_PB9_FMP)
  125. #define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_CFGR2_I2C_PB9_FMP /* Enable Fast Mode Plus on PB9 */
  126. #endif
  127. #define IS_SYSCFG_FASTMODEPLUS(PIN) ((((PIN) & (SYSCFG_FASTMODEPLUS_PB6)) == SYSCFG_FASTMODEPLUS_PB6) || \
  128. (((PIN) & (SYSCFG_FASTMODEPLUS_PB7)) == SYSCFG_FASTMODEPLUS_PB7) || \
  129. (((PIN) & (SYSCFG_FASTMODEPLUS_PB8)) == SYSCFG_FASTMODEPLUS_PB8) || \
  130. (((PIN) & (SYSCFG_FASTMODEPLUS_PB9)) == SYSCFG_FASTMODEPLUS_PB9) )
  131. /**
  132. * @}
  133. */
  134. /**
  135. * @}
  136. */
  137. /* Exported macros -----------------------------------------------------------*/
  138. /** @defgroup HAL_Exported_Macros HAL Exported Macros
  139. * @{
  140. */
  141. /** @brief Freeze/Unfreeze Peripherals in Debug mode
  142. */
  143. #if defined (DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  144. /**
  145. * @brief TIM2 Peripherals Debug mode
  146. */
  147. #define __HAL_DBGMCU_FREEZE_TIM2() SET_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  148. #define __HAL_DBGMCU_UNFREEZE_TIM2() CLEAR_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  149. #endif
  150. #if defined (DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  151. /**
  152. * @brief TIM3 Peripherals Debug mode
  153. */
  154. #define __HAL_DBGMCU_FREEZE_TIM3() SET_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  155. #define __HAL_DBGMCU_UNFREEZE_TIM3() CLEAR_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  156. #endif
  157. #if defined (DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  158. /**
  159. * @brief TIM6 Peripherals Debug mode
  160. */
  161. #define __HAL_DBGMCU_FREEZE_TIM6() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  162. #define __HAL_DBGMCU_UNFREEZE_TIM6() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  163. #endif
  164. #if defined (DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  165. /**
  166. * @brief TIM7 Peripherals Debug mode
  167. */
  168. #define __HAL_DBGMCU_FREEZE_TIM7() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  169. #define __HAL_DBGMCU_UNFREEZE_TIM7() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  170. #endif
  171. #if defined (DBGMCU_APB1_FZ_DBG_RTC_STOP)
  172. /**
  173. * @brief RTC Peripherals Debug mode
  174. */
  175. #define __HAL_DBGMCU_FREEZE_RTC() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
  176. #define __HAL_DBGMCU_UNFREEZE_RTC() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
  177. #endif
  178. #if defined (DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  179. /**
  180. * @brief WWDG Peripherals Debug mode
  181. */
  182. #define __HAL_DBGMCU_FREEZE_WWDG() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  183. #define __HAL_DBGMCU_UNFREEZE_WWDG() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  184. #endif
  185. #if defined (DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  186. /**
  187. * @brief IWDG Peripherals Debug mode
  188. */
  189. #define __HAL_DBGMCU_FREEZE_IWDG() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  190. #define __HAL_DBGMCU_UNFREEZE_IWDG() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  191. #endif
  192. #if defined (DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  193. /**
  194. * @brief I2C1 Peripherals Debug mode
  195. */
  196. #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  197. #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  198. #endif
  199. #if defined (DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  200. /**
  201. * @brief I2C2 Peripherals Debug mode
  202. */
  203. #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  204. #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  205. #endif
  206. #if defined (DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  207. /**
  208. * @brief I2C3 Peripherals Debug mode
  209. */
  210. #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  211. #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  212. #endif
  213. #if defined (DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  214. /**
  215. * @brief LPTIMER Peripherals Debug mode
  216. */
  217. #define __HAL_DBGMCU_FREEZE_LPTIMER() SET_BIT(DBGMCU->APB1FZ ,DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  218. #define __HAL_DBGMCU_UNFREEZE_LPTIMER() CLEAR_BIT(DBGMCU->APB1FZ ,DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  219. #endif
  220. #if defined (DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  221. /**
  222. * @brief TIM22 Peripherals Debug mode
  223. */
  224. #define __HAL_DBGMCU_FREEZE_TIM22() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  225. #define __HAL_DBGMCU_UNFREEZE_TIM22() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  226. #endif
  227. #if defined (DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  228. /**
  229. * @brief TIM21 Peripherals Debug mode
  230. */
  231. #define __HAL_DBGMCU_FREEZE_TIM21() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  232. #define __HAL_DBGMCU_UNFREEZE_TIM21() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  233. #endif
  234. /** @brief Main Flash memory mapped at 0x00000000
  235. */
  236. #define __HAL_SYSCFG_REMAPMEMORY_FLASH() CLEAR_BIT(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE)
  237. /** @brief System Flash memory mapped at 0x00000000
  238. */
  239. #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() MODIFY_REG(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE, SYSCFG_CFGR1_MEM_MODE_0)
  240. /** @brief Embedded SRAM mapped at 0x00000000
  241. */
  242. #define __HAL_SYSCFG_REMAPMEMORY_SRAM() MODIFY_REG(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE, SYSCFG_CFGR1_MEM_MODE_0 | SYSCFG_CFGR1_MEM_MODE_1)
  243. /** @brief Configuration of the DBG Low Power mode.
  244. * @param __DBGLPMODE__ bit field to indicate in which Low Power mode DBG is still active.
  245. * This parameter can be a value of
  246. * - DBGMCU_SLEEP
  247. * - DBGMCU_STOP
  248. * - DBGMCU_STANDBY
  249. */
  250. #define __HAL_SYSCFG_DBG_LP_CONFIG(__DBGLPMODE__) do {assert_param(IS_DBGMCU_PERIPH(__DBGLPMODE__)); \
  251. MODIFY_REG(DBGMCU->CR, DBGMCU_CR_DBG, (__DBGLPMODE__)); \
  252. } while (0)
  253. #if defined (LCD_BASE) /* STM32L0x3xx only */
  254. /** @brief Macro to configure the VLCD Decoupling capacitance connection.
  255. *
  256. * @param __SYSCFG_VLCD_CAPA__ specifies the decoupling of LCD capacitance for rails connection on GPIO.
  257. * This parameter can be a combination of following values (when available):
  258. * @arg SYSCFG_VLCD_PB2_EXT_CAPA_ON: Connection on PB2
  259. * @arg SYSCFG_VLCD_PB12_EXT_CAPA_ON: Connection on PB12
  260. * @arg SYSCFG_VLCD_PB0_EXT_CAPA_ON: Connection on PB0
  261. * @arg SYSCFG_VLCD_PE11_EXT_CAPA_ON: Connection on PE11
  262. * @arg SYSCFG_VLCD_PE12_EXT_CAPA_ON: Connection on PE12
  263. * @retval None
  264. */
  265. #define __HAL_SYSCFG_VLCD_CAPA_CONFIG(__SYSCFG_VLCD_CAPA__) \
  266. MODIFY_REG(SYSCFG->CFGR2, SYSCFG_LCD_EXT_CAPA, (uint32_t)(__SYSCFG_VLCD_CAPA__))
  267. /**
  268. * @brief Returns the decoupling of LCD capacitance configured by user.
  269. * @retval The LCD capacitance connection as configured by user. The returned can be a combination of :
  270. * SYSCFG_VLCD_PB2_EXT_CAPA_ON: Connection on PB2
  271. * SYSCFG_VLCD_PB12_EXT_CAPA_ON: Connection on PB12
  272. * SYSCFG_VLCD_PB0_EXT_CAPA_ON: Connection on PB0
  273. * SYSCFG_VLCD_PE11_EXT_CAPA_ON: Connection on PE11
  274. * SYSCFG_VLCD_PE12_EXT_CAPA_ON: Connection on PE12
  275. */
  276. #define __HAL_SYSCFG_GET_VLCD_CAPA_CONFIG() READ_BIT(SYSCFG->CFGR2, SYSCFG_LCD_EXT_CAPA)
  277. #endif
  278. /**
  279. * @brief Returns the boot mode as configured by user.
  280. * @retval The boot mode as configured by user. The returned can be a value of :
  281. * - SYSCFG_BOOT_MAINFLASH
  282. * - SYSCFG_BOOT_SYSTEMFLASH
  283. * - SYSCFG_BOOT_SRAM
  284. */
  285. #define __HAL_SYSCFG_GET_BOOT_MODE() READ_BIT(SYSCFG->CFGR1, SYSCFG_CFGR1_BOOT_MODE)
  286. /** @brief Check whether the specified SYSCFG flag is set or not.
  287. * @param __FLAG__ specifies the flag to check.
  288. * The only parameter supported is SYSCFG_FLAG_VREFINT_READY
  289. * @retval The new state of __FLAG__ (TRUE or FALSE).
  290. */
  291. #define __HAL_SYSCFG_GET_FLAG(__FLAG__) (((SYSCFG->CFGR3) & (__FLAG__)) == (__FLAG__))
  292. /** @brief Fast mode Plus driving capability enable macro
  293. * @param __FASTMODEPLUS__ This parameter can be a value of :
  294. * @arg SYSCFG_FASTMODEPLUS_PB6
  295. * @arg SYSCFG_FASTMODEPLUS_PB7
  296. * @arg SYSCFG_FASTMODEPLUS_PB8
  297. * @arg SYSCFG_FASTMODEPLUS_PB9
  298. */
  299. #define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
  300. SET_BIT(SYSCFG->CFGR2, (__FASTMODEPLUS__)); \
  301. }while(0)
  302. /** @brief Fast mode Plus driving capability disable macro
  303. * @param __FASTMODEPLUS__ This parameter can be a value of :
  304. * @arg SYSCFG_FASTMODEPLUS_PB6
  305. * @arg SYSCFG_FASTMODEPLUS_PB7
  306. * @arg SYSCFG_FASTMODEPLUS_PB8
  307. * @arg SYSCFG_FASTMODEPLUS_PB9
  308. */
  309. #define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
  310. CLEAR_BIT(SYSCFG->CFGR2, (__FASTMODEPLUS__)); \
  311. }while(0)
  312. /**
  313. * @}
  314. */
  315. /** @defgroup HAL_Private_Macros HAL Private Macros
  316. * @{
  317. */
  318. #define IS_TICKFREQ(FREQ) (((FREQ) == HAL_TICK_FREQ_10HZ) || \
  319. ((FREQ) == HAL_TICK_FREQ_100HZ) || \
  320. ((FREQ) == HAL_TICK_FREQ_1KHZ))
  321. /**
  322. * @}
  323. */
  324. /* Exported variables --------------------------------------------------------*/
  325. /** @defgroup HAL_Exported_Variables HAL Exported Variables
  326. * @{
  327. */
  328. extern __IO uint32_t uwTick;
  329. extern uint32_t uwTickPrio;
  330. extern HAL_TickFreqTypeDef uwTickFreq;
  331. /**
  332. * @}
  333. */
  334. /* Exported functions --------------------------------------------------------*/
  335. /** @defgroup HAL_Exported_Functions HAL Exported Functions
  336. * @{
  337. */
  338. /** @defgroup HAL_Exported_Functions_Group1 Initialization and de-initialization functions
  339. * @brief Initialization and de-initialization functions
  340. * @{
  341. */
  342. HAL_StatusTypeDef HAL_Init(void);
  343. HAL_StatusTypeDef HAL_DeInit(void);
  344. void HAL_MspInit(void);
  345. void HAL_MspDeInit(void);
  346. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
  347. /**
  348. * @}
  349. */
  350. /** @defgroup HAL_Exported_Functions_Group2 Peripheral Control functions
  351. * @brief Peripheral Control functions
  352. * @{
  353. */
  354. void HAL_IncTick(void);
  355. void HAL_Delay(uint32_t Delay);
  356. uint32_t HAL_GetTick(void);
  357. uint32_t HAL_GetTickPrio(void);
  358. HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq);
  359. HAL_TickFreqTypeDef HAL_GetTickFreq(void);
  360. void HAL_SuspendTick(void);
  361. void HAL_ResumeTick(void);
  362. uint32_t HAL_GetHalVersion(void);
  363. uint32_t HAL_GetREVID(void);
  364. uint32_t HAL_GetDEVID(void);
  365. uint32_t HAL_GetUIDw0(void);
  366. uint32_t HAL_GetUIDw1(void);
  367. uint32_t HAL_GetUIDw2(void);
  368. /**
  369. * @}
  370. */
  371. /** @defgroup HAL_Exported_Functions_Group3 DBGMCU Peripheral Control functions
  372. * @brief DBGMCU Peripheral Control functions
  373. * @{
  374. */
  375. void HAL_DBGMCU_EnableDBGSleepMode(void);
  376. void HAL_DBGMCU_DisableDBGSleepMode(void);
  377. void HAL_DBGMCU_EnableDBGStopMode(void);
  378. void HAL_DBGMCU_DisableDBGStopMode(void);
  379. void HAL_DBGMCU_EnableDBGStandbyMode(void);
  380. void HAL_DBGMCU_DisableDBGStandbyMode(void);
  381. void HAL_DBGMCU_DBG_EnableLowPowerConfig(uint32_t Periph);
  382. void HAL_DBGMCU_DBG_DisableLowPowerConfig(uint32_t Periph);
  383. /**
  384. * @}
  385. */
  386. /** @defgroup HAL_Exported_Functions_Group4 SYSCFG Peripheral Control functions
  387. * @brief SYSCFG Peripheral Control functions
  388. * @{
  389. */
  390. uint32_t HAL_SYSCFG_GetBootMode(void);
  391. void HAL_SYSCFG_Enable_Lock_VREFINT(void);
  392. void HAL_SYSCFG_Disable_Lock_VREFINT(void);
  393. void HAL_SYSCFG_VREFINT_OutputSelect(uint32_t SYSCFG_Vrefint_OUTPUT);
  394. /**
  395. * @}
  396. */
  397. /**
  398. * @}
  399. */
  400. /* Define the private group ***********************************/
  401. /**************************************************************/
  402. /** @defgroup HAL_Private HAL Private
  403. * @{
  404. */
  405. /**
  406. * @}
  407. */
  408. /**************************************************************/
  409. /**
  410. * @}
  411. */
  412. /**
  413. * @}
  414. */
  415. #ifdef __cplusplus
  416. }
  417. #endif
  418. #endif /* __STM32L0xx_HAL_H */