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