Contiki-NG
Loading...
Searching...
No Matches

This file provides connectivity information on LEDs, Buttons, UART and other OpenMote-CC2538 peripherals. More...

#include "dev/gpio.h"
#include "dev/nvic.h"

Go to the source code of this file.

Macros

OpenMote-CC2538 LED configuration

LEDs on the OpenMote-CC2538 are connected as follows:

  • LED1 (Red) -> PC4
  • LED2 (Yellow) -> PC6
  • LED3 (Green) -> PC7
  • LED4 (Orange) -> PC5
USB configuration

The USB pullup is driven by PC0

UART configuration

On the OpenMote, the UART is connected to the following ports/pins

  • RX: PA0
  • TX: PA1
  • CTS: PB0 (Can only be used with UART1)
  • RTS: PD3 (Can only be used with UART1)

We configure the port to use UART0. To use UART1, replace UART0_* with UART1_* below.

OpenMote-CC2538 Button configuration

Buttons on the OpenMote-CC2538 are connected as follows:

  • BUTTON_USER -> PC3
#define BUTTON_USER_PORT   GPIO_C_NUM
 BUTTON_USER -> PC3.
 
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.

SPI (SSI1) configuration

These values configure which CC2538 pins to use for the SPI (SSI1) lines.

The SSI1 is currently not used.

I2C configuration

These values configure which CC2538 pins to use for the I2C lines.

CC2538 TSCH configuration
Device string used on startup

Detailed Description

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.

Note
Do not include this file directly. It gets included by contiki-conf after all relevant directives have been set.

Definition in file board.h.