stm32l4xx_ll_exti.h 52 KB

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