uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc17xx_exti.h
Go to the documentation of this file.
1 /***********************************************************************/
21 /* Peripheral group ----------------------------------------------------------- */
27 #ifndef LPC17XX_EXTI_H_
28 #define LPC17XX_EXTI_H_
29 
30 /* Includes ------------------------------------------------------------------- */
31 #include "LPC17xx.h"
32 #include "lpc_types.h"
33 
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40 
41 /* Private Macros ------------------------------------------------------------- */
45 /*********************************************************************/
48 #define EXTI_EINT0_BIT_MARK 0x01
49 #define EXTI_EINT1_BIT_MARK 0x02
50 #define EXTI_EINT2_BIT_MARK 0x04
51 #define EXTI_EINT3_BIT_MARK 0x08
52 
57 /* Private Macros ------------------------------------------------------------- */
65 typedef enum
66 {
72 
76 typedef enum
77 {
81 
85 typedef enum
86 {
92 
96 typedef struct
97 {
106 
107 
113 /* Public Functions ----------------------------------------------------------- */
118 void EXTI_Init(void);
119 void EXTI_DeInit(void);
120 
121 void EXTI_Config(EXTI_InitTypeDef *EXTICfg);
122 void EXTI_SetMode(EXTI_LINE_ENUM EXTILine, EXTI_MODE_ENUM mode);
123 void EXTI_SetPolarity(EXTI_LINE_ENUM EXTILine, EXTI_POLARITY_ENUM polarity);
124 void EXTI_ClearEXTIFlag(EXTI_LINE_ENUM EXTILine);
125 
126 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 
137 #endif /* LPC17XX_EXTI_H_ */
138 
143 /* --------------------------------- End Of File ------------------------------ */