82 #define EXTI_LINENONE ((uint32_t)0x00000)
112 EXTI->IMR = 0x00000000;
113 EXTI->EMR = 0x00000000;
114 EXTI->RTSR = 0x00000000;
115 EXTI->FTSR = 0x00000000;
116 EXTI->PR = 0x007FFFFF;
131 assert_param(IS_EXTI_MODE(EXTI_InitStruct->
EXTI_Mode));
132 assert_param(IS_EXTI_TRIGGER(EXTI_InitStruct->
EXTI_Trigger));
133 assert_param(IS_EXTI_LINE(EXTI_InitStruct->
EXTI_Line));
134 assert_param(IS_FUNCTIONAL_STATE(EXTI_InitStruct->
EXTI_LineCmd));
136 tmp = (uint32_t)EXTI_BASE;
141 EXTI->IMR &= ~EXTI_InitStruct->
EXTI_Line;
142 EXTI->EMR &= ~EXTI_InitStruct->
EXTI_Line;
146 *(__IO uint32_t *) tmp |= EXTI_InitStruct->
EXTI_Line;
149 EXTI->RTSR &= ~EXTI_InitStruct->
EXTI_Line;
150 EXTI->FTSR &= ~EXTI_InitStruct->
EXTI_Line;
153 if (EXTI_InitStruct->
EXTI_Trigger == EXTI_Trigger_Rising_Falling)
156 EXTI->RTSR |= EXTI_InitStruct->
EXTI_Line;
157 EXTI->FTSR |= EXTI_InitStruct->
EXTI_Line;
161 tmp = (uint32_t)EXTI_BASE;
164 *(__IO uint32_t *) tmp |= EXTI_InitStruct->
EXTI_Line;
172 *(__IO uint32_t *) tmp &= ~EXTI_InitStruct->
EXTI_Line;
184 EXTI_InitStruct->
EXTI_Line = EXTI_LINENONE;
185 EXTI_InitStruct->
EXTI_Mode = EXTI_Mode_Interrupt;
200 assert_param(IS_EXTI_LINE(EXTI_Line));
202 EXTI->SWIER |= EXTI_Line;
229 FlagStatus bitstatus = RESET;
231 assert_param(IS_GET_EXTI_LINE(EXTI_Line));
233 if ((EXTI->PR & EXTI_Line) != (uint32_t)RESET)
253 assert_param(IS_EXTI_LINE(EXTI_Line));
255 EXTI->PR = EXTI_Line;
266 FlagStatus bitstatus = RESET;
268 assert_param(IS_GET_EXTI_LINE(EXTI_Line));
270 if ((EXTI->PR & EXTI_Line) != (uint32_t)RESET)
291 assert_param(IS_EXTI_LINE(EXTI_Line));
293 EXTI->PR = EXTI_Line;
void EXTI_Init(EXTI_InitTypeDef *EXTI_InitStruct)
Initializes the EXTI peripheral according to the specified parameters in the EXTI_InitStruct.
void EXTI_StructInit(EXTI_InitTypeDef *EXTI_InitStruct)
Fills each EXTI_InitStruct member with its reset value.
ITStatus EXTI_GetITStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line is asserted or not.
EXTIMode_TypeDef EXTI_Mode
void EXTI_DeInit(void)
Deinitializes the EXTI peripheral registers to their default reset values.
EXTI Init Structure definition.
void EXTI_ClearFlag(uint32_t EXTI_Line)
Clears the EXTI's line pending flags.
FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line flag is set or not.
void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line)
Generates a Software interrupt on selected EXTI line.
EXTITrigger_TypeDef EXTI_Trigger
This file contains all the functions prototypes for the EXTI firmware library.
void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
Clears the EXTI's line pending bits.
FunctionalState EXTI_LineCmd