stm32l4xx_ll_exti.h 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359
  1. /**
  2. ******************************************************************************
  3. * @file stm32l4xx_ll_exti.h
  4. * @author MCD Application Team
  5. * @brief Header file of EXTI LL module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* Define to prevent recursive inclusion -------------------------------------*/
  19. #ifndef STM32L4xx_LL_EXTI_H
  20. #define STM32L4xx_LL_EXTI_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32l4xx.h"
  26. /** @addtogroup STM32L4xx_LL_Driver
  27. * @{
  28. */
  29. #if defined (EXTI)
  30. /** @defgroup EXTI_LL EXTI
  31. * @{
  32. */
  33. /* Private types -------------------------------------------------------------*/
  34. /* Private variables ---------------------------------------------------------*/
  35. /* Private constants ---------------------------------------------------------*/
  36. /* Private Macros ------------------------------------------------------------*/
  37. #if defined(USE_FULL_LL_DRIVER)
  38. /** @defgroup EXTI_LL_Private_Macros EXTI Private Macros
  39. * @{
  40. */
  41. /**
  42. * @}
  43. */
  44. #endif /*USE_FULL_LL_DRIVER*/
  45. /* Exported types ------------------------------------------------------------*/
  46. #if defined(USE_FULL_LL_DRIVER)
  47. /** @defgroup EXTI_LL_ES_INIT EXTI Exported Init structure
  48. * @{
  49. */
  50. typedef struct
  51. {
  52. uint32_t Line_0_31; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 0 to 31
  53. This parameter can be any combination of @ref EXTI_LL_EC_LINE */
  54. uint32_t Line_32_63; /*!< Specifies the EXTI lines to be enabled or disabled for Lines in range 32 to 63
  55. This parameter can be any combination of @ref EXTI_LL_EC_LINE */
  56. FunctionalState LineCommand; /*!< Specifies the new state of the selected EXTI lines.
  57. This parameter can be set either to ENABLE or DISABLE */
  58. uint8_t Mode; /*!< Specifies the mode for the EXTI lines.
  59. This parameter can be a value of @ref EXTI_LL_EC_MODE. */
  60. uint8_t Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines.
  61. This parameter can be a value of @ref EXTI_LL_EC_TRIGGER. */
  62. } LL_EXTI_InitTypeDef;
  63. /**
  64. * @}
  65. */
  66. #endif /*USE_FULL_LL_DRIVER*/
  67. /* Exported constants --------------------------------------------------------*/
  68. /** @defgroup EXTI_LL_Exported_Constants EXTI Exported Constants
  69. * @{
  70. */
  71. /** @defgroup EXTI_LL_EC_LINE LINE
  72. * @{
  73. */
  74. #define LL_EXTI_LINE_0 EXTI_IMR1_IM0 /*!< Extended line 0 */
  75. #define LL_EXTI_LINE_1 EXTI_IMR1_IM1 /*!< Extended line 1 */
  76. #define LL_EXTI_LINE_2 EXTI_IMR1_IM2 /*!< Extended line 2 */
  77. #define LL_EXTI_LINE_3 EXTI_IMR1_IM3 /*!< Extended line 3 */
  78. #define LL_EXTI_LINE_4 EXTI_IMR1_IM4 /*!< Extended line 4 */
  79. #define LL_EXTI_LINE_5 EXTI_IMR1_IM5 /*!< Extended line 5 */
  80. #define LL_EXTI_LINE_6 EXTI_IMR1_IM6 /*!< Extended line 6 */
  81. #define LL_EXTI_LINE_7 EXTI_IMR1_IM7 /*!< Extended line 7 */
  82. #define LL_EXTI_LINE_8 EXTI_IMR1_IM8 /*!< Extended line 8 */
  83. #define LL_EXTI_LINE_9 EXTI_IMR1_IM9 /*!< Extended line 9 */
  84. #define LL_EXTI_LINE_10 EXTI_IMR1_IM10 /*!< Extended line 10 */
  85. #define LL_EXTI_LINE_11 EXTI_IMR1_IM11 /*!< Extended line 11 */
  86. #define LL_EXTI_LINE_12 EXTI_IMR1_IM12 /*!< Extended line 12 */
  87. #define LL_EXTI_LINE_13 EXTI_IMR1_IM13 /*!< Extended line 13 */
  88. #define LL_EXTI_LINE_14 EXTI_IMR1_IM14 /*!< Extended line 14 */
  89. #define LL_EXTI_LINE_15 EXTI_IMR1_IM15 /*!< Extended line 15 */
  90. #if defined(EXTI_IMR1_IM16)
  91. #define LL_EXTI_LINE_16 EXTI_IMR1_IM16 /*!< Extended line 16 */
  92. #endif
  93. #define LL_EXTI_LINE_17 EXTI_IMR1_IM17 /*!< Extended line 17 */
  94. #if defined(EXTI_IMR1_IM18)
  95. #define LL_EXTI_LINE_18 EXTI_IMR1_IM18 /*!< Extended line 18 */
  96. #endif
  97. #define LL_EXTI_LINE_19 EXTI_IMR1_IM19 /*!< Extended line 19 */
  98. #if defined(EXTI_IMR1_IM20)
  99. #define LL_EXTI_LINE_20 EXTI_IMR1_IM20 /*!< Extended line 20 */
  100. #endif
  101. #if defined(EXTI_IMR1_IM21)
  102. #define LL_EXTI_LINE_21 EXTI_IMR1_IM21 /*!< Extended line 21 */
  103. #endif
  104. #if defined(EXTI_IMR1_IM22)
  105. #define LL_EXTI_LINE_22 EXTI_IMR1_IM22 /*!< Extended line 22 */
  106. #endif
  107. #define LL_EXTI_LINE_23 EXTI_IMR1_IM23 /*!< Extended line 23 */
  108. #if defined(EXTI_IMR1_IM24)
  109. #define LL_EXTI_LINE_24 EXTI_IMR1_IM24 /*!< Extended line 24 */
  110. #endif
  111. #if defined(EXTI_IMR1_IM25)
  112. #define LL_EXTI_LINE_25 EXTI_IMR1_IM25 /*!< Extended line 25 */
  113. #endif
  114. #if defined(EXTI_IMR1_IM26)
  115. #define LL_EXTI_LINE_26 EXTI_IMR1_IM26 /*!< Extended line 26 */
  116. #endif
  117. #if defined(EXTI_IMR1_IM27)
  118. #define LL_EXTI_LINE_27 EXTI_IMR1_IM27 /*!< Extended line 27 */
  119. #endif
  120. #if defined(EXTI_IMR1_IM28)
  121. #define LL_EXTI_LINE_28 EXTI_IMR1_IM28 /*!< Extended line 28 */
  122. #endif
  123. #if defined(EXTI_IMR1_IM29)
  124. #define LL_EXTI_LINE_29 EXTI_IMR1_IM29 /*!< Extended line 29 */
  125. #endif
  126. #if defined(EXTI_IMR1_IM30)
  127. #define LL_EXTI_LINE_30 EXTI_IMR1_IM30 /*!< Extended line 30 */
  128. #endif
  129. #if defined(EXTI_IMR1_IM31)
  130. #define LL_EXTI_LINE_31 EXTI_IMR1_IM31 /*!< Extended line 31 */
  131. #endif
  132. #define LL_EXTI_LINE_ALL_0_31 EXTI_IMR1_IM /*!< All Extended line not reserved*/
  133. #define LL_EXTI_LINE_32 EXTI_IMR2_IM32 /*!< Extended line 32 */
  134. #if defined(EXTI_IMR2_IM33)
  135. #define LL_EXTI_LINE_33 EXTI_IMR2_IM33 /*!< Extended line 33 */
  136. #endif
  137. #if defined(EXTI_IMR2_IM34)
  138. #define LL_EXTI_LINE_34 EXTI_IMR2_IM34 /*!< Extended line 34 */
  139. #endif
  140. #if defined(EXTI_IMR2_IM35)
  141. #define LL_EXTI_LINE_35 EXTI_IMR2_IM35 /*!< Extended line 35 */
  142. #endif
  143. #if defined(EXTI_IMR2_IM36)
  144. #define LL_EXTI_LINE_36 EXTI_IMR2_IM36 /*!< Extended line 36 */
  145. #endif
  146. #if defined(EXTI_IMR2_IM37)
  147. #define LL_EXTI_LINE_37 EXTI_IMR2_IM37 /*!< Extended line 37 */
  148. #endif
  149. #if defined(EXTI_IMR2_IM38)
  150. #define LL_EXTI_LINE_38 EXTI_IMR2_IM38 /*!< Extended line 38 */
  151. #endif
  152. #if defined(EXTI_IMR2_IM39)
  153. #define LL_EXTI_LINE_39 EXTI_IMR2_IM39 /*!< Extended line 39 */
  154. #endif
  155. #if defined(EXTI_IMR2_IM40)
  156. #define LL_EXTI_LINE_40 EXTI_IMR2_IM40 /*!< Extended line 40 */
  157. #endif
  158. #define LL_EXTI_LINE_ALL_32_63 EXTI_IMR2_IM /*!< All Extended line not reserved*/
  159. #define LL_EXTI_LINE_ALL (0xFFFFFFFFU) /*!< All Extended line */
  160. #if defined(USE_FULL_LL_DRIVER)
  161. #define LL_EXTI_LINE_NONE (0x00000000U) /*!< None Extended line */
  162. #endif /*USE_FULL_LL_DRIVER*/
  163. /**
  164. * @}
  165. */
  166. #if defined(USE_FULL_LL_DRIVER)
  167. /** @defgroup EXTI_LL_EC_MODE Mode
  168. * @{
  169. */
  170. #define LL_EXTI_MODE_IT ((uint8_t)0x00U) /*!< Interrupt Mode */
  171. #define LL_EXTI_MODE_EVENT ((uint8_t)0x01U) /*!< Event Mode */
  172. #define LL_EXTI_MODE_IT_EVENT ((uint8_t)0x02U) /*!< Interrupt & Event Mode */
  173. /**
  174. * @}
  175. */
  176. /** @defgroup EXTI_LL_EC_TRIGGER Edge Trigger
  177. * @{
  178. */
  179. #define LL_EXTI_TRIGGER_NONE ((uint8_t)0x00U) /*!< No Trigger Mode */
  180. #define LL_EXTI_TRIGGER_RISING ((uint8_t)0x01U) /*!< Trigger Rising Mode */
  181. #define LL_EXTI_TRIGGER_FALLING ((uint8_t)0x02U) /*!< Trigger Falling Mode */
  182. #define LL_EXTI_TRIGGER_RISING_FALLING ((uint8_t)0x03U) /*!< Trigger Rising & Falling Mode */
  183. /**
  184. * @}
  185. */
  186. #endif /*USE_FULL_LL_DRIVER*/
  187. /**
  188. * @}
  189. */
  190. /* Exported macro ------------------------------------------------------------*/
  191. /** @defgroup EXTI_LL_Exported_Macros EXTI Exported Macros
  192. * @{
  193. */
  194. /** @defgroup EXTI_LL_EM_WRITE_READ Common Write and read registers Macros
  195. * @{
  196. */
  197. /**
  198. * @brief Write a value in EXTI register
  199. * @param __REG__ Register to be written
  200. * @param __VALUE__ Value to be written in the register
  201. * @retval None
  202. */
  203. #define LL_EXTI_WriteReg(__REG__, __VALUE__) WRITE_REG(EXTI->__REG__, (__VALUE__))
  204. /**
  205. * @brief Read a value in EXTI register
  206. * @param __REG__ Register to be read
  207. * @retval Register value
  208. */
  209. #define LL_EXTI_ReadReg(__REG__) READ_REG(EXTI->__REG__)
  210. /**
  211. * @}
  212. */
  213. /**
  214. * @}
  215. */
  216. /* Exported functions --------------------------------------------------------*/
  217. /** @defgroup EXTI_LL_Exported_Functions EXTI Exported Functions
  218. * @{
  219. */
  220. /** @defgroup EXTI_LL_EF_IT_Management IT_Management
  221. * @{
  222. */
  223. /**
  224. * @brief Enable ExtiLine Interrupt request for Lines in range 0 to 31
  225. * @note The reset value for the direct or internal lines (see RM)
  226. * is set to 1 in order to enable the interrupt by default.
  227. * Bits are set automatically at Power on.
  228. * @rmtoll IMR1 IMx LL_EXTI_EnableIT_0_31
  229. * @param ExtiLine This parameter can be one of the following values:
  230. * @arg @ref LL_EXTI_LINE_0
  231. * @arg @ref LL_EXTI_LINE_1
  232. * @arg @ref LL_EXTI_LINE_2
  233. * @arg @ref LL_EXTI_LINE_3
  234. * @arg @ref LL_EXTI_LINE_4
  235. * @arg @ref LL_EXTI_LINE_5
  236. * @arg @ref LL_EXTI_LINE_6
  237. * @arg @ref LL_EXTI_LINE_7
  238. * @arg @ref LL_EXTI_LINE_8
  239. * @arg @ref LL_EXTI_LINE_9
  240. * @arg @ref LL_EXTI_LINE_10
  241. * @arg @ref LL_EXTI_LINE_11
  242. * @arg @ref LL_EXTI_LINE_12
  243. * @arg @ref LL_EXTI_LINE_13
  244. * @arg @ref LL_EXTI_LINE_14
  245. * @arg @ref LL_EXTI_LINE_15
  246. * @arg @ref LL_EXTI_LINE_16
  247. * @arg @ref LL_EXTI_LINE_17
  248. * @arg @ref LL_EXTI_LINE_18
  249. * @arg @ref LL_EXTI_LINE_19
  250. * @arg @ref LL_EXTI_LINE_20
  251. * @arg @ref LL_EXTI_LINE_21
  252. * @arg @ref LL_EXTI_LINE_22
  253. * @arg @ref LL_EXTI_LINE_23
  254. * @arg @ref LL_EXTI_LINE_24
  255. * @arg @ref LL_EXTI_LINE_25
  256. * @arg @ref LL_EXTI_LINE_26
  257. * @arg @ref LL_EXTI_LINE_27
  258. * @arg @ref LL_EXTI_LINE_28
  259. * @arg @ref LL_EXTI_LINE_29
  260. * @arg @ref LL_EXTI_LINE_30
  261. * @arg @ref LL_EXTI_LINE_31
  262. * @arg @ref LL_EXTI_LINE_ALL_0_31
  263. * @note Please check each device line mapping for EXTI Line availability
  264. * @retval None
  265. */
  266. __STATIC_INLINE void LL_EXTI_EnableIT_0_31(uint32_t ExtiLine)
  267. {
  268. SET_BIT(EXTI->IMR1, ExtiLine);
  269. }
  270. /**
  271. * @brief Enable ExtiLine Interrupt request for Lines in range 32 to 63
  272. * @note The reset value for the direct lines (lines from 32 to 34, line
  273. * 39) is set to 1 in order to enable the interrupt by default.
  274. * Bits are set automatically at Power on.
  275. * @rmtoll IMR2 IMx LL_EXTI_EnableIT_32_63
  276. * @param ExtiLine This parameter can be one of the following values:
  277. * @arg @ref LL_EXTI_LINE_32
  278. * @arg @ref LL_EXTI_LINE_33
  279. * @arg @ref LL_EXTI_LINE_34(*)
  280. * @arg @ref LL_EXTI_LINE_35
  281. * @arg @ref LL_EXTI_LINE_36
  282. * @arg @ref LL_EXTI_LINE_37
  283. * @arg @ref LL_EXTI_LINE_38
  284. * @arg @ref LL_EXTI_LINE_39(*)
  285. * @arg @ref LL_EXTI_LINE_40(*)
  286. * @arg @ref LL_EXTI_LINE_ALL_32_63
  287. * @note (*): Available in some devices
  288. * @retval None
  289. */
  290. __STATIC_INLINE void LL_EXTI_EnableIT_32_63(uint32_t ExtiLine)
  291. {
  292. SET_BIT(EXTI->IMR2, ExtiLine);
  293. }
  294. /**
  295. * @brief Disable ExtiLine Interrupt request 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 IMR1 IMx LL_EXTI_DisableIT_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_24
  326. * @arg @ref LL_EXTI_LINE_25
  327. * @arg @ref LL_EXTI_LINE_26
  328. * @arg @ref LL_EXTI_LINE_27
  329. * @arg @ref LL_EXTI_LINE_28
  330. * @arg @ref LL_EXTI_LINE_29
  331. * @arg @ref LL_EXTI_LINE_30
  332. * @arg @ref LL_EXTI_LINE_31
  333. * @arg @ref LL_EXTI_LINE_ALL_0_31
  334. * @note Please check each device line mapping for EXTI Line availability
  335. * @retval None
  336. */
  337. __STATIC_INLINE void LL_EXTI_DisableIT_0_31(uint32_t ExtiLine)
  338. {
  339. CLEAR_BIT(EXTI->IMR1, ExtiLine);
  340. }
  341. /**
  342. * @brief Disable ExtiLine Interrupt request for Lines in range 32 to 63
  343. * @note The reset value for the direct lines (lines from 32 to 34, line
  344. * 39) is set to 1 in order to enable the interrupt by default.
  345. * Bits are set automatically at Power on.
  346. * @rmtoll IMR2 IMx LL_EXTI_DisableIT_32_63
  347. * @param ExtiLine This parameter can be one of the following values:
  348. * @arg @ref LL_EXTI_LINE_32
  349. * @arg @ref LL_EXTI_LINE_33
  350. * @arg @ref LL_EXTI_LINE_34(*)
  351. * @arg @ref LL_EXTI_LINE_35
  352. * @arg @ref LL_EXTI_LINE_36
  353. * @arg @ref LL_EXTI_LINE_37
  354. * @arg @ref LL_EXTI_LINE_38
  355. * @arg @ref LL_EXTI_LINE_39(*)
  356. * @arg @ref LL_EXTI_LINE_40(*)
  357. * @arg @ref LL_EXTI_LINE_ALL_32_63
  358. * @note (*): Available in some devices
  359. * @retval None
  360. */
  361. __STATIC_INLINE void LL_EXTI_DisableIT_32_63(uint32_t ExtiLine)
  362. {
  363. CLEAR_BIT(EXTI->IMR2, ExtiLine);
  364. }
  365. /**
  366. * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 0 to 31
  367. * @note The reset value for the direct or internal lines (see RM)
  368. * is set to 1 in order to enable the interrupt by default.
  369. * Bits are set automatically at Power on.
  370. * @rmtoll IMR1 IMx LL_EXTI_IsEnabledIT_0_31
  371. * @param ExtiLine This parameter can be one of the following values:
  372. * @arg @ref LL_EXTI_LINE_0
  373. * @arg @ref LL_EXTI_LINE_1
  374. * @arg @ref LL_EXTI_LINE_2
  375. * @arg @ref LL_EXTI_LINE_3
  376. * @arg @ref LL_EXTI_LINE_4
  377. * @arg @ref LL_EXTI_LINE_5
  378. * @arg @ref LL_EXTI_LINE_6
  379. * @arg @ref LL_EXTI_LINE_7
  380. * @arg @ref LL_EXTI_LINE_8
  381. * @arg @ref LL_EXTI_LINE_9
  382. * @arg @ref LL_EXTI_LINE_10
  383. * @arg @ref LL_EXTI_LINE_11
  384. * @arg @ref LL_EXTI_LINE_12
  385. * @arg @ref LL_EXTI_LINE_13
  386. * @arg @ref LL_EXTI_LINE_14
  387. * @arg @ref LL_EXTI_LINE_15
  388. * @arg @ref LL_EXTI_LINE_16
  389. * @arg @ref LL_EXTI_LINE_17
  390. * @arg @ref LL_EXTI_LINE_18
  391. * @arg @ref LL_EXTI_LINE_19
  392. * @arg @ref LL_EXTI_LINE_20
  393. * @arg @ref LL_EXTI_LINE_21
  394. * @arg @ref LL_EXTI_LINE_22
  395. * @arg @ref LL_EXTI_LINE_23
  396. * @arg @ref LL_EXTI_LINE_24
  397. * @arg @ref LL_EXTI_LINE_25
  398. * @arg @ref LL_EXTI_LINE_26
  399. * @arg @ref LL_EXTI_LINE_27
  400. * @arg @ref LL_EXTI_LINE_28
  401. * @arg @ref LL_EXTI_LINE_29
  402. * @arg @ref LL_EXTI_LINE_30
  403. * @arg @ref LL_EXTI_LINE_31
  404. * @arg @ref LL_EXTI_LINE_ALL_0_31
  405. * @note Please check each device line mapping for EXTI Line availability
  406. * @retval State of bit (1 or 0).
  407. */
  408. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_0_31(uint32_t ExtiLine)
  409. {
  410. return ((READ_BIT(EXTI->IMR1, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  411. }
  412. /**
  413. * @brief Indicate if ExtiLine Interrupt request is enabled for Lines in range 32 to 63
  414. * @note The reset value for the direct lines (lines from 32 to 34, line
  415. * 39) is set to 1 in order to enable the interrupt by default.
  416. * Bits are set automatically at Power on.
  417. * @rmtoll IMR2 IMx LL_EXTI_IsEnabledIT_32_63
  418. * @param ExtiLine This parameter can be one of the following values:
  419. * @arg @ref LL_EXTI_LINE_32
  420. * @arg @ref LL_EXTI_LINE_33
  421. * @arg @ref LL_EXTI_LINE_34(*)
  422. * @arg @ref LL_EXTI_LINE_35
  423. * @arg @ref LL_EXTI_LINE_36
  424. * @arg @ref LL_EXTI_LINE_37
  425. * @arg @ref LL_EXTI_LINE_38
  426. * @arg @ref LL_EXTI_LINE_39(*)
  427. * @arg @ref LL_EXTI_LINE_40(*)
  428. * @arg @ref LL_EXTI_LINE_ALL_32_63
  429. * @note (*): Available in some devices
  430. * @retval State of bit (1 or 0).
  431. */
  432. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledIT_32_63(uint32_t ExtiLine)
  433. {
  434. return ((READ_BIT(EXTI->IMR2, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  435. }
  436. /**
  437. * @}
  438. */
  439. /** @defgroup EXTI_LL_EF_Event_Management Event_Management
  440. * @{
  441. */
  442. /**
  443. * @brief Enable ExtiLine Event request for Lines in range 0 to 31
  444. * @rmtoll EMR1 EMx LL_EXTI_EnableEvent_0_31
  445. * @param ExtiLine This parameter can be one of the following values:
  446. * @arg @ref LL_EXTI_LINE_0
  447. * @arg @ref LL_EXTI_LINE_1
  448. * @arg @ref LL_EXTI_LINE_2
  449. * @arg @ref LL_EXTI_LINE_3
  450. * @arg @ref LL_EXTI_LINE_4
  451. * @arg @ref LL_EXTI_LINE_5
  452. * @arg @ref LL_EXTI_LINE_6
  453. * @arg @ref LL_EXTI_LINE_7
  454. * @arg @ref LL_EXTI_LINE_8
  455. * @arg @ref LL_EXTI_LINE_9
  456. * @arg @ref LL_EXTI_LINE_10
  457. * @arg @ref LL_EXTI_LINE_11
  458. * @arg @ref LL_EXTI_LINE_12
  459. * @arg @ref LL_EXTI_LINE_13
  460. * @arg @ref LL_EXTI_LINE_14
  461. * @arg @ref LL_EXTI_LINE_15
  462. * @arg @ref LL_EXTI_LINE_16
  463. * @arg @ref LL_EXTI_LINE_17
  464. * @arg @ref LL_EXTI_LINE_18
  465. * @arg @ref LL_EXTI_LINE_19
  466. * @arg @ref LL_EXTI_LINE_20
  467. * @arg @ref LL_EXTI_LINE_21
  468. * @arg @ref LL_EXTI_LINE_22
  469. * @arg @ref LL_EXTI_LINE_23
  470. * @arg @ref LL_EXTI_LINE_24
  471. * @arg @ref LL_EXTI_LINE_25
  472. * @arg @ref LL_EXTI_LINE_26
  473. * @arg @ref LL_EXTI_LINE_27
  474. * @arg @ref LL_EXTI_LINE_28
  475. * @arg @ref LL_EXTI_LINE_29
  476. * @arg @ref LL_EXTI_LINE_30
  477. * @arg @ref LL_EXTI_LINE_31
  478. * @arg @ref LL_EXTI_LINE_ALL_0_31
  479. * @note Please check each device line mapping for EXTI Line availability
  480. * @retval None
  481. */
  482. __STATIC_INLINE void LL_EXTI_EnableEvent_0_31(uint32_t ExtiLine)
  483. {
  484. SET_BIT(EXTI->EMR1, ExtiLine);
  485. }
  486. /**
  487. * @brief Enable ExtiLine Event request for Lines in range 32 to 63
  488. * @rmtoll EMR2 EMx LL_EXTI_EnableEvent_32_63
  489. * @param ExtiLine This parameter can be a combination of the following values:
  490. * @arg @ref LL_EXTI_LINE_32
  491. * @arg @ref LL_EXTI_LINE_33
  492. * @arg @ref LL_EXTI_LINE_34(*)
  493. * @arg @ref LL_EXTI_LINE_35
  494. * @arg @ref LL_EXTI_LINE_36
  495. * @arg @ref LL_EXTI_LINE_37
  496. * @arg @ref LL_EXTI_LINE_38
  497. * @arg @ref LL_EXTI_LINE_39(*)
  498. * @arg @ref LL_EXTI_LINE_40(*)
  499. * @arg @ref LL_EXTI_LINE_ALL_32_63
  500. * @note (*): Available in some devices
  501. * @retval None
  502. */
  503. __STATIC_INLINE void LL_EXTI_EnableEvent_32_63(uint32_t ExtiLine)
  504. {
  505. SET_BIT(EXTI->EMR2, ExtiLine);
  506. }
  507. /**
  508. * @brief Disable ExtiLine Event request for Lines in range 0 to 31
  509. * @rmtoll EMR1 EMx LL_EXTI_DisableEvent_0_31
  510. * @param ExtiLine This parameter can be one of the following values:
  511. * @arg @ref LL_EXTI_LINE_0
  512. * @arg @ref LL_EXTI_LINE_1
  513. * @arg @ref LL_EXTI_LINE_2
  514. * @arg @ref LL_EXTI_LINE_3
  515. * @arg @ref LL_EXTI_LINE_4
  516. * @arg @ref LL_EXTI_LINE_5
  517. * @arg @ref LL_EXTI_LINE_6
  518. * @arg @ref LL_EXTI_LINE_7
  519. * @arg @ref LL_EXTI_LINE_8
  520. * @arg @ref LL_EXTI_LINE_9
  521. * @arg @ref LL_EXTI_LINE_10
  522. * @arg @ref LL_EXTI_LINE_11
  523. * @arg @ref LL_EXTI_LINE_12
  524. * @arg @ref LL_EXTI_LINE_13
  525. * @arg @ref LL_EXTI_LINE_14
  526. * @arg @ref LL_EXTI_LINE_15
  527. * @arg @ref LL_EXTI_LINE_16
  528. * @arg @ref LL_EXTI_LINE_17
  529. * @arg @ref LL_EXTI_LINE_18
  530. * @arg @ref LL_EXTI_LINE_19
  531. * @arg @ref LL_EXTI_LINE_20
  532. * @arg @ref LL_EXTI_LINE_21
  533. * @arg @ref LL_EXTI_LINE_22
  534. * @arg @ref LL_EXTI_LINE_23
  535. * @arg @ref LL_EXTI_LINE_24
  536. * @arg @ref LL_EXTI_LINE_25
  537. * @arg @ref LL_EXTI_LINE_26
  538. * @arg @ref LL_EXTI_LINE_27
  539. * @arg @ref LL_EXTI_LINE_28
  540. * @arg @ref LL_EXTI_LINE_29
  541. * @arg @ref LL_EXTI_LINE_30
  542. * @arg @ref LL_EXTI_LINE_31
  543. * @arg @ref LL_EXTI_LINE_ALL_0_31
  544. * @note Please check each device line mapping for EXTI Line availability
  545. * @retval None
  546. */
  547. __STATIC_INLINE void LL_EXTI_DisableEvent_0_31(uint32_t ExtiLine)
  548. {
  549. CLEAR_BIT(EXTI->EMR1, ExtiLine);
  550. }
  551. /**
  552. * @brief Disable ExtiLine Event request for Lines in range 32 to 63
  553. * @rmtoll EMR2 EMx LL_EXTI_DisableEvent_32_63
  554. * @param ExtiLine This parameter can be a combination of the following values:
  555. * @arg @ref LL_EXTI_LINE_32
  556. * @arg @ref LL_EXTI_LINE_33
  557. * @arg @ref LL_EXTI_LINE_34(*)
  558. * @arg @ref LL_EXTI_LINE_35
  559. * @arg @ref LL_EXTI_LINE_36
  560. * @arg @ref LL_EXTI_LINE_37
  561. * @arg @ref LL_EXTI_LINE_38
  562. * @arg @ref LL_EXTI_LINE_39(*)
  563. * @arg @ref LL_EXTI_LINE_40(*)
  564. * @arg @ref LL_EXTI_LINE_ALL_32_63
  565. * @note (*): Available in some devices
  566. * @retval None
  567. */
  568. __STATIC_INLINE void LL_EXTI_DisableEvent_32_63(uint32_t ExtiLine)
  569. {
  570. CLEAR_BIT(EXTI->EMR2, ExtiLine);
  571. }
  572. /**
  573. * @brief Indicate if ExtiLine Event request is enabled for Lines in range 0 to 31
  574. * @rmtoll EMR1 EMx LL_EXTI_IsEnabledEvent_0_31
  575. * @param ExtiLine This parameter can be one of the following values:
  576. * @arg @ref LL_EXTI_LINE_0
  577. * @arg @ref LL_EXTI_LINE_1
  578. * @arg @ref LL_EXTI_LINE_2
  579. * @arg @ref LL_EXTI_LINE_3
  580. * @arg @ref LL_EXTI_LINE_4
  581. * @arg @ref LL_EXTI_LINE_5
  582. * @arg @ref LL_EXTI_LINE_6
  583. * @arg @ref LL_EXTI_LINE_7
  584. * @arg @ref LL_EXTI_LINE_8
  585. * @arg @ref LL_EXTI_LINE_9
  586. * @arg @ref LL_EXTI_LINE_10
  587. * @arg @ref LL_EXTI_LINE_11
  588. * @arg @ref LL_EXTI_LINE_12
  589. * @arg @ref LL_EXTI_LINE_13
  590. * @arg @ref LL_EXTI_LINE_14
  591. * @arg @ref LL_EXTI_LINE_15
  592. * @arg @ref LL_EXTI_LINE_16
  593. * @arg @ref LL_EXTI_LINE_17
  594. * @arg @ref LL_EXTI_LINE_18
  595. * @arg @ref LL_EXTI_LINE_19
  596. * @arg @ref LL_EXTI_LINE_20
  597. * @arg @ref LL_EXTI_LINE_21
  598. * @arg @ref LL_EXTI_LINE_22
  599. * @arg @ref LL_EXTI_LINE_23
  600. * @arg @ref LL_EXTI_LINE_24
  601. * @arg @ref LL_EXTI_LINE_25
  602. * @arg @ref LL_EXTI_LINE_26
  603. * @arg @ref LL_EXTI_LINE_27
  604. * @arg @ref LL_EXTI_LINE_28
  605. * @arg @ref LL_EXTI_LINE_29
  606. * @arg @ref LL_EXTI_LINE_30
  607. * @arg @ref LL_EXTI_LINE_31
  608. * @arg @ref LL_EXTI_LINE_ALL_0_31
  609. * @note Please check each device line mapping for EXTI Line availability
  610. * @retval State of bit (1 or 0).
  611. */
  612. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_0_31(uint32_t ExtiLine)
  613. {
  614. return ((READ_BIT(EXTI->EMR1, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  615. }
  616. /**
  617. * @brief Indicate if ExtiLine Event request is enabled for Lines in range 32 to 63
  618. * @rmtoll EMR2 EMx LL_EXTI_IsEnabledEvent_32_63
  619. * @param ExtiLine This parameter can be a combination of the following values:
  620. * @arg @ref LL_EXTI_LINE_32
  621. * @arg @ref LL_EXTI_LINE_33
  622. * @arg @ref LL_EXTI_LINE_34(*)
  623. * @arg @ref LL_EXTI_LINE_35
  624. * @arg @ref LL_EXTI_LINE_36
  625. * @arg @ref LL_EXTI_LINE_37
  626. * @arg @ref LL_EXTI_LINE_38
  627. * @arg @ref LL_EXTI_LINE_39(*)
  628. * @arg @ref LL_EXTI_LINE_40(*)
  629. * @arg @ref LL_EXTI_LINE_ALL_32_63
  630. * @note (*): Available in some devices
  631. * @retval State of bit (1 or 0).
  632. */
  633. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledEvent_32_63(uint32_t ExtiLine)
  634. {
  635. return ((READ_BIT(EXTI->EMR2, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  636. }
  637. /**
  638. * @}
  639. */
  640. /** @defgroup EXTI_LL_EF_Rising_Trigger_Management Rising_Trigger_Management
  641. * @{
  642. */
  643. /**
  644. * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 0 to 31
  645. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  646. * generated on these lines. If a rising edge on a configurable interrupt
  647. * line occurs during a write operation in the EXTI_RTSR register, the
  648. * pending bit is not set.
  649. * Rising and falling edge triggers can be set for
  650. * the same interrupt line. In this case, both generate a trigger
  651. * condition.
  652. * @rmtoll RTSR1 RTx LL_EXTI_EnableRisingTrig_0_31
  653. * @param ExtiLine This parameter can be a combination of the following values:
  654. * @arg @ref LL_EXTI_LINE_0
  655. * @arg @ref LL_EXTI_LINE_1
  656. * @arg @ref LL_EXTI_LINE_2
  657. * @arg @ref LL_EXTI_LINE_3
  658. * @arg @ref LL_EXTI_LINE_4
  659. * @arg @ref LL_EXTI_LINE_5
  660. * @arg @ref LL_EXTI_LINE_6
  661. * @arg @ref LL_EXTI_LINE_7
  662. * @arg @ref LL_EXTI_LINE_8
  663. * @arg @ref LL_EXTI_LINE_9
  664. * @arg @ref LL_EXTI_LINE_10
  665. * @arg @ref LL_EXTI_LINE_11
  666. * @arg @ref LL_EXTI_LINE_12
  667. * @arg @ref LL_EXTI_LINE_13
  668. * @arg @ref LL_EXTI_LINE_14
  669. * @arg @ref LL_EXTI_LINE_15
  670. * @arg @ref LL_EXTI_LINE_16
  671. * @arg @ref LL_EXTI_LINE_18
  672. * @arg @ref LL_EXTI_LINE_19
  673. * @arg @ref LL_EXTI_LINE_20
  674. * @arg @ref LL_EXTI_LINE_21
  675. * @arg @ref LL_EXTI_LINE_22
  676. * @arg @ref LL_EXTI_LINE_29
  677. * @arg @ref LL_EXTI_LINE_30
  678. * @arg @ref LL_EXTI_LINE_31
  679. * @note Please check each device line mapping for EXTI Line availability
  680. * @retval None
  681. */
  682. __STATIC_INLINE void LL_EXTI_EnableRisingTrig_0_31(uint32_t ExtiLine)
  683. {
  684. SET_BIT(EXTI->RTSR1, ExtiLine);
  685. }
  686. /**
  687. * @brief Enable ExtiLine Rising Edge Trigger for Lines in range 32 to 63
  688. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  689. * generated on these lines. If a rising edge on a configurable interrupt
  690. * line occurs during a write operation in the EXTI_RTSR register, the
  691. * pending bit is not set.Rising and falling edge triggers can be set for
  692. * the same interrupt line. In this case, both generate a trigger
  693. * condition.
  694. * @rmtoll RTSR2 RTx LL_EXTI_EnableRisingTrig_32_63
  695. * @param ExtiLine This parameter can be a combination of the following values:
  696. * @arg @ref LL_EXTI_LINE_35
  697. * @arg @ref LL_EXTI_LINE_36
  698. * @arg @ref LL_EXTI_LINE_37
  699. * @arg @ref LL_EXTI_LINE_38
  700. * @retval None
  701. */
  702. __STATIC_INLINE void LL_EXTI_EnableRisingTrig_32_63(uint32_t ExtiLine)
  703. {
  704. SET_BIT(EXTI->RTSR2, ExtiLine);
  705. }
  706. /**
  707. * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 0 to 31
  708. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  709. * generated on these lines. If a rising edge on a configurable interrupt
  710. * line occurs during a write operation in the EXTI_RTSR register, the
  711. * pending bit is not set.
  712. * Rising and falling edge triggers can be set for
  713. * the same interrupt line. In this case, both generate a trigger
  714. * condition.
  715. * @rmtoll RTSR1 RTx LL_EXTI_DisableRisingTrig_0_31
  716. * @param ExtiLine This parameter can be a combination of the following values:
  717. * @arg @ref LL_EXTI_LINE_0
  718. * @arg @ref LL_EXTI_LINE_1
  719. * @arg @ref LL_EXTI_LINE_2
  720. * @arg @ref LL_EXTI_LINE_3
  721. * @arg @ref LL_EXTI_LINE_4
  722. * @arg @ref LL_EXTI_LINE_5
  723. * @arg @ref LL_EXTI_LINE_6
  724. * @arg @ref LL_EXTI_LINE_7
  725. * @arg @ref LL_EXTI_LINE_8
  726. * @arg @ref LL_EXTI_LINE_9
  727. * @arg @ref LL_EXTI_LINE_10
  728. * @arg @ref LL_EXTI_LINE_11
  729. * @arg @ref LL_EXTI_LINE_12
  730. * @arg @ref LL_EXTI_LINE_13
  731. * @arg @ref LL_EXTI_LINE_14
  732. * @arg @ref LL_EXTI_LINE_15
  733. * @arg @ref LL_EXTI_LINE_16
  734. * @arg @ref LL_EXTI_LINE_18
  735. * @arg @ref LL_EXTI_LINE_19
  736. * @arg @ref LL_EXTI_LINE_20
  737. * @arg @ref LL_EXTI_LINE_21
  738. * @arg @ref LL_EXTI_LINE_22
  739. * @arg @ref LL_EXTI_LINE_29
  740. * @arg @ref LL_EXTI_LINE_30
  741. * @arg @ref LL_EXTI_LINE_31
  742. * @note Please check each device line mapping for EXTI Line availability
  743. * @retval None
  744. */
  745. __STATIC_INLINE void LL_EXTI_DisableRisingTrig_0_31(uint32_t ExtiLine)
  746. {
  747. CLEAR_BIT(EXTI->RTSR1, ExtiLine);
  748. }
  749. /**
  750. * @brief Disable ExtiLine Rising Edge Trigger for Lines in range 32 to 63
  751. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  752. * generated on these lines. If a rising edge on a configurable interrupt
  753. * line occurs during a write operation in the EXTI_RTSR register, the
  754. * pending bit is not set.
  755. * Rising and falling edge triggers can be set for
  756. * the same interrupt line. In this case, both generate a trigger
  757. * condition.
  758. * @rmtoll RTSR2 RTx LL_EXTI_DisableRisingTrig_32_63
  759. * @param ExtiLine This parameter can be a combination of the following values:
  760. * @arg @ref LL_EXTI_LINE_35
  761. * @arg @ref LL_EXTI_LINE_36
  762. * @arg @ref LL_EXTI_LINE_37
  763. * @arg @ref LL_EXTI_LINE_38
  764. * @retval None
  765. */
  766. __STATIC_INLINE void LL_EXTI_DisableRisingTrig_32_63(uint32_t ExtiLine)
  767. {
  768. CLEAR_BIT(EXTI->RTSR2, ExtiLine);
  769. }
  770. /**
  771. * @brief Check if rising edge trigger is enabled for Lines in range 0 to 31
  772. * @rmtoll RTSR1 RTx LL_EXTI_IsEnabledRisingTrig_0_31
  773. * @param ExtiLine This parameter can be a combination of the following values:
  774. * @arg @ref LL_EXTI_LINE_0
  775. * @arg @ref LL_EXTI_LINE_1
  776. * @arg @ref LL_EXTI_LINE_2
  777. * @arg @ref LL_EXTI_LINE_3
  778. * @arg @ref LL_EXTI_LINE_4
  779. * @arg @ref LL_EXTI_LINE_5
  780. * @arg @ref LL_EXTI_LINE_6
  781. * @arg @ref LL_EXTI_LINE_7
  782. * @arg @ref LL_EXTI_LINE_8
  783. * @arg @ref LL_EXTI_LINE_9
  784. * @arg @ref LL_EXTI_LINE_10
  785. * @arg @ref LL_EXTI_LINE_11
  786. * @arg @ref LL_EXTI_LINE_12
  787. * @arg @ref LL_EXTI_LINE_13
  788. * @arg @ref LL_EXTI_LINE_14
  789. * @arg @ref LL_EXTI_LINE_15
  790. * @arg @ref LL_EXTI_LINE_16
  791. * @arg @ref LL_EXTI_LINE_18
  792. * @arg @ref LL_EXTI_LINE_19
  793. * @arg @ref LL_EXTI_LINE_20
  794. * @arg @ref LL_EXTI_LINE_21
  795. * @arg @ref LL_EXTI_LINE_22
  796. * @arg @ref LL_EXTI_LINE_29
  797. * @arg @ref LL_EXTI_LINE_30
  798. * @arg @ref LL_EXTI_LINE_31
  799. * @note Please check each device line mapping for EXTI Line availability
  800. * @retval State of bit (1 or 0).
  801. */
  802. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_0_31(uint32_t ExtiLine)
  803. {
  804. return ((READ_BIT(EXTI->RTSR1, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  805. }
  806. /**
  807. * @brief Check if rising edge trigger is enabled for Lines in range 32 to 63
  808. * @rmtoll RTSR2 RTx LL_EXTI_IsEnabledRisingTrig_32_63
  809. * @param ExtiLine This parameter can be a combination of the following values:
  810. * @arg @ref LL_EXTI_LINE_35
  811. * @arg @ref LL_EXTI_LINE_36
  812. * @arg @ref LL_EXTI_LINE_37
  813. * @arg @ref LL_EXTI_LINE_38
  814. * @retval State of bit (1 or 0).
  815. */
  816. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledRisingTrig_32_63(uint32_t ExtiLine)
  817. {
  818. return ((READ_BIT(EXTI->RTSR2, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  819. }
  820. /**
  821. * @}
  822. */
  823. /** @defgroup EXTI_LL_EF_Falling_Trigger_Management Falling_Trigger_Management
  824. * @{
  825. */
  826. /**
  827. * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 0 to 31
  828. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  829. * generated on these lines. If a falling edge on a configurable interrupt
  830. * line occurs during a write operation in the EXTI_FTSR register, the
  831. * pending bit is not set.
  832. * Rising and falling edge triggers can be set for
  833. * the same interrupt line. In this case, both generate a trigger
  834. * condition.
  835. * @rmtoll FTSR1 FTx LL_EXTI_EnableFallingTrig_0_31
  836. * @param ExtiLine This parameter can be a combination of the following values:
  837. * @arg @ref LL_EXTI_LINE_0
  838. * @arg @ref LL_EXTI_LINE_1
  839. * @arg @ref LL_EXTI_LINE_2
  840. * @arg @ref LL_EXTI_LINE_3
  841. * @arg @ref LL_EXTI_LINE_4
  842. * @arg @ref LL_EXTI_LINE_5
  843. * @arg @ref LL_EXTI_LINE_6
  844. * @arg @ref LL_EXTI_LINE_7
  845. * @arg @ref LL_EXTI_LINE_8
  846. * @arg @ref LL_EXTI_LINE_9
  847. * @arg @ref LL_EXTI_LINE_10
  848. * @arg @ref LL_EXTI_LINE_11
  849. * @arg @ref LL_EXTI_LINE_12
  850. * @arg @ref LL_EXTI_LINE_13
  851. * @arg @ref LL_EXTI_LINE_14
  852. * @arg @ref LL_EXTI_LINE_15
  853. * @arg @ref LL_EXTI_LINE_16
  854. * @arg @ref LL_EXTI_LINE_18
  855. * @arg @ref LL_EXTI_LINE_19
  856. * @arg @ref LL_EXTI_LINE_20
  857. * @arg @ref LL_EXTI_LINE_21
  858. * @arg @ref LL_EXTI_LINE_22
  859. * @arg @ref LL_EXTI_LINE_29
  860. * @arg @ref LL_EXTI_LINE_30
  861. * @arg @ref LL_EXTI_LINE_31
  862. * @note Please check each device line mapping for EXTI Line availability
  863. * @retval None
  864. */
  865. __STATIC_INLINE void LL_EXTI_EnableFallingTrig_0_31(uint32_t ExtiLine)
  866. {
  867. SET_BIT(EXTI->FTSR1, ExtiLine);
  868. }
  869. /**
  870. * @brief Enable ExtiLine Falling Edge Trigger for Lines in range 32 to 63
  871. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  872. * generated on these lines. If a Falling edge on a configurable interrupt
  873. * line occurs during a write operation in the EXTI_FTSR register, the
  874. * pending bit is not set.
  875. * Rising and falling edge triggers can be set for
  876. * the same interrupt line. In this case, both generate a trigger
  877. * condition.
  878. * @rmtoll FTSR2 FTx LL_EXTI_EnableFallingTrig_32_63
  879. * @param ExtiLine This parameter can be a combination of the following values:
  880. * @arg @ref LL_EXTI_LINE_35
  881. * @arg @ref LL_EXTI_LINE_36
  882. * @arg @ref LL_EXTI_LINE_37
  883. * @arg @ref LL_EXTI_LINE_38
  884. * @retval None
  885. */
  886. __STATIC_INLINE void LL_EXTI_EnableFallingTrig_32_63(uint32_t ExtiLine)
  887. {
  888. SET_BIT(EXTI->FTSR2, ExtiLine);
  889. }
  890. /**
  891. * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 0 to 31
  892. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  893. * generated on these lines. If a Falling edge on a configurable interrupt
  894. * line occurs during a write operation in the EXTI_FTSR register, the
  895. * pending bit is not set.
  896. * Rising and falling edge triggers can be set for the same interrupt line.
  897. * In this case, both generate a trigger condition.
  898. * @rmtoll FTSR1 FTx LL_EXTI_DisableFallingTrig_0_31
  899. * @param ExtiLine This parameter can be a combination of the following values:
  900. * @arg @ref LL_EXTI_LINE_0
  901. * @arg @ref LL_EXTI_LINE_1
  902. * @arg @ref LL_EXTI_LINE_2
  903. * @arg @ref LL_EXTI_LINE_3
  904. * @arg @ref LL_EXTI_LINE_4
  905. * @arg @ref LL_EXTI_LINE_5
  906. * @arg @ref LL_EXTI_LINE_6
  907. * @arg @ref LL_EXTI_LINE_7
  908. * @arg @ref LL_EXTI_LINE_8
  909. * @arg @ref LL_EXTI_LINE_9
  910. * @arg @ref LL_EXTI_LINE_10
  911. * @arg @ref LL_EXTI_LINE_11
  912. * @arg @ref LL_EXTI_LINE_12
  913. * @arg @ref LL_EXTI_LINE_13
  914. * @arg @ref LL_EXTI_LINE_14
  915. * @arg @ref LL_EXTI_LINE_15
  916. * @arg @ref LL_EXTI_LINE_16
  917. * @arg @ref LL_EXTI_LINE_18
  918. * @arg @ref LL_EXTI_LINE_19
  919. * @arg @ref LL_EXTI_LINE_20
  920. * @arg @ref LL_EXTI_LINE_21
  921. * @arg @ref LL_EXTI_LINE_22
  922. * @arg @ref LL_EXTI_LINE_29
  923. * @arg @ref LL_EXTI_LINE_30
  924. * @arg @ref LL_EXTI_LINE_31
  925. * @note Please check each device line mapping for EXTI Line availability
  926. * @retval None
  927. */
  928. __STATIC_INLINE void LL_EXTI_DisableFallingTrig_0_31(uint32_t ExtiLine)
  929. {
  930. CLEAR_BIT(EXTI->FTSR1, ExtiLine);
  931. }
  932. /**
  933. * @brief Disable ExtiLine Falling Edge Trigger for Lines in range 32 to 63
  934. * @note The configurable wakeup lines are edge-triggered. No glitch must be
  935. * generated on these lines. If a Falling edge on a configurable interrupt
  936. * line occurs during a write operation in the EXTI_FTSR register, the
  937. * pending bit is not set.
  938. * Rising and falling edge triggers can be set for the same interrupt line.
  939. * In this case, both generate a trigger condition.
  940. * @rmtoll FTSR2 FTx LL_EXTI_DisableFallingTrig_32_63
  941. * @param ExtiLine This parameter can be a combination of the following values:
  942. * @arg @ref LL_EXTI_LINE_35
  943. * @arg @ref LL_EXTI_LINE_36
  944. * @arg @ref LL_EXTI_LINE_37
  945. * @arg @ref LL_EXTI_LINE_38
  946. * @retval None
  947. */
  948. __STATIC_INLINE void LL_EXTI_DisableFallingTrig_32_63(uint32_t ExtiLine)
  949. {
  950. CLEAR_BIT(EXTI->FTSR2, ExtiLine);
  951. }
  952. /**
  953. * @brief Check if falling edge trigger is enabled for Lines in range 0 to 31
  954. * @rmtoll FTSR1 FTx LL_EXTI_IsEnabledFallingTrig_0_31
  955. * @param ExtiLine This parameter can be a combination of the following values:
  956. * @arg @ref LL_EXTI_LINE_0
  957. * @arg @ref LL_EXTI_LINE_1
  958. * @arg @ref LL_EXTI_LINE_2
  959. * @arg @ref LL_EXTI_LINE_3
  960. * @arg @ref LL_EXTI_LINE_4
  961. * @arg @ref LL_EXTI_LINE_5
  962. * @arg @ref LL_EXTI_LINE_6
  963. * @arg @ref LL_EXTI_LINE_7
  964. * @arg @ref LL_EXTI_LINE_8
  965. * @arg @ref LL_EXTI_LINE_9
  966. * @arg @ref LL_EXTI_LINE_10
  967. * @arg @ref LL_EXTI_LINE_11
  968. * @arg @ref LL_EXTI_LINE_12
  969. * @arg @ref LL_EXTI_LINE_13
  970. * @arg @ref LL_EXTI_LINE_14
  971. * @arg @ref LL_EXTI_LINE_15
  972. * @arg @ref LL_EXTI_LINE_16
  973. * @arg @ref LL_EXTI_LINE_18
  974. * @arg @ref LL_EXTI_LINE_19
  975. * @arg @ref LL_EXTI_LINE_20
  976. * @arg @ref LL_EXTI_LINE_21
  977. * @arg @ref LL_EXTI_LINE_22
  978. * @arg @ref LL_EXTI_LINE_29
  979. * @arg @ref LL_EXTI_LINE_30
  980. * @arg @ref LL_EXTI_LINE_31
  981. * @note Please check each device line mapping for EXTI Line availability
  982. * @retval State of bit (1 or 0).
  983. */
  984. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_0_31(uint32_t ExtiLine)
  985. {
  986. return ((READ_BIT(EXTI->FTSR1, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  987. }
  988. /**
  989. * @brief Check if falling edge trigger is enabled for Lines in range 32 to 63
  990. * @rmtoll FTSR2 FTx LL_EXTI_IsEnabledFallingTrig_32_63
  991. * @param ExtiLine This parameter can be a combination of the following values:
  992. * @arg @ref LL_EXTI_LINE_35
  993. * @arg @ref LL_EXTI_LINE_36
  994. * @arg @ref LL_EXTI_LINE_37
  995. * @arg @ref LL_EXTI_LINE_38
  996. * @retval State of bit (1 or 0).
  997. */
  998. __STATIC_INLINE uint32_t LL_EXTI_IsEnabledFallingTrig_32_63(uint32_t ExtiLine)
  999. {
  1000. return ((READ_BIT(EXTI->FTSR2, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  1001. }
  1002. /**
  1003. * @}
  1004. */
  1005. /** @defgroup EXTI_LL_EF_Software_Interrupt_Management Software_Interrupt_Management
  1006. * @{
  1007. */
  1008. /**
  1009. * @brief Generate a software Interrupt Event for Lines in range 0 to 31
  1010. * @note If the interrupt is enabled on this line in the EXTI_IMR1, writing a 1 to
  1011. * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR1
  1012. * resulting in an interrupt request generation.
  1013. * This bit is cleared by clearing the corresponding bit in the EXTI_PR1
  1014. * register (by writing a 1 into the bit)
  1015. * @rmtoll SWIER1 SWIx LL_EXTI_GenerateSWI_0_31
  1016. * @param ExtiLine This parameter can be a combination of the following values:
  1017. * @arg @ref LL_EXTI_LINE_0
  1018. * @arg @ref LL_EXTI_LINE_1
  1019. * @arg @ref LL_EXTI_LINE_2
  1020. * @arg @ref LL_EXTI_LINE_3
  1021. * @arg @ref LL_EXTI_LINE_4
  1022. * @arg @ref LL_EXTI_LINE_5
  1023. * @arg @ref LL_EXTI_LINE_6
  1024. * @arg @ref LL_EXTI_LINE_7
  1025. * @arg @ref LL_EXTI_LINE_8
  1026. * @arg @ref LL_EXTI_LINE_9
  1027. * @arg @ref LL_EXTI_LINE_10
  1028. * @arg @ref LL_EXTI_LINE_11
  1029. * @arg @ref LL_EXTI_LINE_12
  1030. * @arg @ref LL_EXTI_LINE_13
  1031. * @arg @ref LL_EXTI_LINE_14
  1032. * @arg @ref LL_EXTI_LINE_15
  1033. * @arg @ref LL_EXTI_LINE_16
  1034. * @arg @ref LL_EXTI_LINE_18
  1035. * @arg @ref LL_EXTI_LINE_19
  1036. * @arg @ref LL_EXTI_LINE_20
  1037. * @arg @ref LL_EXTI_LINE_21
  1038. * @arg @ref LL_EXTI_LINE_22
  1039. * @arg @ref LL_EXTI_LINE_29
  1040. * @arg @ref LL_EXTI_LINE_30
  1041. * @arg @ref LL_EXTI_LINE_31
  1042. * @note Please check each device line mapping for EXTI Line availability
  1043. * @retval None
  1044. */
  1045. __STATIC_INLINE void LL_EXTI_GenerateSWI_0_31(uint32_t ExtiLine)
  1046. {
  1047. SET_BIT(EXTI->SWIER1, ExtiLine);
  1048. }
  1049. /**
  1050. * @brief Generate a software Interrupt Event for Lines in range 32 to 63
  1051. * @note If the interrupt is enabled on this line in the EXTI_IMR2, writing a 1 to
  1052. * this bit when it is at '0' sets the corresponding pending bit in EXTI_PR2
  1053. * resulting in an interrupt request generation.
  1054. * This bit is cleared by clearing the corresponding bit in the EXTI_PR2
  1055. * register (by writing a 1 into the bit)
  1056. * @rmtoll SWIER2 SWIx LL_EXTI_GenerateSWI_32_63
  1057. * @param ExtiLine This parameter can be a combination of the following values:
  1058. * @arg @ref LL_EXTI_LINE_35
  1059. * @arg @ref LL_EXTI_LINE_36
  1060. * @arg @ref LL_EXTI_LINE_37
  1061. * @arg @ref LL_EXTI_LINE_38
  1062. * @retval None
  1063. */
  1064. __STATIC_INLINE void LL_EXTI_GenerateSWI_32_63(uint32_t ExtiLine)
  1065. {
  1066. SET_BIT(EXTI->SWIER2, ExtiLine);
  1067. }
  1068. /**
  1069. * @}
  1070. */
  1071. /** @defgroup EXTI_LL_EF_Flag_Management Flag_Management
  1072. * @{
  1073. */
  1074. /**
  1075. * @brief Check if the ExtLine Flag is set or not for Lines in range 0 to 31
  1076. * @note This bit is set when the selected edge event arrives on the interrupt
  1077. * line. This bit is cleared by writing a 1 to the bit.
  1078. * @rmtoll PR1 PIFx LL_EXTI_IsActiveFlag_0_31
  1079. * @param ExtiLine This parameter can be a combination of the following values:
  1080. * @arg @ref LL_EXTI_LINE_0
  1081. * @arg @ref LL_EXTI_LINE_1
  1082. * @arg @ref LL_EXTI_LINE_2
  1083. * @arg @ref LL_EXTI_LINE_3
  1084. * @arg @ref LL_EXTI_LINE_4
  1085. * @arg @ref LL_EXTI_LINE_5
  1086. * @arg @ref LL_EXTI_LINE_6
  1087. * @arg @ref LL_EXTI_LINE_7
  1088. * @arg @ref LL_EXTI_LINE_8
  1089. * @arg @ref LL_EXTI_LINE_9
  1090. * @arg @ref LL_EXTI_LINE_10
  1091. * @arg @ref LL_EXTI_LINE_11
  1092. * @arg @ref LL_EXTI_LINE_12
  1093. * @arg @ref LL_EXTI_LINE_13
  1094. * @arg @ref LL_EXTI_LINE_14
  1095. * @arg @ref LL_EXTI_LINE_15
  1096. * @arg @ref LL_EXTI_LINE_16
  1097. * @arg @ref LL_EXTI_LINE_18
  1098. * @arg @ref LL_EXTI_LINE_19
  1099. * @arg @ref LL_EXTI_LINE_20
  1100. * @arg @ref LL_EXTI_LINE_21
  1101. * @arg @ref LL_EXTI_LINE_22
  1102. * @arg @ref LL_EXTI_LINE_29
  1103. * @arg @ref LL_EXTI_LINE_30
  1104. * @arg @ref LL_EXTI_LINE_31
  1105. * @note Please check each device line mapping for EXTI Line availability
  1106. * @retval State of bit (1 or 0).
  1107. */
  1108. __STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_0_31(uint32_t ExtiLine)
  1109. {
  1110. return ((READ_BIT(EXTI->PR1, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  1111. }
  1112. /**
  1113. * @brief Check if the ExtLine Flag is set or not for Lines in range 32 to 63
  1114. * @note This bit is set when the selected edge event arrives on the interrupt
  1115. * line. This bit is cleared by writing a 1 to the bit.
  1116. * @rmtoll PR2 PIFx LL_EXTI_IsActiveFlag_32_63
  1117. * @param ExtiLine This parameter can be a combination of the following values:
  1118. * @arg @ref LL_EXTI_LINE_35
  1119. * @arg @ref LL_EXTI_LINE_36
  1120. * @arg @ref LL_EXTI_LINE_37
  1121. * @arg @ref LL_EXTI_LINE_38
  1122. * @retval State of bit (1 or 0).
  1123. */
  1124. __STATIC_INLINE uint32_t LL_EXTI_IsActiveFlag_32_63(uint32_t ExtiLine)
  1125. {
  1126. return ((READ_BIT(EXTI->PR2, ExtiLine) == (ExtiLine)) ? 1UL : 0UL);
  1127. }
  1128. /**
  1129. * @brief Read ExtLine Combination Flag for Lines in range 0 to 31
  1130. * @note This bit is set when the selected edge event arrives on the interrupt
  1131. * line. This bit is cleared by writing a 1 to the bit.
  1132. * @rmtoll PR1 PIFx LL_EXTI_ReadFlag_0_31
  1133. * @param ExtiLine This parameter can be a combination of the following values:
  1134. * @arg @ref LL_EXTI_LINE_0
  1135. * @arg @ref LL_EXTI_LINE_1
  1136. * @arg @ref LL_EXTI_LINE_2
  1137. * @arg @ref LL_EXTI_LINE_3
  1138. * @arg @ref LL_EXTI_LINE_4
  1139. * @arg @ref LL_EXTI_LINE_5
  1140. * @arg @ref LL_EXTI_LINE_6
  1141. * @arg @ref LL_EXTI_LINE_7
  1142. * @arg @ref LL_EXTI_LINE_8
  1143. * @arg @ref LL_EXTI_LINE_9
  1144. * @arg @ref LL_EXTI_LINE_10
  1145. * @arg @ref LL_EXTI_LINE_11
  1146. * @arg @ref LL_EXTI_LINE_12
  1147. * @arg @ref LL_EXTI_LINE_13
  1148. * @arg @ref LL_EXTI_LINE_14
  1149. * @arg @ref LL_EXTI_LINE_15
  1150. * @arg @ref LL_EXTI_LINE_16
  1151. * @arg @ref LL_EXTI_LINE_18
  1152. * @arg @ref LL_EXTI_LINE_19
  1153. * @arg @ref LL_EXTI_LINE_20
  1154. * @arg @ref LL_EXTI_LINE_21
  1155. * @arg @ref LL_EXTI_LINE_22
  1156. * @arg @ref LL_EXTI_LINE_29
  1157. * @arg @ref LL_EXTI_LINE_30
  1158. * @arg @ref LL_EXTI_LINE_31
  1159. * @note Please check each device line mapping for EXTI Line availability
  1160. * @retval @note This bit is set when the selected edge event arrives on the interrupt
  1161. */
  1162. __STATIC_INLINE uint32_t LL_EXTI_ReadFlag_0_31(uint32_t ExtiLine)
  1163. {
  1164. return (uint32_t)(READ_BIT(EXTI->PR1, ExtiLine));
  1165. }
  1166. /**
  1167. * @brief Read ExtLine Combination Flag for Lines in range 32 to 63
  1168. * @note This bit is set when the selected edge event arrives on the interrupt
  1169. * line. This bit is cleared by writing a 1 to the bit.
  1170. * @rmtoll PR2 PIFx LL_EXTI_ReadFlag_32_63
  1171. * @param ExtiLine This parameter can be a combination of the following values:
  1172. * @arg @ref LL_EXTI_LINE_35
  1173. * @arg @ref LL_EXTI_LINE_36
  1174. * @arg @ref LL_EXTI_LINE_37
  1175. * @arg @ref LL_EXTI_LINE_38
  1176. * @retval @note This bit is set when the selected edge event arrives on the interrupt
  1177. */
  1178. __STATIC_INLINE uint32_t LL_EXTI_ReadFlag_32_63(uint32_t ExtiLine)
  1179. {
  1180. return (uint32_t)(READ_BIT(EXTI->PR2, ExtiLine));
  1181. }
  1182. /**
  1183. * @brief Clear ExtLine Flags for Lines in range 0 to 31
  1184. * @note This bit is set when the selected edge event arrives on the interrupt
  1185. * line. This bit is cleared by writing a 1 to the bit.
  1186. * @rmtoll PR1 PIFx LL_EXTI_ClearFlag_0_31
  1187. * @param ExtiLine This parameter can be a combination of the following values:
  1188. * @arg @ref LL_EXTI_LINE_0
  1189. * @arg @ref LL_EXTI_LINE_1
  1190. * @arg @ref LL_EXTI_LINE_2
  1191. * @arg @ref LL_EXTI_LINE_3
  1192. * @arg @ref LL_EXTI_LINE_4
  1193. * @arg @ref LL_EXTI_LINE_5
  1194. * @arg @ref LL_EXTI_LINE_6
  1195. * @arg @ref LL_EXTI_LINE_7
  1196. * @arg @ref LL_EXTI_LINE_8
  1197. * @arg @ref LL_EXTI_LINE_9
  1198. * @arg @ref LL_EXTI_LINE_10
  1199. * @arg @ref LL_EXTI_LINE_11
  1200. * @arg @ref LL_EXTI_LINE_12
  1201. * @arg @ref LL_EXTI_LINE_13
  1202. * @arg @ref LL_EXTI_LINE_14
  1203. * @arg @ref LL_EXTI_LINE_15
  1204. * @arg @ref LL_EXTI_LINE_16
  1205. * @arg @ref LL_EXTI_LINE_18
  1206. * @arg @ref LL_EXTI_LINE_19
  1207. * @arg @ref LL_EXTI_LINE_20
  1208. * @arg @ref LL_EXTI_LINE_21
  1209. * @arg @ref LL_EXTI_LINE_22
  1210. * @arg @ref LL_EXTI_LINE_29
  1211. * @arg @ref LL_EXTI_LINE_30
  1212. * @arg @ref LL_EXTI_LINE_31
  1213. * @note Please check each device line mapping for EXTI Line availability
  1214. * @retval None
  1215. */
  1216. __STATIC_INLINE void LL_EXTI_ClearFlag_0_31(uint32_t ExtiLine)
  1217. {
  1218. WRITE_REG(EXTI->PR1, ExtiLine);
  1219. }
  1220. /**
  1221. * @brief Clear ExtLine Flags for Lines in range 32 to 63
  1222. * @note This bit is set when the selected edge event arrives on the interrupt
  1223. * line. This bit is cleared by writing a 1 to the bit.
  1224. * @rmtoll PR2 PIFx LL_EXTI_ClearFlag_32_63
  1225. * @param ExtiLine This parameter can be a combination of the following values:
  1226. * @arg @ref LL_EXTI_LINE_35
  1227. * @arg @ref LL_EXTI_LINE_36
  1228. * @arg @ref LL_EXTI_LINE_37
  1229. * @arg @ref LL_EXTI_LINE_38
  1230. * @retval None
  1231. */
  1232. __STATIC_INLINE void LL_EXTI_ClearFlag_32_63(uint32_t ExtiLine)
  1233. {
  1234. WRITE_REG(EXTI->PR2, ExtiLine);
  1235. }
  1236. /**
  1237. * @}
  1238. */
  1239. #if defined(USE_FULL_LL_DRIVER)
  1240. /** @defgroup EXTI_LL_EF_Init Initialization and de-initialization functions
  1241. * @{
  1242. */
  1243. uint32_t LL_EXTI_Init(LL_EXTI_InitTypeDef *EXTI_InitStruct);
  1244. uint32_t LL_EXTI_DeInit(void);
  1245. void LL_EXTI_StructInit(LL_EXTI_InitTypeDef *EXTI_InitStruct);
  1246. /**
  1247. * @}
  1248. */
  1249. #endif /* USE_FULL_LL_DRIVER */
  1250. /**
  1251. * @}
  1252. */
  1253. /**
  1254. * @}
  1255. */
  1256. #endif /* EXTI */
  1257. /**
  1258. * @}
  1259. */
  1260. #ifdef __cplusplus
  1261. }
  1262. #endif
  1263. #endif /* STM32L4xx_LL_EXTI_H */