Contiki-NG
|
This file provides connectivity information on LEDs, Buttons, UART and other OpenMote-CC2538 peripherals. More...
Go to the source code of this file.
Macros | |
OpenMote-CC2538 LED configuration | |
LEDs on the OpenMote-CC2538 are connected as follows:
| |
#define | LEDS_ARCH_L1_PORT GPIO_C_NUM |
#define | LEDS_ARCH_L1_PIN 4 |
#define | LEDS_ARCH_L2_PORT GPIO_C_NUM |
#define | LEDS_ARCH_L2_PIN 6 |
#define | LEDS_ARCH_L3_PORT GPIO_C_NUM |
#define | LEDS_ARCH_L3_PIN 7 |
#define | LEDS_ARCH_L4_PORT GPIO_C_NUM |
#define | LEDS_ARCH_L4_PIN 5 |
#define | LEDS_CONF_RED 1 |
#define | LEDS_CONF_YELLOW 2 |
#define | LEDS_CONF_GREEN 4 |
#define | LEDS_CONF_ORANGE 8 |
#define | LEDS_CONF_COUNT 4 |
USB configuration | |
The USB pullup is driven by PC0 | |
#define | USB_PULLUP_PORT GPIO_C_NUM |
#define | USB_PULLUP_PIN 0 |
UART configuration | |
On the OpenMote, the UART is connected to the following ports/pins
We configure the port to use UART0. To use UART1, replace UART0_* with UART1_* below. | |
#define | UART0_RX_PORT GPIO_A_NUM |
#define | UART0_RX_PIN 0 |
#define | UART0_TX_PORT GPIO_A_NUM |
#define | UART0_TX_PIN 1 |
#define | UART1_RX_PORT GPIO_B_NUM |
#define | UART1_RX_PIN 0 |
#define | UART1_TX_PORT GPIO_D_NUM |
#define | UART1_TX_PIN 3 |
#define | UART1_CTS_PORT (-1) |
#define | UART1_CTS_PIN (-1) |
#define | UART1_RTS_PORT (-1) |
#define | UART1_RTS_PIN (-1) |
OpenMote-CC2538 Button configuration | |
Buttons on the OpenMote-CC2538 are connected as follows:
| |
#define | BUTTON_USER_PORT GPIO_C_NUM |
BUTTON_USER -> PC3. | |
#define | BUTTON_USER_PIN 3 |
#define | BUTTON_USER_VECTOR GPIO_C_IRQn |
#define | PLATFORM_HAS_BUTTON 1 |
#define | PLATFORM_SUPPORTS_BUTTON_HAL 1 |
SPI (SSI0) configuration | |
These values configure which CC2538 pins to use for the SPI (SSI0) lines. The SSI0 is currently used to interface with the Ethernet driver (ENC28J60) on the OpenBase board. | |
#define | SPI_CLK_PORT GPIO_A_NUM |
#define | SPI_CLK_PIN 2 |
#define | SPI_MOSI_PORT GPIO_A_NUM |
#define | SPI_MOSI_PIN 5 |
#define | SPI_MISO_PORT GPIO_A_NUM |
#define | SPI_MISO_PIN 4 |
SPI (SSI1) configuration | |
These values configure which CC2538 pins to use for the SPI (SSI1) lines. The SSI1 is currently not used. | |
#define | SPI1_CLK_PORT GPIO_C_NUM |
#define | SPI1_CLK_PIN 4 |
#define | SPI1_TX_PORT GPIO_C_NUM |
#define | SPI1_TX_PIN 5 |
#define | SPI1_RX_PORT GPIO_C_NUM |
#define | SPI1_RX_PIN 6 |
I2C configuration | |
These values configure which CC2538 pins to use for the I2C lines. | |
#define | I2C_SCL_PORT GPIO_B_NUM |
#define | I2C_SCL_PIN 3 |
#define | I2C_SDA_PORT GPIO_B_NUM |
#define | I2C_SDA_PIN 4 |
OpenMote-CC2538 antenna switch configuration | |
#define | ANTENNA_BSP_RADIO_BASE GPIO_PORT_TO_BASE(GPIO_D_NUM) |
#define | ANTENNA_BSP_RADIO_INT GPIO_PIN_MASK(5) |
#define | ANTENNA_BSP_RADIO_EXT GPIO_PIN_MASK(4) |
CC2538 TSCH configuration | |
#define | RADIO_PHY_OVERHEAD CC2538_PHY_OVERHEAD |
#define | RADIO_BYTE_AIR_TIME CC2538_BYTE_AIR_TIME |
#define | RADIO_DELAY_BEFORE_TX CC2538_DELAY_BEFORE_TX |
#define | RADIO_DELAY_BEFORE_RX CC2538_DELAY_BEFORE_RX |
#define | RADIO_DELAY_BEFORE_DETECT CC2538_DELAY_BEFORE_DETECT |
Device string used on startup | |
#define | BOARD_STRING "OpenMote-CC2538" |
This file provides connectivity information on LEDs, Buttons, UART and other OpenMote-CC2538 peripherals.
This file can be used as the basis to configure other platforms using the cc2538 SoC.
Definition in file board.h.