Line | |
---|
1 | #ifndef W3_HIGH_USERIO_H_ |
---|
2 | #define W3_HIGH_USERIO_H_ |
---|
3 | |
---|
4 | #include "xgpio.h" |
---|
5 | #include "xintc.h" |
---|
6 | |
---|
7 | #define GPIO_USERIO_INPUT_CHANNEL 1 ///< Channel used as input user IO inputs (buttons, DIP switch) |
---|
8 | #define GPIO_USERIO_INPUT_IR_CH_MASK XGPIO_IR_CH1_MASK ///< Mask for enabling interrupts on GPIO input |
---|
9 | |
---|
10 | #define GPIO_MASK_DRAM_INIT_DONE 0x00000100 ///< Mask for GPIO -- DRAM initialization bit |
---|
11 | #define GPIO_MASK_PB_U 0x00000040 ///< Mask for GPIO -- "Up" Pushbutton |
---|
12 | #define GPIO_MASK_PB_M 0x00000020 ///< Mask for GPIO -- "Middle" Pushbutton |
---|
13 | #define GPIO_MASK_PB_D 0x00000010 ///< Mask for GPIO -- "Down" Pushbutton |
---|
14 | #define GPIO_MASK_DS_3 0x00000008 ///< Mask for GPIO -- MSB of Dip Switch |
---|
15 | |
---|
16 | int w3_high_userio_init(); |
---|
17 | int w3_high_userio_setup_interrupt(); |
---|
18 | |
---|
19 | #endif /* W3_HIGH_USERIO_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.