stm32f4xx_ll_exti.h 35 KB

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