Contiki-NG
|
The OpenMote-CC2538 board was designed at UC Berkeley in 2013 and is comercialized by OpenMote Technologies since 2014. More...
Modules | |
OpenMote-CC2538 antenna switch | |
Driver for the OpenMote-CC2538 antenna switch. | |
OpenMote-CC2538 sensors | |
Generic module controlling sensors on the OpenMote-CC2538 platform. | |
OpenMote-CC2538 user button | |
Generic module controlling the user button on the OpenMote-CC2538. | |
TPS62730 voltage regulator | |
Driver for the TPS62730 voltage regulator, to enable power from the battery voltage (bypass, Vout=Vin, Iq < 1uA) or through the buck regulator (on, Vout=2.1V, Iq = 30uA) | |
Files | |
file | board.c |
Board-initialisation for the OpenMote-CC2538 platform. | |
file | board.h |
This file provides connectivity information on LEDs, Buttons, UART and other OpenMote-CC2538 peripherals. | |
Functions | |
void | board_init () |
Board specific iniatialisation. | |
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 | |
#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) |
Device string used on startup | |
#define | BOARD_STRING "OpenMote-CC2538" |
The OpenMote-CC2538 board was designed at UC Berkeley in 2013 and is comercialized by OpenMote Technologies since 2014.
It is the first commercial platform based on the powerful TI CC2538 SoC. It uses a XBee form-factor to ease prototyping.