stm32f7xx_ll_exti.h 34 KB

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