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.
 
 
 

1033 lines
37 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f0xx_ll_exti.h
  4. * @author MCD Application Team
  5. * @brief Header file of EXTI LL 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_LL_EXTI_H
  37. #define __STM32F0xx_LL_EXTI_H
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. /* Includes ------------------------------------------------------------------*/
  42. #include "stm32f0xx.h"
  43. /** @addtogroup STM32F0xx_LL_Driver
  44. * @{
  45. */
  46. #if defined (EXTI)
  47. /** @defgroup EXTI_LL EXTI
  48. * @{
  49. */
  50. /* Private types -------------------------------------------------------------*/
  51. /* Private variables ---------------------------------------------------------*/
  52. /* Private constants ---------------------------------------------------------*/
  53. /* Private Macros ------------------------------------------------------------*/
  54. #if defined(USE_FULL_LL_DRIVER)
  55. /** @defgroup EXTI_LL_Private_Macros EXTI Private Macros
  56. * @{
  57. */
  58. /**
  59. * @}
  60. */
  61. #endif /*USE_FULL_LL_DRIVER*/
  62. /* Exported types ------------------------------------------------------------*/
  63. #if defined(USE_FULL_LL_DRIVER)
  64. /** @defgroup EXTI_LL_ES_INIT EXTI Exported Init structure
  65. * @{
  66. */
  67. typedef struct
  68. {
  69. uint32_t Line_0_31; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 0 to 31
  70. This parameter can be any combination of @ref EXTI_LL_EC_LINE */
  71. FunctionalState LineCommand; /*!< Specifies the new state of the selected EXTI lines.
  72. This parameter can be set either to ENABLE or DISABLE */
  73. uint8_t Mode; /*!< Specifies the mode for the EXTI lines.
  74. This parameter can be a value of @ref EXTI_LL_EC_MODE. */
  75. uint8_t Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines.
  76. This parameter can be a value of @ref EXTI_LL_EC_TRIGGER. */
  77. } LL_EXTI_InitTypeDef;
  78. /**
  79. * @}
  80. */
  81. #endif /*USE_FULL_LL_DRIVER*/
  82. /* Exported constants --------------------------------------------------------*/
  83. /** @defgroup EXTI_LL_Exported_Constants EXTI Exported Constants
  84. * @{
  85. */
  86. /** @defgroup EXTI_LL_EC_LINE LINE
  87. * @{
  88. */
  89. #define LL_EXTI_LINE_0 EXTI_IMR_IM0 /*!< Extended line 0 */
  90. #define LL_EXTI_LINE_1 EXTI_IMR_IM1 /*!< Extended line 1 */
  91. #define LL_EXTI_LINE_2 EXTI_IMR_IM2 /*!< Extended line 2 */
  92. #define LL_EXTI_LINE_3 EXTI_IMR_IM3 /*!< Extended line 3 */
  93. #define LL_EXTI_LINE_4 EXTI_IMR_IM4 /*!< Extended line 4 */
  94. #define LL_EXTI_LINE_5 EXTI_IMR_IM5 /*!< Extended line 5 */
  95. #define LL_EXTI_LINE_6 EXTI_IMR_IM6 /*!< Extended line 6 */
  96. #define LL_EXTI_LINE_7 EXTI_IMR_IM7 /*!< Extended line 7 */
  97. #define LL_EXTI_LINE_8 EXTI_IMR_IM8 /*!< Extended line 8 */
  98. #define LL_EXTI_LINE_9 EXTI_IMR_IM9 /*!< Extended line 9 */
  99. #define LL_EXTI_LINE_10 EXTI_IMR_IM10 /*!< Extended line 10 */
  100. #define LL_EXTI_LINE_11 EXTI_IMR_IM11 /*!< Extended line 11 */
  101. #define LL_EXTI_LINE_12 EXTI_IMR_IM12 /*!< Extended line 12 */
  102. #define LL_EXTI_LINE_13 EXTI_IMR_IM13 /*!< Extended line 13 */
  103. #define LL_EXTI_LINE_14 EXTI_IMR_IM14 /*!< Extended line 14 */
  104. #define LL_EXTI_LINE_15 EXTI_IMR_IM15 /*!< Extended line 15 */
  105. #if defined(EXTI_IMR_IM16)
  106. #define LL_EXTI_LINE_16 EXTI_IMR_IM16 /*!< Extended line 16 */
  107. #endif
  108. #define LL_EXTI_LINE_17 EXTI_IMR_IM17 /*!< Extended line 17 */
  109. #if defined(EXTI_IMR_IM18)
  110. #define LL_EXTI_LINE_18 EXTI_IMR_IM18 /*!< Extended line 18 */
  111. #endif
  112. #define LL_EXTI_LINE_19 EXTI_IMR_IM19 /*!< Extended line 19 */
  113. #if defined(EXTI_IMR_IM20)
  114. #define LL_EXTI_LINE_20 EXTI_IMR_IM20 /*!< Extended line 20 */
  115. #endif
  116. #if defined(EXTI_IMR_IM21)
  117. #define LL_EXTI_LINE_21 EXTI_IMR_IM21 /*!< Extended line 21 */
  118. #endif
  119. #if defined(EXTI_IMR_IM22)
  120. #define LL_EXTI_LINE_22 EXTI_IMR_IM22 /*!< Extended line 22 */
  121. #endif
  122. #define LL_EXTI_LINE_23 EXTI_IMR_IM23 /*!< Extended line 23 */
  123. #if defined(EXTI_IMR_IM24)
  124. #define LL_EXTI_LINE_24 EXTI_IMR_IM24 /*!< Extended line 24 */
  125. #endif
  126. #if defined(EXTI_IMR_IM25)
  127. #define LL_EXTI_LINE_25 EXTI_IMR_IM25 /*!< Extended line 25 */
  128. #endif
  129. #if defined(EXTI_IMR_IM26)
  130. #define LL_EXTI_LINE_26 EXTI_IMR_IM26 /*!< Extended line 26 */
  131. #endif
  132. #if defined(EXTI_IMR_IM27)
  133. #define LL_EXTI_LINE_27 EXTI_IMR_IM27 /*!< Extended line 27 */
  134. #endif
  135. #if defined(EXTI_IMR_IM28)
  136. #define LL_EXTI_LINE_28 EXTI_IMR_IM28 /*!< Extended line 28 */
  137. #endif
  138. #if defined(EXTI_IMR_IM29)
  139. #define LL_EXTI_LINE_29 EXTI_IMR_IM29 /*!< Extended line 29 */
  140. #endif
  141. #if defined(EXTI_IMR_IM30)
  142. #define LL_EXTI_LINE_30 EXTI_IMR_IM30 /*!< Extended line 30 */
  143. #endif
  144. #if defined(EXTI_IMR_IM31)
  145. #define LL_EXTI_LINE_31 EXTI_IMR_IM31 /*!< Extended line 31 */
  146. #endif
  147. #define LL_EXTI_LINE_ALL_0_31 EXTI_IMR_IM /*!< All Extended line not reserved*/
  148. #define LL_EXTI_LINE_ALL (0xFFFFFFFFU) /*!< All Extended line */
  149. #if defined(USE_FULL_LL_DRIVER)
  150. #define LL_EXTI_LINE_NONE (0x00000000U) /*!< None Extended line */
  151. #endif /*USE_FULL_LL_DRIVER*/
  152. /**
  153. * @}
  154. */
  155. #if defined(USE_FULL_LL_DRIVER)
  156. /** @defgroup EXTI_LL_EC_MODE Mode
  157. * @{
  158. */
  159. #define LL_EXTI_MODE_IT ((uint8_t)0x00U) /*!< Interrupt Mode */
  160. #define LL_EXTI_MODE_EVENT ((uint8_t)0x01U) /*!< Event Mode */
  161. #define LL_EXTI_MODE_IT_EVENT ((uint8_t)0x02U) /*!< Interrupt & Event Mode */
  162. /**
  163. * @}
  164. */
  165. /** @defgroup EXTI_LL_EC_TRIGGER Edge Trigger
  166. * @{
  167. */
  168. #define LL_EXTI_TRIGGER_NONE ((uint8_t)0x00U) /*!< No Trigger Mode */
  169. #define LL_EXTI_TRIGGER_RISING ((uint8_t)0x01U) /*!< Trigger Rising Mode */
  170. #define LL_EXTI_TRIGGER_FALLING ((uint8_t)0x02U) /*!< Trigger Falling Mode */
  171. #define LL_EXTI_TRIGGER_RISING_FALLING ((uint8_t)0x03U) /*!< Trigger Rising & Falling Mode */
  172. /**
  173. * @}
  174. */
  175. #endif /*USE_FULL_LL_DRIVER*/
  176. /**
  177. * @}
  178. */
  179. /* Exported macro ------------------------------------------------------------*/
  180. /** @defgroup EXTI_LL_Exported_Macros EXTI Exported Macros
  181. * @{
  182. */
  183. /** @defgroup EXTI_LL_EM_WRITE_READ Common Write and read registers Macros
  184. * @{
  185. */
  186. /**
  187. * @brief Write a value in EXTI register
  188. * @param __REG__ Register to be written
  189. * @param __VALUE__ Value to be written in the register
  190. * @retval None
  191. */
  192. #define LL_EXTI_WriteReg(__REG__, __VALUE__) WRITE_REG(EXTI->__REG__, (__VALUE__))
  193. /**
  194. * @brief Read a value in EXTI register
  195. * @param __REG__ Register to be read
  196. * @retval Register value
  197. */
  198. #define LL_EXTI_ReadReg(__REG__) READ_REG(EXTI->__REG__)
  199. /**
  200. * @}
  201. */
  202. /**
  203. * @}
  204. */
  205. /* Exported functions --------------------------------------------------------*/
  206. /** @defgroup EXTI_LL_Exported_Functions EXTI Exported Functions
  207. * @{
  208. */
  209. /** @defgroup EXTI_LL_EF_IT_Management IT_Management
  210. * @{
  211. */
  212. /**
  213. * @brief Enable ExtiLine Interrupt request for Lines in range 0 to 31
  214. * @note The reset value for the direct or internal lines (see RM)
  215. * is set to 1 in order to enable the interrupt by default.
  216. * Bits are set automatically at Power on.
  217. * @rmtoll IMR IMx LL_EXTI_EnableIT_0_31
  218. * @param ExtiLine This parameter can be one of the following values:
  219. * @arg @ref LL_EXTI_LINE_0
  220. * @arg @ref LL_EXTI_LINE_1
  221. * @arg @ref LL_EXTI_LINE_2
  222. * @arg @ref LL_EXTI_LINE_3
  223. * @arg @ref LL_EXTI_LINE_4
  224. * @arg @ref LL_EXTI_LINE_5
  225. * @arg @ref LL_EXTI_LINE_6
  226. * @arg @ref LL_EXTI_LINE_7
  227. * @arg @ref LL_EXTI_LINE_8
  228. * @arg @ref LL_EXTI_LINE_9
  229. * @arg @ref LL_EXTI_LINE_10
  230. * @arg @ref LL_EXTI_LINE_11
  231. * @arg @ref LL_EXTI_LINE_12
  232. * @arg @ref LL_EXTI_LINE_13
  233. * @arg @ref LL_EXTI_LINE_14
  234. * @arg @ref LL_EXTI_LINE_15
  235. * @arg @ref LL_EXTI_LINE_16
  236. * @arg @ref LL_EXTI_LINE_17
  237. * @arg @ref LL_EXTI_LINE_18
  238. * @arg @ref LL_EXTI_LINE_19
  239. * @arg @ref LL_EXTI_LINE_20
  240. * @arg @ref LL_EXTI_LINE_21
  241. * @arg @ref LL_EXTI_LINE_22
  242. * @arg @ref LL_EXTI_LINE_23
  243. * @arg @ref LL_EXTI_LINE_24
  244. * @arg @ref LL_EXTI_LINE_25
  245. * @arg @ref LL_EXTI_LINE_26
  246. * @arg @ref LL_EXTI_LINE_27
  247. * @arg @ref LL_EXTI_LINE_28
  248. * @arg @ref LL_EXTI_LINE_29
  249. * @arg @ref LL_EXTI_LINE_30
  250. * @arg @ref LL_EXTI_LINE_31
  251. * @arg @ref LL_EXTI_LINE_ALL_0_31
  252. * @note Please check each device line mapping for EXTI Line availability
  253. * @retval None
  254. */
  255. __STATIC_INLINE void LL_EXTI_EnableIT_0_31(uint32_t ExtiLine)
  256. {
  257. SET_BIT(EXTI->IMR, ExtiLine);
  258. }
  259. /**
  260. * @brief Disable ExtiLine Interrupt request for Lines in range 0 to 31
  261. * @note The reset value for the direct or internal lines (see RM)
  262. * is set to 1 in order to enable the interrupt by default.
  263. * Bits are set automatically at Power on.
  264. * @rmtoll IMR IMx LL_EXTI_DisableIT_0_31
  265. * @param ExtiLine This parameter can be one of the following values:
  266. * @arg @ref LL_EXTI_LINE_0
  267. * @arg @ref LL_EXTI_LINE_1
  268. * @arg @ref LL_EXTI_LINE_2
  269. * @arg @ref LL_EXTI_LINE_3
  270. * @arg @ref LL_EXTI_LINE_4
  271. * @arg @ref LL_EXTI_LINE_5
  272. * @arg @ref LL_EXTI_LINE_6
  273. * @arg @ref LL_EXTI_LINE_7
  274. * @arg @ref LL_EXTI_LINE_8
  275. * @arg @ref LL_EXTI_LINE_9
  276. * @arg @ref LL_EXTI_LINE_10
  277. * @arg @ref LL_EXTI_LINE_11
  278. * @arg @ref LL_EXTI_LINE_12
  279. * @arg @ref LL_EXTI_LINE_13
  280. * @arg @ref LL_EXTI_LINE_14
  281. * @arg @ref LL_EXTI_LINE_15
  282. * @arg @ref LL_EXTI_LINE_16
  283. * @arg @ref LL_EXTI_LINE_17
  284. * @arg @ref LL_EXTI_LINE_18
  285. * @arg @ref LL_EXTI_LINE_19
  286. * @arg @ref LL_EXTI_LINE_20
  287. * @arg @ref LL_EXTI_LINE_21
  288. * @arg @ref LL_EXTI_LINE_22
  289. * @arg @ref LL_EXTI_LINE_23
  290. * @arg @ref LL_EXTI_LINE_24
  291. * @arg @ref LL_EXTI_LINE_25
  292. * @arg @ref LL_EXTI_LINE_26
  293. * @arg @ref LL_EXTI_LINE_27
  294. * @arg @ref LL_EXTI_LINE_28
  295. * @arg @ref LL_EXTI_LINE_29
  296. * @arg @ref LL_EXTI_LINE_30
  297. * @arg @ref LL_EXTI_LINE_31
  298. * @arg @ref LL_EXTI_LINE_ALL_0_31
  299. * @note Please check each device line mapping for EXTI Line availability
  300. * @retval None
  301. */
  302. __STATIC_INLINE void LL_EXTI_DisableIT_0_31(uint32_t ExtiLine)
  303. {
  304. CLEAR_BIT(EXTI->IMR, ExtiLine);
  305. }
  306. /**
  307. * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 0 to 31
  308. * @note The reset value for the direct or internal lines (see RM)
  309. * is set to 1 in order to enable the interrupt by default.
  310. * Bits are set automatically at Power on.
  311. * @rmtoll IMR IMx LL_EXTI_IsEnabledIT_0_31
  312. * @param ExtiLine This parameter can be one of the following values:
  313. * @arg @ref LL_EXTI_LINE_0
  314. * @arg @ref LL_EXTI_LINE_1
  315. * @arg @ref LL_EXTI_LINE_2
  316. * @arg @ref LL_EXTI_LINE_3
  317. * @arg @ref LL_EXTI_LINE_4
  318. * @arg @ref LL_EXTI_LINE_5
  319. * @arg @ref LL_EXTI_LINE_6
  320. * @arg @ref LL_EXTI_LINE_7
  321. * @arg @ref LL_EXTI_LINE_8
  322. * @arg @ref LL_EXTI_LINE_9
  323. * @arg @ref LL_EXTI_LINE_10
  324. * @arg @ref LL_EXTI_LINE_11
  325. * @arg @ref LL_EXTI_LINE_12
  326. * @arg @ref LL_EXTI_LINE_13
  327. * @arg @ref LL_EXTI_LINE_14
  328. * @arg @ref LL_EXTI_LINE_15
  329. * @arg @ref LL_EXTI_LINE_16
  330. * @arg @ref LL_EXTI_LINE_17
  331. * @arg @ref LL_EXTI_LINE_18
  332. * @arg @ref LL_EXTI_LINE_19
  333. * @arg @ref LL_EXTI_LINE_20
  334. * @arg @ref LL_EXTI_LINE_21
  335. * @arg @ref LL_EXTI_LINE_22
  336. * @arg @ref LL_EXTI_LINE_23
  337. * @arg @ref LL_EXTI_LINE_24
  338. * @arg @ref LL_EXTI_LINE_25
  339. * @arg @ref LL_EXTI_LINE_26
  340. * @arg @ref LL_EXTI_LINE_27
  341. * @arg @ref LL_EXTI_LINE_28
  342. * @arg @ref LL_EXTI_LINE_29
  343. * @arg @ref LL_EXTI_LINE_30
  344. * @arg @ref LL_EXTI_LINE_31
  345. * @arg @ref LL_EXTI_LINE_ALL_0_31
  346. * @note Please check each device line mapping for EXTI Line availability
  347. * @retval State of bit (1 or 0).
  348. */
  349. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_0_31(uint32_t ExtiLine)
  350. {
  351. return (READ_BIT(EXTI->IMR, ExtiLine) == (ExtiLine));
  352. }
  353. /**
  354. * @}
  355. */
  356. /** @defgroup EXTI_LL_EF_Event_Management Event_Management
  357. * @{
  358. */
  359. /**
  360. * @brief Enable ExtiLine Event request for Lines in range 0 to 31
  361. * @rmtoll EMR EMx LL_EXTI_EnableEvent_0_31
  362. * @param ExtiLine This parameter can be one of the following values:
  363. * @arg @ref LL_EXTI_LINE_0
  364. * @arg @ref LL_EXTI_LINE_1
  365. * @arg @ref LL_EXTI_LINE_2
  366. * @arg @ref LL_EXTI_LINE_3
  367. * @arg @ref LL_EXTI_LINE_4
  368. * @arg @ref LL_EXTI_LINE_5
  369. * @arg @ref LL_EXTI_LINE_6
  370. * @arg @ref LL_EXTI_LINE_7
  371. * @arg @ref LL_EXTI_LINE_8
  372. * @arg @ref LL_EXTI_LINE_9
  373. * @arg @ref LL_EXTI_LINE_10
  374. * @arg @ref LL_EXTI_LINE_11
  375. * @arg @ref LL_EXTI_LINE_12
  376. * @arg @ref LL_EXTI_LINE_13
  377. * @arg @ref LL_EXTI_LINE_14
  378. * @arg @ref LL_EXTI_LINE_15
  379. * @arg @ref LL_EXTI_LINE_16
  380. * @arg @ref LL_EXTI_LINE_17
  381. * @arg @ref LL_EXTI_LINE_18
  382. * @arg @ref LL_EXTI_LINE_19
  383. * @arg @ref LL_EXTI_LINE_20
  384. * @arg @ref LL_EXTI_LINE_21
  385. * @arg @ref LL_EXTI_LINE_22
  386. * @arg @ref LL_EXTI_LINE_23
  387. * @arg @ref LL_EXTI_LINE_24
  388. * @arg @ref LL_EXTI_LINE_25
  389. * @arg @ref LL_EXTI_LINE_26
  390. * @arg @ref LL_EXTI_LINE_27
  391. * @arg @ref LL_EXTI_LINE_28
  392. * @arg @ref LL_EXTI_LINE_29
  393. * @arg @ref LL_EXTI_LINE_30
  394. * @arg @ref LL_EXTI_LINE_31
  395. * @arg @ref LL_EXTI_LINE_ALL_0_31
  396. * @note Please check each device line mapping for EXTI Line availability
  397. * @retval None
  398. */
  399. __STATIC_INLINE void LL_EXTI_EnableEvent_0_31(uint32_t ExtiLine)
  400. {
  401. SET_BIT(EXTI->EMR, ExtiLine);
  402. }
  403. /**
  404. * @brief Disable ExtiLine Event request for Lines in range 0 to 31
  405. * @rmtoll EMR EMx LL_EXTI_DisableEvent_0_31
  406. * @param ExtiLine This parameter can be one of the following values:
  407. * @arg @ref LL_EXTI_LINE_0
  408. * @arg @ref LL_EXTI_LINE_1
  409. * @arg @ref LL_EXTI_LINE_2
  410. * @arg @ref LL_EXTI_LINE_3
  411. * @arg @ref LL_EXTI_LINE_4
  412. * @arg @ref LL_EXTI_LINE_5
  413. * @arg @ref LL_EXTI_LINE_6
  414. * @arg @ref LL_EXTI_LINE_7
  415. * @arg @ref LL_EXTI_LINE_8
  416. * @arg @ref LL_EXTI_LINE_9
  417. * @arg @ref LL_EXTI_LINE_10
  418. * @arg @ref LL_EXTI_LINE_11
  419. * @arg @ref LL_EXTI_LINE_12
  420. * @arg @ref LL_EXTI_LINE_13
  421. * @arg @ref LL_EXTI_LINE_14
  422. * @arg @ref LL_EXTI_LINE_15
  423. * @arg @ref LL_EXTI_LINE_16
  424. * @arg @ref LL_EXTI_LINE_17
  425. * @arg @ref LL_EXTI_LINE_18
  426. * @arg @ref LL_EXTI_LINE_19
  427. * @arg @ref LL_EXTI_LINE_20
  428. * @arg @ref LL_EXTI_LINE_21
  429. * @arg @ref LL_EXTI_LINE_22
  430. * @arg @ref LL_EXTI_LINE_23
  431. * @arg @ref LL_EXTI_LINE_24
  432. * @arg @ref LL_EXTI_LINE_25
  433. * @arg @ref LL_EXTI_LINE_26
  434. * @arg @ref LL_EXTI_LINE_27
  435. * @arg @ref LL_EXTI_LINE_28
  436. * @arg @ref LL_EXTI_LINE_29
  437. * @arg @ref LL_EXTI_LINE_30
  438. * @arg @ref LL_EXTI_LINE_31
  439. * @arg @ref LL_EXTI_LINE_ALL_0_31
  440. * @note Please check each device line mapping for EXTI Line availability
  441. * @retval None
  442. */
  443. __STATIC_INLINE void LL_EXTI_DisableEvent_0_31(uint32_t ExtiLine)
  444. {
  445. CLEAR_BIT(EXTI->EMR, ExtiLine);
  446. }
  447. /**
  448. * @brief Indicate if ExtiLine Event request is enabled for Lines in range 0 to 31
  449. * @rmtoll EMR EMx LL_EXTI_IsEnabledEvent_0_31
  450. * @param ExtiLine This parameter can be one of the following values:
  451. * @arg @ref LL_EXTI_LINE_0
  452. * @arg @ref LL_EXTI_LINE_1
  453. * @arg @ref LL_EXTI_LINE_2
  454. * @arg @ref LL_EXTI_LINE_3
  455. * @arg @ref LL_EXTI_LINE_4
  456. * @arg @ref LL_EXTI_LINE_5
  457. * @arg @ref LL_EXTI_LINE_6
  458. * @arg @ref LL_EXTI_LINE_7
  459. * @arg @ref LL_EXTI_LINE_8
  460. * @arg @ref LL_EXTI_LINE_9
  461. * @arg @ref LL_EXTI_LINE_10
  462. * @arg @ref LL_EXTI_LINE_11
  463. * @arg @ref LL_EXTI_LINE_12
  464. * @arg @ref LL_EXTI_LINE_13
  465. * @arg @ref LL_EXTI_LINE_14
  466. * @arg @ref LL_EXTI_LINE_15
  467. * @arg @ref LL_EXTI_LINE_16
  468. * @arg @ref LL_EXTI_LINE_17
  469. * @arg @ref LL_EXTI_LINE_18
  470. * @arg @ref LL_EXTI_LINE_19
  471. * @arg @ref LL_EXTI_LINE_20
  472. * @arg @ref LL_EXTI_LINE_21
  473. * @arg @ref LL_EXTI_LINE_22
  474. * @arg @ref LL_EXTI_LINE_23
  475. * @arg @ref LL_EXTI_LINE_24
  476. * @arg @ref LL_EXTI_LINE_25
  477. * @arg @ref LL_EXTI_LINE_26
  478. * @arg @ref LL_EXTI_LINE_27
  479. * @arg @ref LL_EXTI_LINE_28
  480. * @arg @ref LL_EXTI_LINE_29
  481. * @arg @ref LL_EXTI_LINE_30
  482. * @arg @ref LL_EXTI_LINE_31
  483. * @arg @ref LL_EXTI_LINE_ALL_0_31
  484. * @note Please check each device line mapping for EXTI Line availability
  485. * @retval State of bit (1 or 0).
  486. */
  487. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_0_31(uint32_t ExtiLine)
  488. {
  489. return (READ_BIT(EXTI->EMR, ExtiLine) == (ExtiLine));
  490. }
  491. /**
  492. * @}
  493. */
  494. /** @defgroup EXTI_LL_EF_Rising_Trigger_Management Rising_Trigger_Management
  495. * @{
  496. */
  497. /**
  498. * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 0 to 31
  499. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  500. * generated on these lines. If a rising edge on a configurable interrupt
  501. * line occurs during a write operation in the EXTI_RTSR register, the
  502. * pending bit is not set.
  503. * Rising and falling edge triggers can be set for
  504. * the same interrupt line. In this case, both generate a trigger
  505. * condition.
  506. * @rmtoll RTSR RTx LL_EXTI_EnableRisingTrig_0_31
  507. * @param ExtiLine This parameter can be a combination of the following values:
  508. * @arg @ref LL_EXTI_LINE_0
  509. * @arg @ref LL_EXTI_LINE_1
  510. * @arg @ref LL_EXTI_LINE_2
  511. * @arg @ref LL_EXTI_LINE_3
  512. * @arg @ref LL_EXTI_LINE_4
  513. * @arg @ref LL_EXTI_LINE_5
  514. * @arg @ref LL_EXTI_LINE_6
  515. * @arg @ref LL_EXTI_LINE_7
  516. * @arg @ref LL_EXTI_LINE_8
  517. * @arg @ref LL_EXTI_LINE_9
  518. * @arg @ref LL_EXTI_LINE_10
  519. * @arg @ref LL_EXTI_LINE_11
  520. * @arg @ref LL_EXTI_LINE_12
  521. * @arg @ref LL_EXTI_LINE_13
  522. * @arg @ref LL_EXTI_LINE_14
  523. * @arg @ref LL_EXTI_LINE_15
  524. * @arg @ref LL_EXTI_LINE_16
  525. * @arg @ref LL_EXTI_LINE_18
  526. * @arg @ref LL_EXTI_LINE_19
  527. * @arg @ref LL_EXTI_LINE_20
  528. * @arg @ref LL_EXTI_LINE_21
  529. * @arg @ref LL_EXTI_LINE_22
  530. * @arg @ref LL_EXTI_LINE_29
  531. * @arg @ref LL_EXTI_LINE_30
  532. * @arg @ref LL_EXTI_LINE_31
  533. * @note Please check each device line mapping for EXTI Line availability
  534. * @retval None
  535. */
  536. __STATIC_INLINE void LL_EXTI_EnableRisingTrig_0_31(uint32_t ExtiLine)
  537. {
  538. SET_BIT(EXTI->RTSR, ExtiLine);
  539. }
  540. /**
  541. * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 0 to 31
  542. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  543. * generated on these lines. If a rising edge on a configurable interrupt
  544. * line occurs during a write operation in the EXTI_RTSR register, the
  545. * pending bit is not set.
  546. * Rising and falling edge triggers can be set for
  547. * the same interrupt line. In this case, both generate a trigger
  548. * condition.
  549. * @rmtoll RTSR RTx LL_EXTI_DisableRisingTrig_0_31
  550. * @param ExtiLine This parameter can be a combination of the following values:
  551. * @arg @ref LL_EXTI_LINE_0
  552. * @arg @ref LL_EXTI_LINE_1
  553. * @arg @ref LL_EXTI_LINE_2
  554. * @arg @ref LL_EXTI_LINE_3
  555. * @arg @ref LL_EXTI_LINE_4
  556. * @arg @ref LL_EXTI_LINE_5
  557. * @arg @ref LL_EXTI_LINE_6
  558. * @arg @ref LL_EXTI_LINE_7
  559. * @arg @ref LL_EXTI_LINE_8
  560. * @arg @ref LL_EXTI_LINE_9
  561. * @arg @ref LL_EXTI_LINE_10
  562. * @arg @ref LL_EXTI_LINE_11
  563. * @arg @ref LL_EXTI_LINE_12
  564. * @arg @ref LL_EXTI_LINE_13
  565. * @arg @ref LL_EXTI_LINE_14
  566. * @arg @ref LL_EXTI_LINE_15
  567. * @arg @ref LL_EXTI_LINE_16
  568. * @arg @ref LL_EXTI_LINE_18
  569. * @arg @ref LL_EXTI_LINE_19
  570. * @arg @ref LL_EXTI_LINE_20
  571. * @arg @ref LL_EXTI_LINE_21
  572. * @arg @ref LL_EXTI_LINE_22
  573. * @arg @ref LL_EXTI_LINE_29
  574. * @arg @ref LL_EXTI_LINE_30
  575. * @arg @ref LL_EXTI_LINE_31
  576. * @note Please check each device line mapping for EXTI Line availability
  577. * @retval None
  578. */
  579. __STATIC_INLINE void LL_EXTI_DisableRisingTrig_0_31(uint32_t ExtiLine)
  580. {
  581. CLEAR_BIT(EXTI->RTSR, ExtiLine);
  582. }
  583. /**
  584. * @brief Check if rising edge trigger is enabled for Lines in range 0 to 31
  585. * @rmtoll RTSR RTx LL_EXTI_IsEnabledRisingTrig_0_31
  586. * @param ExtiLine This parameter can be a combination of the following values:
  587. * @arg @ref LL_EXTI_LINE_0
  588. * @arg @ref LL_EXTI_LINE_1
  589. * @arg @ref LL_EXTI_LINE_2
  590. * @arg @ref LL_EXTI_LINE_3
  591. * @arg @ref LL_EXTI_LINE_4
  592. * @arg @ref LL_EXTI_LINE_5
  593. * @arg @ref LL_EXTI_LINE_6
  594. * @arg @ref LL_EXTI_LINE_7
  595. * @arg @ref LL_EXTI_LINE_8
  596. * @arg @ref LL_EXTI_LINE_9
  597. * @arg @ref LL_EXTI_LINE_10
  598. * @arg @ref LL_EXTI_LINE_11
  599. * @arg @ref LL_EXTI_LINE_12
  600. * @arg @ref LL_EXTI_LINE_13
  601. * @arg @ref LL_EXTI_LINE_14
  602. * @arg @ref LL_EXTI_LINE_15
  603. * @arg @ref LL_EXTI_LINE_16
  604. * @arg @ref LL_EXTI_LINE_18
  605. * @arg @ref LL_EXTI_LINE_19
  606. * @arg @ref LL_EXTI_LINE_20
  607. * @arg @ref LL_EXTI_LINE_21
  608. * @arg @ref LL_EXTI_LINE_22
  609. * @arg @ref LL_EXTI_LINE_29
  610. * @arg @ref LL_EXTI_LINE_30
  611. * @arg @ref LL_EXTI_LINE_31
  612. * @note Please check each device line mapping for EXTI Line availability
  613. * @retval State of bit (1 or 0).
  614. */
  615. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_0_31(uint32_t ExtiLine)
  616. {
  617. return (READ_BIT(EXTI->RTSR, ExtiLine) == (ExtiLine));
  618. }
  619. /**
  620. * @}
  621. */
  622. /** @defgroup EXTI_LL_EF_Falling_Trigger_Management Falling_Trigger_Management
  623. * @{
  624. */
  625. /**
  626. * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 0 to 31
  627. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  628. * generated on these lines. If a falling edge on a configurable interrupt
  629. * line occurs during a write operation in the EXTI_FTSR register, the
  630. * pending bit is not set.
  631. * Rising and falling edge triggers can be set for
  632. * the same interrupt line. In this case, both generate a trigger
  633. * condition.
  634. * @rmtoll FTSR FTx LL_EXTI_EnableFallingTrig_0_31
  635. * @param ExtiLine This parameter can be a combination of the following values:
  636. * @arg @ref LL_EXTI_LINE_0
  637. * @arg @ref LL_EXTI_LINE_1
  638. * @arg @ref LL_EXTI_LINE_2
  639. * @arg @ref LL_EXTI_LINE_3
  640. * @arg @ref LL_EXTI_LINE_4
  641. * @arg @ref LL_EXTI_LINE_5
  642. * @arg @ref LL_EXTI_LINE_6
  643. * @arg @ref LL_EXTI_LINE_7
  644. * @arg @ref LL_EXTI_LINE_8
  645. * @arg @ref LL_EXTI_LINE_9
  646. * @arg @ref LL_EXTI_LINE_10
  647. * @arg @ref LL_EXTI_LINE_11
  648. * @arg @ref LL_EXTI_LINE_12
  649. * @arg @ref LL_EXTI_LINE_13
  650. * @arg @ref LL_EXTI_LINE_14
  651. * @arg @ref LL_EXTI_LINE_15
  652. * @arg @ref LL_EXTI_LINE_16
  653. * @arg @ref LL_EXTI_LINE_18
  654. * @arg @ref LL_EXTI_LINE_19
  655. * @arg @ref LL_EXTI_LINE_20
  656. * @arg @ref LL_EXTI_LINE_21
  657. * @arg @ref LL_EXTI_LINE_22
  658. * @arg @ref LL_EXTI_LINE_29
  659. * @arg @ref LL_EXTI_LINE_30
  660. * @arg @ref LL_EXTI_LINE_31
  661. * @note Please check each device line mapping for EXTI Line availability
  662. * @retval None
  663. */
  664. __STATIC_INLINE void LL_EXTI_EnableFallingTrig_0_31(uint32_t ExtiLine)
  665. {
  666. SET_BIT(EXTI->FTSR, ExtiLine);
  667. }
  668. /**
  669. * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 0 to 31
  670. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  671. * generated on these lines. If a Falling edge on a configurable interrupt
  672. * line occurs during a write operation in the EXTI_FTSR register, the
  673. * pending bit is not set.
  674. * Rising and falling edge triggers can be set for the same interrupt line.
  675. * In this case, both generate a trigger condition.
  676. * @rmtoll FTSR FTx LL_EXTI_DisableFallingTrig_0_31
  677. * @param ExtiLine This parameter can be a combination of the following values:
  678. * @arg @ref LL_EXTI_LINE_0
  679. * @arg @ref LL_EXTI_LINE_1
  680. * @arg @ref LL_EXTI_LINE_2
  681. * @arg @ref LL_EXTI_LINE_3
  682. * @arg @ref LL_EXTI_LINE_4
  683. * @arg @ref LL_EXTI_LINE_5
  684. * @arg @ref LL_EXTI_LINE_6
  685. * @arg @ref LL_EXTI_LINE_7
  686. * @arg @ref LL_EXTI_LINE_8
  687. * @arg @ref LL_EXTI_LINE_9
  688. * @arg @ref LL_EXTI_LINE_10
  689. * @arg @ref LL_EXTI_LINE_11
  690. * @arg @ref LL_EXTI_LINE_12
  691. * @arg @ref LL_EXTI_LINE_13
  692. * @arg @ref LL_EXTI_LINE_14
  693. * @arg @ref LL_EXTI_LINE_15
  694. * @arg @ref LL_EXTI_LINE_16
  695. * @arg @ref LL_EXTI_LINE_18
  696. * @arg @ref LL_EXTI_LINE_19
  697. * @arg @ref LL_EXTI_LINE_20
  698. * @arg @ref LL_EXTI_LINE_21
  699. * @arg @ref LL_EXTI_LINE_22
  700. * @arg @ref LL_EXTI_LINE_29
  701. * @arg @ref LL_EXTI_LINE_30
  702. * @arg @ref LL_EXTI_LINE_31
  703. * @note Please check each device line mapping for EXTI Line availability
  704. * @retval None
  705. */
  706. __STATIC_INLINE void LL_EXTI_DisableFallingTrig_0_31(uint32_t ExtiLine)
  707. {
  708. CLEAR_BIT(EXTI->FTSR, ExtiLine);
  709. }
  710. /**
  711. * @brief Check if falling edge trigger is enabled for Lines in range 0 to 31
  712. * @rmtoll FTSR FTx LL_EXTI_IsEnabledFallingTrig_0_31
  713. * @param ExtiLine This parameter can be a combination of the following values:
  714. * @arg @ref LL_EXTI_LINE_0
  715. * @arg @ref LL_EXTI_LINE_1
  716. * @arg @ref LL_EXTI_LINE_2
  717. * @arg @ref LL_EXTI_LINE_3
  718. * @arg @ref LL_EXTI_LINE_4
  719. * @arg @ref LL_EXTI_LINE_5
  720. * @arg @ref LL_EXTI_LINE_6
  721. * @arg @ref LL_EXTI_LINE_7
  722. * @arg @ref LL_EXTI_LINE_8
  723. * @arg @ref LL_EXTI_LINE_9
  724. * @arg @ref LL_EXTI_LINE_10
  725. * @arg @ref LL_EXTI_LINE_11
  726. * @arg @ref LL_EXTI_LINE_12
  727. * @arg @ref LL_EXTI_LINE_13
  728. * @arg @ref LL_EXTI_LINE_14
  729. * @arg @ref LL_EXTI_LINE_15
  730. * @arg @ref LL_EXTI_LINE_16
  731. * @arg @ref LL_EXTI_LINE_18
  732. * @arg @ref LL_EXTI_LINE_19
  733. * @arg @ref LL_EXTI_LINE_20
  734. * @arg @ref LL_EXTI_LINE_21
  735. * @arg @ref LL_EXTI_LINE_22
  736. * @arg @ref LL_EXTI_LINE_29
  737. * @arg @ref LL_EXTI_LINE_30
  738. * @arg @ref LL_EXTI_LINE_31
  739. * @note Please check each device line mapping for EXTI Line availability
  740. * @retval State of bit (1 or 0).
  741. */
  742. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_0_31(uint32_t ExtiLine)
  743. {
  744. return (READ_BIT(EXTI->FTSR, ExtiLine) == (ExtiLine));
  745. }
  746. /**
  747. * @}
  748. */
  749. /** @defgroup EXTI_LL_EF_Software_Interrupt_Management Software_Interrupt_Management
  750. * @{
  751. */
  752. /**
  753. * @brief Generate a software Interrupt Event for Lines in range 0 to 31
  754. * @note If the interrupt is enabled on this line in the EXTI_IMR, writing a 1 to
  755. * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR
  756. * resulting in an interrupt request generation.
  757. * This bit is cleared by clearing the corresponding bit in the EXTI_PR
  758. * register (by writing a 1 into the bit)
  759. * @rmtoll SWIER SWIx LL_EXTI_GenerateSWI_0_31
  760. * @param ExtiLine This parameter can be a combination of the following values:
  761. * @arg @ref LL_EXTI_LINE_0
  762. * @arg @ref LL_EXTI_LINE_1
  763. * @arg @ref LL_EXTI_LINE_2
  764. * @arg @ref LL_EXTI_LINE_3
  765. * @arg @ref LL_EXTI_LINE_4
  766. * @arg @ref LL_EXTI_LINE_5
  767. * @arg @ref LL_EXTI_LINE_6
  768. * @arg @ref LL_EXTI_LINE_7
  769. * @arg @ref LL_EXTI_LINE_8
  770. * @arg @ref LL_EXTI_LINE_9
  771. * @arg @ref LL_EXTI_LINE_10
  772. * @arg @ref LL_EXTI_LINE_11
  773. * @arg @ref LL_EXTI_LINE_12
  774. * @arg @ref LL_EXTI_LINE_13
  775. * @arg @ref LL_EXTI_LINE_14
  776. * @arg @ref LL_EXTI_LINE_15
  777. * @arg @ref LL_EXTI_LINE_16
  778. * @arg @ref LL_EXTI_LINE_18
  779. * @arg @ref LL_EXTI_LINE_19
  780. * @arg @ref LL_EXTI_LINE_20
  781. * @arg @ref LL_EXTI_LINE_21
  782. * @arg @ref LL_EXTI_LINE_22
  783. * @arg @ref LL_EXTI_LINE_29
  784. * @arg @ref LL_EXTI_LINE_30
  785. * @arg @ref LL_EXTI_LINE_31
  786. * @note Please check each device line mapping for EXTI Line availability
  787. * @retval None
  788. */
  789. __STATIC_INLINE void LL_EXTI_GenerateSWI_0_31(uint32_t ExtiLine)
  790. {
  791. SET_BIT(EXTI->SWIER, ExtiLine);
  792. }
  793. /**
  794. * @}
  795. */
  796. /** @defgroup EXTI_LL_EF_Flag_Management Flag_Management
  797. * @{
  798. */
  799. /**
  800. * @brief Check if the ExtLine Flag is set or not for Lines in range 0 to 31
  801. * @note This bit is set when the selected edge event arrives on the interrupt
  802. * line. This bit is cleared by writing a 1 to the bit.
  803. * @rmtoll PR PIFx LL_EXTI_IsActiveFlag_0_31
  804. * @param ExtiLine This parameter can be a combination of the following values:
  805. * @arg @ref LL_EXTI_LINE_0
  806. * @arg @ref LL_EXTI_LINE_1
  807. * @arg @ref LL_EXTI_LINE_2
  808. * @arg @ref LL_EXTI_LINE_3
  809. * @arg @ref LL_EXTI_LINE_4
  810. * @arg @ref LL_EXTI_LINE_5
  811. * @arg @ref LL_EXTI_LINE_6
  812. * @arg @ref LL_EXTI_LINE_7
  813. * @arg @ref LL_EXTI_LINE_8
  814. * @arg @ref LL_EXTI_LINE_9
  815. * @arg @ref LL_EXTI_LINE_10
  816. * @arg @ref LL_EXTI_LINE_11
  817. * @arg @ref LL_EXTI_LINE_12
  818. * @arg @ref LL_EXTI_LINE_13
  819. * @arg @ref LL_EXTI_LINE_14
  820. * @arg @ref LL_EXTI_LINE_15
  821. * @arg @ref LL_EXTI_LINE_16
  822. * @arg @ref LL_EXTI_LINE_18
  823. * @arg @ref LL_EXTI_LINE_19
  824. * @arg @ref LL_EXTI_LINE_20
  825. * @arg @ref LL_EXTI_LINE_21
  826. * @arg @ref LL_EXTI_LINE_22
  827. * @arg @ref LL_EXTI_LINE_29
  828. * @arg @ref LL_EXTI_LINE_30
  829. * @arg @ref LL_EXTI_LINE_31
  830. * @note Please check each device line mapping for EXTI Line availability
  831. * @retval State of bit (1 or 0).
  832. */
  833. __STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_0_31(uint32_t ExtiLine)
  834. {
  835. return (READ_BIT(EXTI->PR, ExtiLine) == (ExtiLine));
  836. }
  837. /**
  838. * @brief Read ExtLine Combination Flag for Lines in range 0 to 31
  839. * @note This bit is set when the selected edge event arrives on the interrupt
  840. * line. This bit is cleared by writing a 1 to the bit.
  841. * @rmtoll PR PIFx LL_EXTI_ReadFlag_0_31
  842. * @param ExtiLine This parameter can be a combination of the following values:
  843. * @arg @ref LL_EXTI_LINE_0
  844. * @arg @ref LL_EXTI_LINE_1
  845. * @arg @ref LL_EXTI_LINE_2
  846. * @arg @ref LL_EXTI_LINE_3
  847. * @arg @ref LL_EXTI_LINE_4
  848. * @arg @ref LL_EXTI_LINE_5
  849. * @arg @ref LL_EXTI_LINE_6
  850. * @arg @ref LL_EXTI_LINE_7
  851. * @arg @ref LL_EXTI_LINE_8
  852. * @arg @ref LL_EXTI_LINE_9
  853. * @arg @ref LL_EXTI_LINE_10
  854. * @arg @ref LL_EXTI_LINE_11
  855. * @arg @ref LL_EXTI_LINE_12
  856. * @arg @ref LL_EXTI_LINE_13
  857. * @arg @ref LL_EXTI_LINE_14
  858. * @arg @ref LL_EXTI_LINE_15
  859. * @arg @ref LL_EXTI_LINE_16
  860. * @arg @ref LL_EXTI_LINE_18
  861. * @arg @ref LL_EXTI_LINE_19
  862. * @arg @ref LL_EXTI_LINE_20
  863. * @arg @ref LL_EXTI_LINE_21
  864. * @arg @ref LL_EXTI_LINE_22
  865. * @arg @ref LL_EXTI_LINE_29
  866. * @arg @ref LL_EXTI_LINE_30
  867. * @arg @ref LL_EXTI_LINE_31
  868. * @note Please check each device line mapping for EXTI Line availability
  869. * @retval @note This bit is set when the selected edge event arrives on the interrupt
  870. */
  871. __STATIC_INLINE uint32_t LL_EXTI_ReadFlag_0_31(uint32_t ExtiLine)
  872. {
  873. return (uint32_t)(READ_BIT(EXTI->PR, ExtiLine));
  874. }
  875. /**
  876. * @brief Clear ExtLine Flags for Lines in range 0 to 31
  877. * @note This bit is set when the selected edge event arrives on the interrupt
  878. * line. This bit is cleared by writing a 1 to the bit.
  879. * @rmtoll PR PIFx LL_EXTI_ClearFlag_0_31
  880. * @param ExtiLine This parameter can be a combination of the following values:
  881. * @arg @ref LL_EXTI_LINE_0
  882. * @arg @ref LL_EXTI_LINE_1
  883. * @arg @ref LL_EXTI_LINE_2
  884. * @arg @ref LL_EXTI_LINE_3
  885. * @arg @ref LL_EXTI_LINE_4
  886. * @arg @ref LL_EXTI_LINE_5
  887. * @arg @ref LL_EXTI_LINE_6
  888. * @arg @ref LL_EXTI_LINE_7
  889. * @arg @ref LL_EXTI_LINE_8
  890. * @arg @ref LL_EXTI_LINE_9
  891. * @arg @ref LL_EXTI_LINE_10
  892. * @arg @ref LL_EXTI_LINE_11
  893. * @arg @ref LL_EXTI_LINE_12
  894. * @arg @ref LL_EXTI_LINE_13
  895. * @arg @ref LL_EXTI_LINE_14
  896. * @arg @ref LL_EXTI_LINE_15
  897. * @arg @ref LL_EXTI_LINE_16
  898. * @arg @ref LL_EXTI_LINE_18
  899. * @arg @ref LL_EXTI_LINE_19
  900. * @arg @ref LL_EXTI_LINE_20
  901. * @arg @ref LL_EXTI_LINE_21
  902. * @arg @ref LL_EXTI_LINE_22
  903. * @arg @ref LL_EXTI_LINE_29
  904. * @arg @ref LL_EXTI_LINE_30
  905. * @arg @ref LL_EXTI_LINE_31
  906. * @note Please check each device line mapping for EXTI Line availability
  907. * @retval None
  908. */
  909. __STATIC_INLINE void LL_EXTI_ClearFlag_0_31(uint32_t ExtiLine)
  910. {
  911. WRITE_REG(EXTI->PR, ExtiLine);
  912. }
  913. /**
  914. * @}
  915. */
  916. #if defined(USE_FULL_LL_DRIVER)
  917. /** @defgroup EXTI_LL_EF_Init Initialization and de-initialization functions
  918. * @{
  919. */
  920. uint32_t LL_EXTI_Init(LL_EXTI_InitTypeDef *EXTI_InitStruct);
  921. uint32_t LL_EXTI_DeInit(void);
  922. void LL_EXTI_StructInit(LL_EXTI_InitTypeDef *EXTI_InitStruct);
  923. /**
  924. * @}
  925. */
  926. #endif /* USE_FULL_LL_DRIVER */
  927. /**
  928. * @}
  929. */
  930. /**
  931. * @}
  932. */
  933. #endif /* EXTI */
  934. /**
  935. * @}
  936. */
  937. #ifdef __cplusplus
  938. }
  939. #endif
  940. #endif /* __STM32F0xx_LL_EXTI_H */
  941. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/