uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
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
{
67
EXTI_EINT0
,
68
EXTI_EINT1
,
69
EXTI_EINT2
,
70
EXTI_EINT3
71
}
EXTI_LINE_ENUM
;
72
76
typedef
enum
77
{
78
EXTI_MODE_LEVEL_SENSITIVE
,
79
EXTI_MODE_EDGE_SENSITIVE
80
}
EXTI_MODE_ENUM
;
81
85
typedef
enum
86
{
87
EXTI_POLARITY_LOW_ACTIVE_OR_FALLING_EDGE
,
89
EXTI_POLARITY_HIGH_ACTIVE_OR_RISING_EDGE
91
}
EXTI_POLARITY_ENUM
;
92
96
typedef
struct
97
{
98
EXTI_LINE_ENUM
EXTI_Line
;
100
EXTI_MODE_ENUM
EXTI_Mode
;
102
EXTI_POLARITY_ENUM
EXTI_polarity
;
105
}
EXTI_InitTypeDef
;
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 ------------------------------ */
arch
arm
lpc17xx
Drivers
include
lpc17xx_exti.h
Generated on Fri Nov 15 2013 05:00:16 for uc-sdk by
1.8.4