inport from local

Dependents:   Hobbyking_Cheetah_0511

Committer:
NYX
Date:
Mon Mar 16 06:35:48 2020 +0000
Revision:
0:85b3fd62ea1a
reinport to mbed;

Who changed what in which revision?

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