Contiki-Inga 3.x
|
Header file with definitions related to the I/O connections on the TI SmartRF06EB. More...
Go to the source code of this file.
Macros | |
SmartRF LED configuration | |
LEDs on the SmartRF06 (EB and BB) are connected as follows:
LED1 shares the same pin with the USB pullup | |
#define | LEDS_YELLOW 2 |
LED2 (Yellow) -> PC1. | |
#define | LEDS_GREEN 4 |
LED3 (Green) -> PC2. | |
#define | LEDS_ORANGE 8 |
LED4 (Orange) -> PC3. | |
#define | LEDS_CONF_ALL 15 |
#define | LEDS_RED 1 |
LED1 (Red) -> PC0. | |
#define | PLATFORM_HAS_LEDS 1 |
USB configuration | |
The USB pullup is driven by PC0 and is shared with LED1 | |
#define | USB_PULLUP_PORT GPIO_C_NUM |
#define | USB_PULLUP_PIN 0 |
UART configuration | |
On the SmartRF06EB, the UART (XDS back channel) is connected to the following ports/pins
We configure the port to use UART0. To use UART1, change UART_CONF_BASE | |
#define | UART_CONF_BASE UART_0_BASE |
#define | UART_RX_PORT GPIO_A_NUM |
#define | UART_RX_PIN 0 |
#define | UART_TX_PORT GPIO_A_NUM |
#define | UART_TX_PIN 1 |
#define | UART_CTS_PORT GPIO_B_NUM |
#define | UART_CTS_PIN 0 |
#define | UART_RTS_PORT GPIO_D_NUM |
#define | UART_RTS_PIN 3 |
SmartRF Button configuration | |
Buttons on the SmartRF06 are connected as follows:
| |
#define | BUTTON_SELECT_PORT GPIO_A_NUM |
BUTTON_SELECT -> PA3. | |
#define | BUTTON_SELECT_PIN 3 |
#define | BUTTON_SELECT_VECTOR NVIC_INT_GPIO_PORT_A |
#define | BUTTON_LEFT_PORT GPIO_C_NUM |
BUTTON_LEFT -> PC4. | |
#define | BUTTON_LEFT_PIN 4 |
#define | BUTTON_LEFT_VECTOR NVIC_INT_GPIO_PORT_C |
#define | BUTTON_RIGHT_PORT GPIO_C_NUM |
BUTTON_RIGHT -> PC5. | |
#define | BUTTON_RIGHT_PIN 5 |
#define | BUTTON_RIGHT_VECTOR NVIC_INT_GPIO_PORT_C |
#define | BUTTON_UP_PORT GPIO_C_NUM |
BUTTON_UP -> PC6. | |
#define | BUTTON_UP_PIN 6 |
#define | BUTTON_UP_VECTOR NVIC_INT_GPIO_PORT_C |
#define | BUTTON_DOWN_PORT GPIO_C_NUM |
BUTTON_DOWN -> PC7. | |
#define | BUTTON_DOWN_PIN 7 |
#define | BUTTON_DOWN_VECTOR NVIC_INT_GPIO_PORT_C |
#define | PLATFORM_HAS_BUTTON 1 |
SPI configuration | |
These values configure which CC2538 pins to use for the SPI lines. | |
#define | SPI_CLK_PORT GPIO_A_NUM |
#define | SPI_CLK_PIN 2 |
#define | SPI_MOSI_PORT GPIO_A_NUM |
#define | SPI_MOSI_PIN 4 |
#define | SPI_MISO_PORT GPIO_A_NUM |
#define | SPI_MISO_PIN 5 |
#define | SPI_SEL_PORT GPIO_B_NUM |
#define | SPI_SEL_PIN 5 |
Device string used on startup | |
#define | BOARD_STRING "TI SmartRF06 + cc2538EM" |
Header file with definitions related to the I/O connections on the TI SmartRF06EB.
Definition in file board.h.