stm32f10x_exti.h
Go to the documentation of this file.
1 
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __STM32F10x_EXTI_H
25 #define __STM32F10x_EXTI_H
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
31 /* Includes ------------------------------------------------------------------*/
32 #include "stm32f10x.h"
33 
50 typedef enum
51 {
55 
56 #define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event))
57 
62 typedef enum
63 {
68 
69 #define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \
70  ((TRIGGER) == EXTI_Trigger_Falling) || \
71  ((TRIGGER) == EXTI_Trigger_Rising_Falling))
72 
76 typedef struct
77 {
78  uint32_t EXTI_Line;
81  EXTIMode_TypeDef EXTI_Mode;
84  EXTITrigger_TypeDef EXTI_Trigger;
87  FunctionalState EXTI_LineCmd;
90 
103 #define EXTI_Line0 ((uint32_t)0x00001)
104 #define EXTI_Line1 ((uint32_t)0x00002)
105 #define EXTI_Line2 ((uint32_t)0x00004)
106 #define EXTI_Line3 ((uint32_t)0x00008)
107 #define EXTI_Line4 ((uint32_t)0x00010)
108 #define EXTI_Line5 ((uint32_t)0x00020)
109 #define EXTI_Line6 ((uint32_t)0x00040)
110 #define EXTI_Line7 ((uint32_t)0x00080)
111 #define EXTI_Line8 ((uint32_t)0x00100)
112 #define EXTI_Line9 ((uint32_t)0x00200)
113 #define EXTI_Line10 ((uint32_t)0x00400)
114 #define EXTI_Line11 ((uint32_t)0x00800)
115 #define EXTI_Line12 ((uint32_t)0x01000)
116 #define EXTI_Line13 ((uint32_t)0x02000)
117 #define EXTI_Line14 ((uint32_t)0x04000)
118 #define EXTI_Line15 ((uint32_t)0x08000)
119 #define EXTI_Line16 ((uint32_t)0x10000)
120 #define EXTI_Line17 ((uint32_t)0x20000)
121 #define EXTI_Line18 ((uint32_t)0x40000)
123 #define EXTI_Line19 ((uint32_t)0x80000)
125 #define IS_EXTI_LINE(LINE) ((((LINE) & (uint32_t)0xFFF00000) == 0x00) && ((LINE) != (uint16_t)0x00))
126 #define IS_GET_EXTI_LINE(LINE) (((LINE) == EXTI_Line0) || ((LINE) == EXTI_Line1) || \
127  ((LINE) == EXTI_Line2) || ((LINE) == EXTI_Line3) || \
128  ((LINE) == EXTI_Line4) || ((LINE) == EXTI_Line5) || \
129  ((LINE) == EXTI_Line6) || ((LINE) == EXTI_Line7) || \
130  ((LINE) == EXTI_Line8) || ((LINE) == EXTI_Line9) || \
131  ((LINE) == EXTI_Line10) || ((LINE) == EXTI_Line11) || \
132  ((LINE) == EXTI_Line12) || ((LINE) == EXTI_Line13) || \
133  ((LINE) == EXTI_Line14) || ((LINE) == EXTI_Line15) || \
134  ((LINE) == EXTI_Line16) || ((LINE) == EXTI_Line17) || \
135  ((LINE) == EXTI_Line18) || ((LINE) == EXTI_Line19))
136 
137 
158 void EXTI_DeInit(void);
159 void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct);
160 void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct);
161 void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line);
162 FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line);
163 void EXTI_ClearFlag(uint32_t EXTI_Line);
164 ITStatus EXTI_GetITStatus(uint32_t EXTI_Line);
165 void EXTI_ClearITPendingBit(uint32_t EXTI_Line);
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 #endif /* __STM32F10x_EXTI_H */
172 
184 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
FlagStatus
Definition: stm32f4xx.h:706
EXTI Init Structure definition.
FunctionalState
Definition: stm32f4xx.h:708
ITStatus EXTI_GetITStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line is asserted or not.
FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line)
Checks whether the specified EXTI line flag is set or not.
void EXTI_ClearFlag(uint32_t EXTI_Line)
Clears the EXTI's line pending flags.
EXTITrigger_TypeDef
EXTI Trigger enumeration.
enum FlagStatus ITStatus
void EXTI_StructInit(EXTI_InitTypeDef *EXTI_InitStruct)
Fills each EXTI_InitStruct member with its reset value.
void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line)
Generates a Software interrupt on selected EXTI line.
void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
Clears the EXTI's line pending bits.
void EXTI_Init(EXTI_InitTypeDef *EXTI_InitStruct)
Initializes the EXTI peripheral according to the specified parameters in the EXTI_InitStruct.
void EXTI_DeInit(void)
Deinitializes the EXTI peripheral registers to their default reset values.
EXTITrigger_TypeDef
EXTI Trigger enumeration.
EXTIMode_TypeDef
EXTI mode enumeration.
CMSIS Cortex-M3 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...
EXTIMode_TypeDef
EXTI mode enumeration.


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:19