95 #define EXTI_LINENONE ((uint32_t)0x00000) 126 EXTI->IMR = 0x1F800000;
127 EXTI->EMR = 0x00000000;
128 EXTI->RTSR = 0x00000000;
129 EXTI->FTSR = 0x00000000;
130 EXTI->SWIER = 0x00000000;
131 EXTI->PR = 0xE07FFFFF;
132 EXTI->IMR2 = 0x0000000C;
133 EXTI->EMR2 = 0x00000000;
134 EXTI->RTSR2 = 0x00000000;
135 EXTI->FTSR2 = 0x00000000;
136 EXTI->SWIER2 = 0x00000000;
137 EXTI->PR2 = 0x00000003;
169 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->IMR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) &= ~(uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
170 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->EMR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) &= ~(uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
174 *(
__IO uint32_t *) tmp |= (uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
179 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->RTSR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) &= ~(uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
180 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->FTSR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) &= ~(uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
186 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->RTSR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) |= (uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
187 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->FTSR)) + ((EXTI_InitStruct->
EXTI_Line) >> 5 ) * 0x20) |= (uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
193 *(
__IO uint32_t *) tmp |= (uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
202 *(
__IO uint32_t *) tmp &= ~(uint32_t)(1 << (EXTI_InitStruct->
EXTI_Line & 0x1F));
233 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->SWIER)) + ((EXTI_Line) >> 5 ) * 0x20) |= (uint32_t)(1 << (EXTI_Line & 0x1F));
269 if ((*(
__IO uint32_t *) (((uint32_t) &(
EXTI->PR)) + ((EXTI_Line) >> 5 ) * 0x20)& (uint32_t)(1 << (EXTI_Line & 0x1F))) != (uint32_t)
RESET)
291 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->PR)) + ((EXTI_Line) >> 5 ) * 0x20) = (1 << (EXTI_Line & 0x1F));
307 if ((*(
__IO uint32_t *) (((uint32_t) &(
EXTI->PR)) + ((EXTI_Line) >> 5 ) * 0x20)& (uint32_t)(1 << (EXTI_Line & 0x1F))) != (uint32_t)
RESET)
330 *(
__IO uint32_t *) (((uint32_t) &(
EXTI->PR)) + ((EXTI_Line) >> 5 ) * 0x20) = (1 << (EXTI_Line & 0x1F));
FunctionalState EXTI_LineCmd
#define IS_EXTI_MODE(MODE)
EXTITrigger_TypeDef EXTI_Trigger
void EXTI_DeInit(void)
Deinitializes the EXTI peripheral registers to their default reset values.
#define IS_GET_EXTI_LINE(LINE)
EXTI Init Structure definition.
#define IS_EXTI_LINE_ALL(LINE)
void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line)
Generates a Software interrupt on selected EXTI line.
#define IS_EXTI_LINE_EXT(LINE)
void assert_param(int val)
void EXTI_StructInit(EXTI_InitTypeDef *EXTI_InitStruct)
Fills each EXTI_InitStruct member with its reset value.
#define IS_FUNCTIONAL_STATE(STATE)
ITStatus EXTI_GetITStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line is asserted or not.
void EXTI_Init(EXTI_InitTypeDef *EXTI_InitStruct)
Initializes the EXTI peripheral according to the specified parameters in the EXTI_InitStruct. EXTI_Line specifies the EXTI line (EXTI0....EXTI35). EXTI_Mode specifies which EXTI line is used as interrupt or an event. EXTI_Trigger selects the trigger. When the trigger occurs, interrupt pending bit will be set. EXTI_LineCmd controls (Enable/Disable) the EXTI line.
FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line flag is set or not.
EXTIMode_TypeDef EXTI_Mode
This file contains all the functions prototypes for the EXTI firmware library.
void EXTI_ClearFlag(uint32_t EXTI_Line)
Clears the EXTI's line pending flags.
#define IS_EXTI_TRIGGER(TRIGGER)
void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
Clears the EXTI's line pending bits.