TUKS MCU Introductory course / TUKS-COURSE-TIMER
Committer:
elmot
Date:
Fri Feb 24 21:13:56 2017 +0000
Revision:
1:d0dfbce63a89
Ready-to-copy

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elmot 1:d0dfbce63a89 1 /**
elmot 1:d0dfbce63a89 2 ******************************************************************************
elmot 1:d0dfbce63a89 3 * @file stm32l4xx_ll_exti.c
elmot 1:d0dfbce63a89 4 * @author MCD Application Team
elmot 1:d0dfbce63a89 5 * @version V1.5.1
elmot 1:d0dfbce63a89 6 * @date 31-May-2016
elmot 1:d0dfbce63a89 7 * @brief EXTI LL module driver.
elmot 1:d0dfbce63a89 8 ******************************************************************************
elmot 1:d0dfbce63a89 9 * @attention
elmot 1:d0dfbce63a89 10 *
elmot 1:d0dfbce63a89 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
elmot 1:d0dfbce63a89 12 *
elmot 1:d0dfbce63a89 13 * Redistribution and use in source and binary forms, with or without modification,
elmot 1:d0dfbce63a89 14 * are permitted provided that the following conditions are met:
elmot 1:d0dfbce63a89 15 * 1. Redistributions of source code must retain the above copyright notice,
elmot 1:d0dfbce63a89 16 * this list of conditions and the following disclaimer.
elmot 1:d0dfbce63a89 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
elmot 1:d0dfbce63a89 18 * this list of conditions and the following disclaimer in the documentation
elmot 1:d0dfbce63a89 19 * and/or other materials provided with the distribution.
elmot 1:d0dfbce63a89 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
elmot 1:d0dfbce63a89 21 * may be used to endorse or promote products derived from this software
elmot 1:d0dfbce63a89 22 * without specific prior written permission.
elmot 1:d0dfbce63a89 23 *
elmot 1:d0dfbce63a89 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
elmot 1:d0dfbce63a89 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
elmot 1:d0dfbce63a89 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
elmot 1:d0dfbce63a89 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
elmot 1:d0dfbce63a89 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
elmot 1:d0dfbce63a89 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
elmot 1:d0dfbce63a89 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
elmot 1:d0dfbce63a89 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
elmot 1:d0dfbce63a89 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
elmot 1:d0dfbce63a89 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
elmot 1:d0dfbce63a89 34 *
elmot 1:d0dfbce63a89 35 ******************************************************************************
elmot 1:d0dfbce63a89 36 */
elmot 1:d0dfbce63a89 37 #if defined(USE_FULL_LL_DRIVER)
elmot 1:d0dfbce63a89 38
elmot 1:d0dfbce63a89 39 /* Includes ------------------------------------------------------------------*/
elmot 1:d0dfbce63a89 40 #include "stm32l4xx_ll_exti.h"
elmot 1:d0dfbce63a89 41 #ifdef USE_FULL_ASSERT
elmot 1:d0dfbce63a89 42 #include "stm32_assert.h"
elmot 1:d0dfbce63a89 43 #else
elmot 1:d0dfbce63a89 44 #define assert_param(expr) ((void)0U)
elmot 1:d0dfbce63a89 45 #endif
elmot 1:d0dfbce63a89 46
elmot 1:d0dfbce63a89 47 /** @addtogroup STM32L4xx_LL_Driver
elmot 1:d0dfbce63a89 48 * @{
elmot 1:d0dfbce63a89 49 */
elmot 1:d0dfbce63a89 50
elmot 1:d0dfbce63a89 51 #if defined (EXTI)
elmot 1:d0dfbce63a89 52
elmot 1:d0dfbce63a89 53 /** @defgroup EXTI_LL EXTI
elmot 1:d0dfbce63a89 54 * @{
elmot 1:d0dfbce63a89 55 */
elmot 1:d0dfbce63a89 56
elmot 1:d0dfbce63a89 57 /* Private types -------------------------------------------------------------*/
elmot 1:d0dfbce63a89 58 /* Private variables ---------------------------------------------------------*/
elmot 1:d0dfbce63a89 59 /* Private constants ---------------------------------------------------------*/
elmot 1:d0dfbce63a89 60 /* Private macros ------------------------------------------------------------*/
elmot 1:d0dfbce63a89 61 /** @addtogroup EXTI_LL_Private_Macros
elmot 1:d0dfbce63a89 62 * @{
elmot 1:d0dfbce63a89 63 */
elmot 1:d0dfbce63a89 64
elmot 1:d0dfbce63a89 65 #define IS_LL_EXTI_LINE_0_31(__VALUE__) (((__VALUE__) & ~LL_EXTI_LINE_ALL_0_31) == 0x00000000U)
elmot 1:d0dfbce63a89 66 #define IS_LL_EXTI_LINE_32_63(__VALUE__) (((__VALUE__) & ~LL_EXTI_LINE_ALL_32_63) == 0x00000000U)
elmot 1:d0dfbce63a89 67
elmot 1:d0dfbce63a89 68 #define IS_LL_EXTI_MODE(__VALUE__) (((__VALUE__) == LL_EXTI_MODE_IT) \
elmot 1:d0dfbce63a89 69 || ((__VALUE__) == LL_EXTI_MODE_EVENT) \
elmot 1:d0dfbce63a89 70 || ((__VALUE__) == LL_EXTI_MODE_IT_EVENT))
elmot 1:d0dfbce63a89 71
elmot 1:d0dfbce63a89 72
elmot 1:d0dfbce63a89 73 #define IS_LL_EXTI_TRIGGER(__VALUE__) (((__VALUE__) == LL_EXTI_TRIGGER_NONE) \
elmot 1:d0dfbce63a89 74 || ((__VALUE__) == LL_EXTI_TRIGGER_RISING) \
elmot 1:d0dfbce63a89 75 || ((__VALUE__) == LL_EXTI_TRIGGER_FALLING) \
elmot 1:d0dfbce63a89 76 || ((__VALUE__) == LL_EXTI_TRIGGER_RISING_FALLING))
elmot 1:d0dfbce63a89 77
elmot 1:d0dfbce63a89 78 /**
elmot 1:d0dfbce63a89 79 * @}
elmot 1:d0dfbce63a89 80 */
elmot 1:d0dfbce63a89 81
elmot 1:d0dfbce63a89 82 /* Private function prototypes -----------------------------------------------*/
elmot 1:d0dfbce63a89 83
elmot 1:d0dfbce63a89 84 /* Exported functions --------------------------------------------------------*/
elmot 1:d0dfbce63a89 85 /** @addtogroup EXTI_LL_Exported_Functions
elmot 1:d0dfbce63a89 86 * @{
elmot 1:d0dfbce63a89 87 */
elmot 1:d0dfbce63a89 88
elmot 1:d0dfbce63a89 89 /** @addtogroup EXTI_LL_EF_Init
elmot 1:d0dfbce63a89 90 * @{
elmot 1:d0dfbce63a89 91 */
elmot 1:d0dfbce63a89 92
elmot 1:d0dfbce63a89 93 /**
elmot 1:d0dfbce63a89 94 * @brief De-initialize the EXTI registers to their default reset values.
elmot 1:d0dfbce63a89 95 * @retval An ErrorStatus enumeration value:
elmot 1:d0dfbce63a89 96 * - SUCCESS: EXTI registers are de-initialized
elmot 1:d0dfbce63a89 97 * - ERROR: not applicable
elmot 1:d0dfbce63a89 98 */
elmot 1:d0dfbce63a89 99 uint32_t LL_EXTI_DeInit(void)
elmot 1:d0dfbce63a89 100 {
elmot 1:d0dfbce63a89 101 /* Interrupt mask register set to default reset values */
elmot 1:d0dfbce63a89 102 LL_EXTI_WriteReg(IMR1, 0xFF820000U);
elmot 1:d0dfbce63a89 103 /* Event mask register set to default reset values */
elmot 1:d0dfbce63a89 104 LL_EXTI_WriteReg(EMR1, 0x00000000U);
elmot 1:d0dfbce63a89 105 /* Rising Trigger selection register set to default reset values */
elmot 1:d0dfbce63a89 106 LL_EXTI_WriteReg(RTSR1, 0x00000000U);
elmot 1:d0dfbce63a89 107 /* Falling Trigger selection register set to default reset values */
elmot 1:d0dfbce63a89 108 LL_EXTI_WriteReg(FTSR1, 0x00000000U);
elmot 1:d0dfbce63a89 109 /* Software interrupt event register set to default reset values */
elmot 1:d0dfbce63a89 110 LL_EXTI_WriteReg(SWIER1, 0x00000000U);
elmot 1:d0dfbce63a89 111 /* Pending register set to default reset values */
elmot 1:d0dfbce63a89 112 LL_EXTI_WriteReg(PR1, 0x007DFFFFU);
elmot 1:d0dfbce63a89 113
elmot 1:d0dfbce63a89 114 /* Interrupt mask register 2 set to default reset values */
elmot 1:d0dfbce63a89 115 LL_EXTI_WriteReg(IMR2, 0x00000087U);
elmot 1:d0dfbce63a89 116 /* Event mask register 2 set to default reset values */
elmot 1:d0dfbce63a89 117 LL_EXTI_WriteReg(EMR2, 0x00000000U);
elmot 1:d0dfbce63a89 118 /* Rising Trigger selection register 2 set to default reset values */
elmot 1:d0dfbce63a89 119 LL_EXTI_WriteReg(RTSR2, 0x00000000U);
elmot 1:d0dfbce63a89 120 /* Falling Trigger selection register 2 set to default reset values */
elmot 1:d0dfbce63a89 121 LL_EXTI_WriteReg(FTSR2, 0x00000000U);
elmot 1:d0dfbce63a89 122 /* Software interrupt event register 2 set to default reset values */
elmot 1:d0dfbce63a89 123 LL_EXTI_WriteReg(SWIER2, 0x00000000U);
elmot 1:d0dfbce63a89 124 /* Pending register 2 set to default reset values */
elmot 1:d0dfbce63a89 125 LL_EXTI_WriteReg(PR2, 0x00000078U);
elmot 1:d0dfbce63a89 126
elmot 1:d0dfbce63a89 127 return SUCCESS;
elmot 1:d0dfbce63a89 128 }
elmot 1:d0dfbce63a89 129
elmot 1:d0dfbce63a89 130 /**
elmot 1:d0dfbce63a89 131 * @brief Initialize the EXTI registers according to the specified parameters in EXTI_InitStruct.
elmot 1:d0dfbce63a89 132 * @param EXTI_InitStruct pointer to a @ref LL_EXTI_InitTypeDef structure.
elmot 1:d0dfbce63a89 133 * @retval An ErrorStatus enumeration value:
elmot 1:d0dfbce63a89 134 * - SUCCESS: EXTI registers are initialized
elmot 1:d0dfbce63a89 135 * - ERROR: not applicable
elmot 1:d0dfbce63a89 136 */
elmot 1:d0dfbce63a89 137 uint32_t LL_EXTI_Init(LL_EXTI_InitTypeDef *EXTI_InitStruct)
elmot 1:d0dfbce63a89 138 {
elmot 1:d0dfbce63a89 139 ErrorStatus status = SUCCESS;
elmot 1:d0dfbce63a89 140 /* Check the parameters */
elmot 1:d0dfbce63a89 141 assert_param(IS_LL_EXTI_LINE_0_31(EXTI_InitStruct->Line_0_31));
elmot 1:d0dfbce63a89 142 assert_param(IS_LL_EXTI_LINE_32_63(EXTI_InitStruct->Line_32_63));
elmot 1:d0dfbce63a89 143 assert_param(IS_FUNCTIONAL_STATE(EXTI_InitStruct->LineCommand));
elmot 1:d0dfbce63a89 144 assert_param(IS_LL_EXTI_MODE(EXTI_InitStruct->Mode));
elmot 1:d0dfbce63a89 145
elmot 1:d0dfbce63a89 146 /* ENABLE LineCommand */
elmot 1:d0dfbce63a89 147 if (EXTI_InitStruct->LineCommand != DISABLE)
elmot 1:d0dfbce63a89 148 {
elmot 1:d0dfbce63a89 149 assert_param(IS_LL_EXTI_TRIGGER(EXTI_InitStruct->Trigger));
elmot 1:d0dfbce63a89 150
elmot 1:d0dfbce63a89 151 /* Configure EXTI Lines in range from 0 to 31 */
elmot 1:d0dfbce63a89 152 if (EXTI_InitStruct->Line_0_31 != LL_EXTI_LINE_NONE)
elmot 1:d0dfbce63a89 153 {
elmot 1:d0dfbce63a89 154 switch (EXTI_InitStruct->Mode)
elmot 1:d0dfbce63a89 155 {
elmot 1:d0dfbce63a89 156 case LL_EXTI_MODE_IT:
elmot 1:d0dfbce63a89 157 /* First Disable Event on provided Lines */
elmot 1:d0dfbce63a89 158 LL_EXTI_DisableEvent_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 159 /* Then Enable IT on provided Lines */
elmot 1:d0dfbce63a89 160 LL_EXTI_EnableIT_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 161 break;
elmot 1:d0dfbce63a89 162 case LL_EXTI_MODE_EVENT:
elmot 1:d0dfbce63a89 163 /* First Disable IT on provided Lines */
elmot 1:d0dfbce63a89 164 LL_EXTI_DisableIT_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 165 /* Then Enable Event on provided Lines */
elmot 1:d0dfbce63a89 166 LL_EXTI_EnableEvent_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 167 break;
elmot 1:d0dfbce63a89 168 case LL_EXTI_MODE_IT_EVENT:
elmot 1:d0dfbce63a89 169 /* Directly Enable IT & Event on provided Lines */
elmot 1:d0dfbce63a89 170 LL_EXTI_EnableIT_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 171 LL_EXTI_EnableEvent_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 172 break;
elmot 1:d0dfbce63a89 173 default:
elmot 1:d0dfbce63a89 174 status = ERROR;
elmot 1:d0dfbce63a89 175 break;
elmot 1:d0dfbce63a89 176 }
elmot 1:d0dfbce63a89 177 if (EXTI_InitStruct->Trigger != LL_EXTI_TRIGGER_NONE)
elmot 1:d0dfbce63a89 178 {
elmot 1:d0dfbce63a89 179 switch (EXTI_InitStruct->Trigger)
elmot 1:d0dfbce63a89 180 {
elmot 1:d0dfbce63a89 181 case LL_EXTI_TRIGGER_RISING:
elmot 1:d0dfbce63a89 182 /* First Disable Falling Trigger on provided Lines */
elmot 1:d0dfbce63a89 183 LL_EXTI_DisableFallingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 184 /* Then Enable Rising Trigger on provided Lines */
elmot 1:d0dfbce63a89 185 LL_EXTI_EnableRisingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 186 break;
elmot 1:d0dfbce63a89 187 case LL_EXTI_TRIGGER_FALLING:
elmot 1:d0dfbce63a89 188 /* First Disable Rising Trigger on provided Lines */
elmot 1:d0dfbce63a89 189 LL_EXTI_DisableRisingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 190 /* Then Enable Falling Trigger on provided Lines */
elmot 1:d0dfbce63a89 191 LL_EXTI_EnableFallingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 192 break;
elmot 1:d0dfbce63a89 193 case LL_EXTI_TRIGGER_RISING_FALLING:
elmot 1:d0dfbce63a89 194 LL_EXTI_EnableRisingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 195 LL_EXTI_EnableFallingTrig_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 196 break;
elmot 1:d0dfbce63a89 197 default:
elmot 1:d0dfbce63a89 198 status = ERROR;
elmot 1:d0dfbce63a89 199 break;
elmot 1:d0dfbce63a89 200 }
elmot 1:d0dfbce63a89 201 }
elmot 1:d0dfbce63a89 202 }
elmot 1:d0dfbce63a89 203 /* Configure EXTI Lines in range from 32 to 63 */
elmot 1:d0dfbce63a89 204 if (EXTI_InitStruct->Line_32_63 != LL_EXTI_LINE_NONE)
elmot 1:d0dfbce63a89 205 {
elmot 1:d0dfbce63a89 206 switch (EXTI_InitStruct->Mode)
elmot 1:d0dfbce63a89 207 {
elmot 1:d0dfbce63a89 208 case LL_EXTI_MODE_IT:
elmot 1:d0dfbce63a89 209 /* First Disable Event on provided Lines */
elmot 1:d0dfbce63a89 210 LL_EXTI_DisableEvent_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 211 /* Then Enable IT on provided Lines */
elmot 1:d0dfbce63a89 212 LL_EXTI_EnableIT_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 213 break;
elmot 1:d0dfbce63a89 214 case LL_EXTI_MODE_EVENT:
elmot 1:d0dfbce63a89 215 /* First Disable IT on provided Lines */
elmot 1:d0dfbce63a89 216 LL_EXTI_DisableIT_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 217 /* Then Enable Event on provided Lines */
elmot 1:d0dfbce63a89 218 LL_EXTI_EnableEvent_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 219 break;
elmot 1:d0dfbce63a89 220 case LL_EXTI_MODE_IT_EVENT:
elmot 1:d0dfbce63a89 221 /* Directly Enable IT & Event on provided Lines */
elmot 1:d0dfbce63a89 222 LL_EXTI_EnableIT_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 223 LL_EXTI_EnableEvent_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 224 break;
elmot 1:d0dfbce63a89 225 default:
elmot 1:d0dfbce63a89 226 status = ERROR;
elmot 1:d0dfbce63a89 227 break;
elmot 1:d0dfbce63a89 228 }
elmot 1:d0dfbce63a89 229 if (EXTI_InitStruct->Trigger != LL_EXTI_TRIGGER_NONE)
elmot 1:d0dfbce63a89 230 {
elmot 1:d0dfbce63a89 231 switch (EXTI_InitStruct->Trigger)
elmot 1:d0dfbce63a89 232 {
elmot 1:d0dfbce63a89 233 case LL_EXTI_TRIGGER_RISING:
elmot 1:d0dfbce63a89 234 /* First Disable Falling Trigger on provided Lines */
elmot 1:d0dfbce63a89 235 LL_EXTI_DisableFallingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 236 /* Then Enable IT on provided Lines */
elmot 1:d0dfbce63a89 237 LL_EXTI_EnableRisingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 238 break;
elmot 1:d0dfbce63a89 239 case LL_EXTI_TRIGGER_FALLING:
elmot 1:d0dfbce63a89 240 /* First Disable Rising Trigger on provided Lines */
elmot 1:d0dfbce63a89 241 LL_EXTI_DisableRisingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 242 /* Then Enable Falling Trigger on provided Lines */
elmot 1:d0dfbce63a89 243 LL_EXTI_EnableFallingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 244 break;
elmot 1:d0dfbce63a89 245 case LL_EXTI_TRIGGER_RISING_FALLING:
elmot 1:d0dfbce63a89 246 LL_EXTI_EnableRisingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 247 LL_EXTI_EnableFallingTrig_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 248 break;
elmot 1:d0dfbce63a89 249 default:
elmot 1:d0dfbce63a89 250 status = ERROR;
elmot 1:d0dfbce63a89 251 break;
elmot 1:d0dfbce63a89 252 }
elmot 1:d0dfbce63a89 253 }
elmot 1:d0dfbce63a89 254 }
elmot 1:d0dfbce63a89 255 }
elmot 1:d0dfbce63a89 256 /* DISABLE LineCommand */
elmot 1:d0dfbce63a89 257 else
elmot 1:d0dfbce63a89 258 {
elmot 1:d0dfbce63a89 259 /* De-configure EXTI Lines in range from 0 to 31 */
elmot 1:d0dfbce63a89 260 LL_EXTI_DisableIT_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 261 LL_EXTI_DisableEvent_0_31(EXTI_InitStruct->Line_0_31);
elmot 1:d0dfbce63a89 262 /* De-configure EXTI Lines in range from 32 to 63 */
elmot 1:d0dfbce63a89 263 LL_EXTI_DisableIT_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 264 LL_EXTI_DisableEvent_32_63(EXTI_InitStruct->Line_32_63);
elmot 1:d0dfbce63a89 265 }
elmot 1:d0dfbce63a89 266 return status;
elmot 1:d0dfbce63a89 267 }
elmot 1:d0dfbce63a89 268
elmot 1:d0dfbce63a89 269 /**
elmot 1:d0dfbce63a89 270 * @brief Set each @ref LL_EXTI_InitTypeDef field to default value.
elmot 1:d0dfbce63a89 271 * @param EXTI_InitStruct Pointer to a @ref LL_EXTI_InitTypeDef structure.
elmot 1:d0dfbce63a89 272 * @retval None
elmot 1:d0dfbce63a89 273 */
elmot 1:d0dfbce63a89 274 void LL_EXTI_StructInit(LL_EXTI_InitTypeDef *EXTI_InitStruct)
elmot 1:d0dfbce63a89 275 {
elmot 1:d0dfbce63a89 276 EXTI_InitStruct->Line_0_31 = LL_EXTI_LINE_NONE;
elmot 1:d0dfbce63a89 277 EXTI_InitStruct->Line_32_63 = LL_EXTI_LINE_NONE;
elmot 1:d0dfbce63a89 278 EXTI_InitStruct->LineCommand = DISABLE;
elmot 1:d0dfbce63a89 279 EXTI_InitStruct->Mode = LL_EXTI_MODE_IT;
elmot 1:d0dfbce63a89 280 EXTI_InitStruct->Trigger = LL_EXTI_TRIGGER_FALLING;
elmot 1:d0dfbce63a89 281 }
elmot 1:d0dfbce63a89 282
elmot 1:d0dfbce63a89 283 /**
elmot 1:d0dfbce63a89 284 * @}
elmot 1:d0dfbce63a89 285 */
elmot 1:d0dfbce63a89 286
elmot 1:d0dfbce63a89 287 /**
elmot 1:d0dfbce63a89 288 * @}
elmot 1:d0dfbce63a89 289 */
elmot 1:d0dfbce63a89 290
elmot 1:d0dfbce63a89 291 /**
elmot 1:d0dfbce63a89 292 * @}
elmot 1:d0dfbce63a89 293 */
elmot 1:d0dfbce63a89 294
elmot 1:d0dfbce63a89 295 #endif /* defined (EXTI) */
elmot 1:d0dfbce63a89 296
elmot 1:d0dfbce63a89 297 /**
elmot 1:d0dfbce63a89 298 * @}
elmot 1:d0dfbce63a89 299 */
elmot 1:d0dfbce63a89 300
elmot 1:d0dfbce63a89 301 #endif /* USE_FULL_LL_DRIVER */
elmot 1:d0dfbce63a89 302
elmot 1:d0dfbce63a89 303 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/