1 #ifndef INCLUDED_R0KET_PORTS_H
2 #define INCLUDED_R0KET_PORTS_H
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
25 // use alternate buttons for the board
28 #define RB_BTN0_IO IOCON_PIO0_1
31 #define RB_BTN1_IO IOCON_PIO2_9
34 #define RB_BTN2_IO IOCON_PIO2_6
37 #define RB_BTN3_IO IOCON_PIO3_3
40 #define RB_BTN4_IO IOCON_PIO2_7
44 #define RB_LCD_RST 2,2
46 #define RB_SPI_CS_DF 2,0
49 #define RB_I2C_SCL 0,4
51 #define RB_I2C_SCA 0,5
55 #define RB_SPI_MISO 0,8
57 #define RB_SPI_MOSI 0,9
59 #define RB_SPI_SCK 2,11
61 #define RB_SPI_SS0 2,5
63 #define RB_SPI_SS1 2,4
65 #define RB_SPI_SS2 2,8
67 #define RB_SPI_SS3 3,2
69 #define RB_SPI_SS4 3,1
71 #define RB_SPI_SS5 2,10
75 #define RB_PWR_VOLT 1,0
77 #define RB_PWR_GOOD 1,8
79 #define RB_PWR_CHRG 2,3
80 #define RB_PWR_CHRG_IO IOCON_PIO2_3
82 #define RB_PWR_LCDBL 0,0
83 #define RB_PWR_LCDBL_IO IOCON_nRESET_PIO0_0
84 #define RB_PWR_LCDBL_IO_FUNC_MASK IOCON_nRESET_PIO0_0_FUNC_MASK
85 #define RB_PWR_LCDBL_IO_FUNC_GPIO IOCON_nRESET_PIO0_0_FUNC_GPIO
89 #define RB_HB0_IO IOCON_SWDIO_PIO1_3
92 #define RB_HB1_IO IOCON_JTAG_TCK_PIO0_10
95 #define RB_HB2_IO IOCON_PIO1_1
98 #define RB_HB3_IO IOCON_PIO0_2
101 #define RB_HB4_IO IOCON_PIO1_4
104 #define RB_HB5_IO IOCON_PIO1_2
106 #define RB_NRF_CE 1,5
107 #define RB_NRF_CE_IO IOCON_PIO1_5
108 #define RB_SPI_NRF_CS 1,10
109 #define RB_SPI_NRF_CS_IO IOCON_PIO1_10
112 #define RB_BUSINT 3,0
113 #define RB_BUSINT_IO IOCON_PIO3_0
115 #define RB_USB_VBUS 0,3
117 #define RB_EEPROM_ADDR 0xA0
119 #define USB_CONNECT 0,6
123 #define BTN_UP (1<<0)
124 #define BTN_DOWN (1<<1)
125 #define BTN_LEFT (1<<2)
126 #define BTN_RIGHT (1<<3)
127 #define BTN_ENTER (1<<4)
This page took 0.049114 seconds and 5 git commands to generate.