stm32l4xx_ll_exti.h 50 KB

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