File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -68,23 +68,40 @@ typedef enum
68
68
GPIO_PuPd_UP = Px_PCR_PUPD_UP ,
69
69
GPIO_PuPd_DOWN = Px_PCR_PUPD_DOWN ,
70
70
GPIO_PuPd_Default = 0x0ul ,
71
+ GPIO_DS = Px_PCR_DS_HIGH ,
72
+ GPIO_IE = Px_PCR_IE ,
73
+ GPIO_SUMMIT = Px_PCR_CS_SUMMIT
71
74
}GPIOPad_TypeDef ;
72
75
76
+ #define IS_GPIO_PUPD (PUPD ) (((PUPD) == GPIO_PuPd_UP) || ((PUPD) == GPIO_PuPd_DOWN))
77
+
73
78
typedef struct
74
79
{
75
80
uint32_t GPIO_Pin ;
76
81
GPIOMode_TypeDef GPIO_Mode ;
77
82
GPIOPad_TypeDef GPIO_Pad ;
78
83
}GPIO_InitTypeDef ;
79
84
85
+ typedef enum
86
+ {
87
+ Falling = 0 ,
88
+ Rising = 1
89
+ }GPIOPol_TypeDef ;
90
+
91
+ typedef enum
92
+ {
93
+ Reset = 0 ,
94
+ Set = 1
95
+ }GPIOSet_TypeDef ;
96
+
80
97
typedef enum
81
98
{
82
99
Bit_RESET = 0 ,
83
100
Bit_SET
84
101
}BitAction ;
85
102
86
103
87
- #define IS_PAD_TYPE (Px ) (((Px) == PAD_PA) || ((Px) == PAD_PB) \
104
+ #define IS_PAD_TYPE (Px ) (((Px) == PAD_PA) || ((Px) == PAD_PB) || \
88
105
((Px) == PAD_PC) || ((Px) == PAD_PD))
89
106
90
107
#define IS_PA_NUM (NUM ) (((NUM)>=0) && ((NUM)<16))
You can’t perform that action at this time.
0 commit comments