stm32f3xx_ll_exti.h 52 KB

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