1 #ifndef INCLUDED_R0KET_PORTS_H
2 #define INCLUDED_R0KET_PORTS_H
4 #define HW_IS_PROTOTYPE 1
8 #define RB_LED0_IO IOCON_PIO0_11
10 #define RB_LED1_IO IOCON_PIO1_7
12 #define RB_LED2_IO IOCON_PIO1_6
14 #define RB_LED3_IO IOCON_PIO1_11
17 //#define RB_IROUT 1,5
20 //#define RB_IRIN_IO IOCON_PIO1_8
28 // order of buttons is without sense!
30 #define RB_BTN1_IO IOCON_PIO1_5
33 #define RB_BTN2_IO IOCON_PIO1_6
36 #define RB_BTN3_IO IOCON_PIO3_2
39 #define RB_BTN0_IO IOCON_PIO3_3
42 #define RB_BTN4_IO IOCON_PIO1_7
44 // A and B buttons on the hackover badge only
46 #define RB_BTN_A_IO IOCON_PIO1_11
49 #define RB_BTN_B_IO IOCON_PIO1_4
54 // use alternate buttons for the board
57 #define RB_BTN0_IO IOCON_PIO0_1
60 #define RB_BTN1_IO IOCON_PIO2_9
63 #define RB_BTN2_IO IOCON_PIO2_6
66 #define RB_BTN3_IO IOCON_PIO3_3
69 #define RB_BTN4_IO IOCON_PIO2_7
78 // backlight pin is used in another way for prototype
80 #define RB_LCD_RST 1,1
82 #define RB_SPI_CS_DF 0,7
88 #define RB_LCD_RST 2,2
90 #define RB_SPI_CS_DF 2,0
96 #define RB_I2C_SCL 0,4
98 #define RB_I2C_SCA 0,5
102 #define RB_SPI_MISO 0,8
104 #define RB_SPI_MOSI 0,9
106 #define RB_SPI_SCK 2,11
108 #define RB_SPI_SS0 2,5
110 #define RB_SPI_SS1 2,4
112 #define RB_SPI_SS2 2,8
114 #define RB_SPI_SS3 3,2
116 #define RB_SPI_SS4 3,1
118 #define RB_SPI_SS5 2,10
122 #define RB_PWR_VOLT 1,0
124 #define RB_PWR_GOOD 1,8
126 #define RB_PWR_CHRG 2,3
127 #define RB_PWR_CHRG_IO IOCON_PIO2_3
129 #define RB_PWR_LCDBL 0,0
130 #define RB_PWR_LCDBL_IO IOCON_nRESET_PIO0_0
131 #define RB_PWR_LCDBL_IO_FUNC_MASK IOCON_nRESET_PIO0_0_FUNC_MASK
132 #define RB_PWR_LCDBL_IO_FUNC_GPIO IOCON_nRESET_PIO0_0_FUNC_GPIO
136 #define RB_HB0_IO IOCON_SWDIO_PIO1_3
139 #define RB_HB1_IO IOCON_JTAG_TCK_PIO0_10
142 #define RB_HB2_IO IOCON_PIO1_1
145 #define RB_HB3_IO IOCON_PIO0_2
148 #define RB_HB4_IO IOCON_PIO1_4
151 #define RB_HB5_IO IOCON_PIO1_2
156 #define RB_NRF_CE 2,10
157 #define RB_NRF_CE_IO IOCON_PIO2_10
158 #define RB_SPI_NRF_CS 2,9
159 #define RB_SPI_NRF_CS_IO IOCON_PIO2_9
161 // TODO: this pin is new. support must be added for configuration in main.c
162 #define RB_SPI_NRF_IRQ 2,2
163 #define RB_SPI_NRF_IRQ_IO IOCON_PIO2_2
167 #define RB_NRF_CE 1,5
168 #define RB_NRF_CE_IO IOCON_PIO1_5
169 #define RB_SPI_NRF_CS 1,10
170 #define RB_SPI_NRF_CS_IO IOCON_PIO1_10
175 #define RB_BUSINT 3,0
176 #define RB_BUSINT_IO IOCON_PIO3_0
178 #define RB_USB_VBUS 0,3
180 #define RB_EEPROM_ADDR 0xA0
182 #define USB_CONNECT 0,6
186 #define BTN_UP (1<<0)
187 #define BTN_DOWN (1<<1)
188 #define BTN_LEFT (1<<2)
189 #define BTN_RIGHT (1<<3)
190 #define BTN_ENTER (1<<4)
This page took 0.055641 seconds and 5 git commands to generate.