MiraOS  v1.0 2016-02-20
hcl_typedefs.h
1 #ifndef HCL_TYPEDEFS_H_
2 #define HCL_TYPEDEFS_H_
3 
4 typedef enum {
5  HclGpioPortA = 0,
6  HclGpioPortB = 1,
7  HclGpioPortC = 2,
8  HclGpioPortD = 3,
9 } HclGpioPorts;
10 
11 typedef enum {
12  HclInputPin,
13  HclOutputPin,
14 } HclGpioPinMode;
15 
16 typedef enum {
17  HclPullUp = 1,
18  HclPullDown = 2,
19  HclNoPull = 0,
20 } HclGpioPullMode;
21 
22 #define PWM_A 0
23 #define PWM_B 1
24 #define PMW_INVERT 1
25 #define PWM_NORMAL 0
26 #define PWM_OVERRIDE_INIT 1
27 #define PWM_KEEP_INIT 0
28 
29 #endif /* HCL_TYPEDEFS_H_ */