stm32l0xx_hal.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. /**
  2. ******************************************************************************
  3. * @file stm32l0xx_hal.h
  4. * @author MCD Application Team
  5. * @version V1.7.0
  6. * @date 31-May-2016
  7. * @brief This file contains all the functions prototypes for the HAL
  8. * module driver.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
  13. *
  14. * Redistribution and use in source and binary forms, with or without modification,
  15. * are permitted provided that the following conditions are met:
  16. * 1. Redistributions of source code must retain the above copyright notice,
  17. * this list of conditions and the following disclaimer.
  18. * 2. Redistributions in binary form must reproduce the above copyright notice,
  19. * this list of conditions and the following disclaimer in the documentation
  20. * and/or other materials provided with the distribution.
  21. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  22. * may be used to endorse or promote products derived from this software
  23. * without specific prior written permission.
  24. *
  25. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  26. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  28. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  29. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  31. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  32. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  33. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. *
  36. ******************************************************************************
  37. */
  38. /* Define to prevent recursive inclusion -------------------------------------*/
  39. #ifndef __STM32L0xx_HAL_H
  40. #define __STM32L0xx_HAL_H
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. /* Includes ------------------------------------------------------------------*/
  45. #include "stm32l0xx_hal_conf.h"
  46. /** @addtogroup STM32L0xx_HAL_Driver
  47. * @{
  48. */
  49. /** @defgroup HAL HAL
  50. * @{
  51. */
  52. /** @defgroup HAL_Exported_Constants HAL Exported Constants
  53. * @{
  54. */
  55. /** @defgroup SYSCFG_BootMode Boot Mode
  56. * @{
  57. */
  58. #define SYSCFG_BOOT_MAINFLASH ((uint32_t)0x00000000U)
  59. #define SYSCFG_BOOT_SYSTEMFLASH ((uint32_t)SYSCFG_CFGR1_BOOT_MODE_0)
  60. #define SYSCFG_BOOT_SRAM ((uint32_t)SYSCFG_CFGR1_BOOT_MODE)
  61. /**
  62. * @}
  63. */
  64. /** @defgroup DBGMCU_Low_Power_Config DBGMCU Low Power Configuration
  65. * @{
  66. */
  67. #define DBGMCU_SLEEP DBGMCU_CR_DBG_SLEEP
  68. #define DBGMCU_STOP DBGMCU_CR_DBG_STOP
  69. #define DBGMCU_STANDBY DBGMCU_CR_DBG_STANDBY
  70. #define IS_DBGMCU_PERIPH(__PERIPH__) ((((__PERIPH__) & (~(DBGMCU_CR_DBG))) == 0x00U) && ((__PERIPH__) != 0x00U))
  71. /**
  72. * @}
  73. */
  74. #if defined (LCD_BASE) /* STM32L0x3xx only */
  75. /** @defgroup SYSCFG_LCD_EXT_CAPA SYSCFG LCD External Capacitors
  76. * @{
  77. */
  78. #define SYSCFG_LCD_EXT_CAPA SYSCFG_CFGR2_CAPA /*!< Connection of internal Vlcd rail to external capacitors */
  79. #define SYSCFG_VLCD_PB2_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_0 /*!< Connection on PB2 */
  80. #define SYSCFG_VLCD_PB12_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_1 /*!< Connection on PB12 */
  81. #define SYSCFG_VLCD_PB0_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_2 /*!< Connection on PB0 */
  82. #if defined (SYSCFG_CFGR2_CAPA_3)
  83. #define SYSCFG_VLCD_PE11_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_3 /*!< Connection on PE11 */
  84. #endif
  85. #if defined (SYSCFG_CFGR2_CAPA_4)
  86. #define SYSCFG_VLCD_PE12_EXT_CAPA_ON SYSCFG_CFGR2_CAPA_4 /*!< Connection on PE12 */
  87. #endif
  88. /**
  89. * @}
  90. */
  91. #endif
  92. /** @defgroup SYSCFG_VREFINT_OUT_SELECT SYSCFG VREFINT Out Selection
  93. * @{
  94. */
  95. #define SYSCFG_VREFINT_OUT_NONE ((uint32_t)0x00000000U) /* no pad connected */
  96. #define SYSCFG_VREFINT_OUT_PB0 SYSCFG_CFGR3_VREF_OUT_0 /* Selects PBO as output for the Vrefint */
  97. #define SYSCFG_VREFINT_OUT_PB1 SYSCFG_CFGR3_VREF_OUT_1 /* Selects PB1 as output for the Vrefint */
  98. #define SYSCFG_VREFINT_OUT_PB0_PB1 SYSCFG_CFGR3_VREF_OUT /* Selects PBO and PB1 as output for the Vrefint */
  99. #define IS_SYSCFG_VREFINT_OUT_SELECT(OUTPUT) (((OUTPUT) == SYSCFG_VREFINT_OUT_NONE) || \
  100. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB0) || \
  101. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB1) || \
  102. ((OUTPUT) == SYSCFG_VREFINT_OUT_PB0_PB1))
  103. /**
  104. * @}
  105. */
  106. /** @defgroup SYSCFG_flags_definition SYSCFG Flags Definition
  107. * @{
  108. */
  109. #define SYSCFG_FLAG_VREFINT_READY SYSCFG_CFGR3_VREFINT_RDYF
  110. #define IS_SYSCFG_FLAG(FLAG) ((FLAG) == SYSCFG_FLAG_VREFINT_READY))
  111. /**
  112. * @}
  113. */
  114. /** @defgroup SYSCFG_FastModePlus_GPIO Fast Mode Plus on GPIO
  115. * @{
  116. */
  117. /** @brief Fast mode Plus driving capability on a specific GPIO
  118. */
  119. #if defined (SYSCFG_CFGR2_I2C_PB6_FMP)
  120. #define SYSCFG_FASTMODEPLUS_PB6 SYSCFG_CFGR2_I2C_PB6_FMP /* Enable Fast Mode Plus on PB6 */
  121. #endif
  122. #if defined (SYSCFG_CFGR2_I2C_PB7_FMP)
  123. #define SYSCFG_FASTMODEPLUS_PB7 SYSCFG_CFGR2_I2C_PB7_FMP /* Enable Fast Mode Plus on PB7 */
  124. #endif
  125. #if defined (SYSCFG_CFGR2_I2C_PB8_FMP)
  126. #define SYSCFG_FASTMODEPLUS_PB8 SYSCFG_CFGR2_I2C_PB8_FMP /* Enable Fast Mode Plus on PB8 */
  127. #endif
  128. #if defined (SYSCFG_CFGR2_I2C_PB9_FMP)
  129. #define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_CFGR2_I2C_PB9_FMP /* Enable Fast Mode Plus on PB9 */
  130. #endif
  131. #define IS_SYSCFG_FASTMODEPLUS(PIN) ((((PIN) & (SYSCFG_FASTMODEPLUS_PB6)) == SYSCFG_FASTMODEPLUS_PB6) || \
  132. (((PIN) & (SYSCFG_FASTMODEPLUS_PB7)) == SYSCFG_FASTMODEPLUS_PB7) || \
  133. (((PIN) & (SYSCFG_FASTMODEPLUS_PB8)) == SYSCFG_FASTMODEPLUS_PB8) || \
  134. (((PIN) & (SYSCFG_FASTMODEPLUS_PB9)) == SYSCFG_FASTMODEPLUS_PB9) )
  135. /**
  136. * @}
  137. */
  138. /**
  139. * @}
  140. */
  141. /** @defgroup HAL_Exported_Macros HAL Exported Macros
  142. * @{
  143. */
  144. /** @brief Freeze/Unfreeze Peripherals in Debug mode
  145. */
  146. #if defined (DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  147. /**
  148. * @brief TIM2 Peripherals Debug mode
  149. */
  150. #define __HAL_DBGMCU_FREEZE_TIM2() SET_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  151. #define __HAL_DBGMCU_UNFREEZE_TIM2() CLEAR_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM2_STOP)
  152. #endif
  153. #if defined (DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  154. /**
  155. * @brief TIM3 Peripherals Debug mode
  156. */
  157. #define __HAL_DBGMCU_FREEZE_TIM3() SET_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  158. #define __HAL_DBGMCU_UNFREEZE_TIM3() CLEAR_BIT(DBGMCU->APB1FZ,DBGMCU_APB1_FZ_DBG_TIM3_STOP)
  159. #endif
  160. #if defined (DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  161. /**
  162. * @brief TIM6 Peripherals Debug mode
  163. */
  164. #define __HAL_DBGMCU_FREEZE_TIM6() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  165. #define __HAL_DBGMCU_UNFREEZE_TIM6() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
  166. #endif
  167. #if defined (DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  168. /**
  169. * @brief TIM7 Peripherals Debug mode
  170. */
  171. #define __HAL_DBGMCU_FREEZE_TIM7() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  172. #define __HAL_DBGMCU_UNFREEZE_TIM7() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
  173. #endif
  174. #if defined (DBGMCU_APB1_FZ_DBG_RTC_STOP)
  175. /**
  176. * @brief RTC Peripherals Debug mode
  177. */
  178. #define __HAL_DBGMCU_FREEZE_RTC() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
  179. #define __HAL_DBGMCU_UNFREEZE_RTC() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
  180. #endif
  181. #if defined (DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  182. /**
  183. * @brief WWDG Peripherals Debug mode
  184. */
  185. #define __HAL_DBGMCU_FREEZE_WWDG() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  186. #define __HAL_DBGMCU_UNFREEZE_WWDG() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
  187. #endif
  188. #if defined (DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  189. /**
  190. * @brief IWDG Peripherals Debug mode
  191. */
  192. #define __HAL_DBGMCU_FREEZE_IWDG() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  193. #define __HAL_DBGMCU_UNFREEZE_IWDG() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
  194. #endif
  195. #if defined (DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  196. /**
  197. * @brief I2C1 Peripherals Debug mode
  198. */
  199. #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  200. #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_STOP)
  201. #endif
  202. #if defined (DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  203. /**
  204. * @brief I2C2 Peripherals Debug mode
  205. */
  206. #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  207. #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_STOP)
  208. #endif
  209. #if defined (DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  210. /**
  211. * @brief I2C3 Peripherals Debug mode
  212. */
  213. #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  214. #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C3_STOP)
  215. #endif
  216. #if defined (DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  217. /**
  218. * @brief LPTIMER Peripherals Debug mode
  219. */
  220. #define __HAL_DBGMCU_FREEZE_LPTIMER() SET_BIT(DBGMCU->APB1FZ ,DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  221. #define __HAL_DBGMCU_UNFREEZE_LPTIMER() CLEAR_BIT(DBGMCU->APB1FZ ,DBGMCU_APB1_FZ_DBG_LPTIMER_STOP)
  222. #endif
  223. #if defined (DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  224. /**
  225. * @brief TIM22 Peripherals Debug mode
  226. */
  227. #define __HAL_DBGMCU_FREEZE_TIM22() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  228. #define __HAL_DBGMCU_UNFREEZE_TIM22() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM22_STOP)
  229. #endif
  230. #if defined (DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  231. /**
  232. * @brief TIM21 Peripherals Debug mode
  233. */
  234. #define __HAL_DBGMCU_FREEZE_TIM21() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  235. #define __HAL_DBGMCU_UNFREEZE_TIM21() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM21_STOP)
  236. #endif
  237. /** @brief Main Flash memory mapped at 0x00000000
  238. */
  239. #define __HAL_SYSCFG_REMAPMEMORY_FLASH() CLEAR_BIT(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE)
  240. /** @brief System Flash memory mapped at 0x00000000
  241. */
  242. #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() MODIFY_REG(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE, SYSCFG_CFGR1_MEM_MODE_0)
  243. /** @brief Embedded SRAM mapped at 0x00000000
  244. */
  245. #define __HAL_SYSCFG_REMAPMEMORY_SRAM() MODIFY_REG(SYSCFG->CFGR1, SYSCFG_CFGR1_MEM_MODE, SYSCFG_CFGR1_MEM_MODE_0 | SYSCFG_CFGR1_MEM_MODE_1)
  246. /** @brief Configuration of the DBG Low Power mode.
  247. * @param __DBGLPMODE__: bit field to indicate in wich Low Power mode DBG is still active.
  248. * This parameter can be a value of
  249. * - DBGMCU_SLEEP
  250. * - DBGMCU_STOP
  251. * - DBGMCU_STANDBY
  252. */
  253. #define __HAL_SYSCFG_DBG_LP_CONFIG(__DBGLPMODE__) do {assert_param(IS_DBGMCU_PERIPH(__DBGLPMODE__)); \
  254. MODIFY_REG(DBGMCU->CR, DBGMCU_CR_DBG, (__DBGLPMODE__)); \
  255. } while (0)
  256. #if defined (LCD_BASE) /* STM32L0x3xx only */
  257. /** @brief Macro to configure the VLCD Decoupling capacitance connection.
  258. *
  259. * @param __SYSCFG_VLCD_CAPA__: specifies the decoupling of LCD capacitance for rails connection on GPIO.
  260. * This parameter can be a combination of following values (when available):
  261. * @arg SYSCFG_VLCD_PB2_EXT_CAPA_ON: Connection on PB2
  262. * @arg SYSCFG_VLCD_PB12_EXT_CAPA_ON: Connection on PB12
  263. * @arg SYSCFG_VLCD_PB0_EXT_CAPA_ON: Connection on PB0
  264. * @arg SYSCFG_VLCD_PE11_EXT_CAPA_ON: Connection on PE11
  265. * @arg SYSCFG_VLCD_PE12_EXT_CAPA_ON: Connection on PE12
  266. * @retval None
  267. */
  268. #define __HAL_SYSCFG_VLCD_CAPA_CONFIG(__SYSCFG_VLCD_CAPA__) \
  269. MODIFY_REG(SYSCFG->CFGR2, SYSCFG_LCD_EXT_CAPA, (uint32_t)(__SYSCFG_VLCD_CAPA__))
  270. /**
  271. * @brief Returns the decoupling of LCD capacitance configured by user.
  272. * @retval The LCD capacitance connection as configured by user. The returned can be a combination of :
  273. * SYSCFG_VLCD_PB2_EXT_CAPA_ON: Connection on PB2
  274. * SYSCFG_VLCD_PB12_EXT_CAPA_ON: Connection on PB12
  275. * SYSCFG_VLCD_PB0_EXT_CAPA_ON: Connection on PB0
  276. * SYSCFG_VLCD_PE11_EXT_CAPA_ON: Connection on PE11
  277. * SYSCFG_VLCD_PE12_EXT_CAPA_ON: Connection on PE12
  278. */
  279. #define __HAL_SYSCFG_GET_VLCD_CAPA_CONFIG() READ_BIT(SYSCFG->CFGR2, SYSCFG_LCD_EXT_CAPA)
  280. #endif
  281. /**
  282. * @brief Returns the boot mode as configured by user.
  283. * @retval The boot mode as configured by user. The returned can be a value of :
  284. * - SYSCFG_BOOT_MAINFLASH
  285. * - SYSCFG_BOOT_SYSTEMFLASH
  286. * - SYSCFG_BOOT_SRAM
  287. */
  288. #define __HAL_SYSCFG_GET_BOOT_MODE() READ_BIT(SYSCFG->CFGR1, SYSCFG_CFGR1_BOOT_MODE)
  289. /** @brief Check whether the specified SYSCFG flag is set or not.
  290. * @param __FLAG__: specifies the flag to check.
  291. * The only parameter supported is SYSCFG_FLAG_VREFINT_READY
  292. * @retval The new state of __FLAG__ (TRUE or FALSE).
  293. */
  294. #define __HAL_SYSCFG_GET_FLAG(__FLAG__) (((SYSCFG->CFGR3) & (__FLAG__)) == (__FLAG__))
  295. /** @brief Fast mode Plus driving capability enable macro
  296. * @param __FASTMODEPLUS__: This parameter can be a value of :
  297. * @arg SYSCFG_FASTMODEPLUS_PB6
  298. * @arg SYSCFG_FASTMODEPLUS_PB7
  299. * @arg SYSCFG_FASTMODEPLUS_PB8
  300. * @arg SYSCFG_FASTMODEPLUS_PB9
  301. */
  302. #define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
  303. SET_BIT(SYSCFG->CFGR2, __FASTMODEPLUS__); \
  304. }while(0)
  305. /** @brief Fast mode Plus driving capability disable macro
  306. * @param __FASTMODEPLUS__: This parameter can be a value of :
  307. * @arg SYSCFG_FASTMODEPLUS_PB6
  308. * @arg SYSCFG_FASTMODEPLUS_PB7
  309. * @arg SYSCFG_FASTMODEPLUS_PB8
  310. * @arg SYSCFG_FASTMODEPLUS_PB9
  311. */
  312. #define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
  313. CLEAR_BIT(SYSCFG->CFGR2, __FASTMODEPLUS__); \
  314. }while(0)
  315. /**
  316. * @}
  317. */
  318. /** @defgroup HAL_Exported_Functions HAL Exported Functions
  319. * @{
  320. */
  321. /** @defgroup HAL_Exported_Functions_Group1 Initialization and de-initialization functions
  322. * @brief Initialization and de-initialization functions
  323. * @{
  324. */
  325. HAL_StatusTypeDef HAL_Init(void);
  326. HAL_StatusTypeDef HAL_DeInit(void);
  327. void HAL_MspInit(void);
  328. void HAL_MspDeInit(void);
  329. HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
  330. /**
  331. * @}
  332. */
  333. /** @defgroup HAL_Exported_Functions_Group2 Peripheral Control functions
  334. * @brief Peripheral Control functions
  335. * @{
  336. */
  337. void HAL_IncTick(void);
  338. void HAL_Delay(__IO uint32_t Delay);
  339. uint32_t HAL_GetTick(void);
  340. void HAL_SuspendTick(void);
  341. void HAL_ResumeTick(void);
  342. uint32_t HAL_GetHalVersion(void);
  343. uint32_t HAL_GetREVID(void);
  344. uint32_t HAL_GetDEVID(void);
  345. void HAL_DBGMCU_EnableDBGSleepMode(void);
  346. void HAL_DBGMCU_DisableDBGSleepMode(void);
  347. void HAL_DBGMCU_EnableDBGStopMode(void);
  348. void HAL_DBGMCU_DisableDBGStopMode(void);
  349. void HAL_DBGMCU_EnableDBGStandbyMode(void);
  350. void HAL_DBGMCU_DisableDBGStandbyMode(void);
  351. void HAL_DBGMCU_DBG_EnableLowPowerConfig(uint32_t Periph);
  352. void HAL_DBGMCU_DBG_DisableLowPowerConfig(uint32_t Periph);
  353. uint32_t HAL_SYSCFG_GetBootMode(void);
  354. void HAL_SYSCFG_Enable_Lock_VREFINT(void);
  355. void HAL_SYSCFG_Disable_Lock_VREFINT(void);
  356. void HAL_SYSCFG_VREFINT_OutputSelect(uint32_t SYSCFG_Vrefint_OUTPUT);
  357. /**
  358. * @}
  359. */
  360. /**
  361. * @}
  362. */
  363. /* Define the private group ***********************************/
  364. /**************************************************************/
  365. /** @defgroup HAL_Private HAL Private
  366. * @{
  367. */
  368. /**
  369. * @}
  370. */
  371. /**************************************************************/
  372. /**
  373. * @}
  374. */
  375. /**
  376. * @}
  377. */
  378. #ifdef __cplusplus
  379. }
  380. #endif
  381. #endif /* __STM32L0xx_HAL_H */
  382. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/