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

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

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

Go to the source code of this file.

Macros

OpenMote-B LED configuration

LEDs on the OpenMote-B are connected as follows:

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

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

  • RX: PA0
  • TX: PA1

We configure the port to use UART0.

OpenMote-B Button configuration

Buttons on the OpenMote-B are connected as follows:

  • BUTTON_USER -> PD5
#define BUTTON_USER_PORT   GPIO_D_NUM
 BUTTON_USER -> PD5.
 
SPI (SSI0) configuration

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

The SPI0 is currently used for interface with the AT86RF215 radio.

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.

OpenMote-B antenna switch configuration
Atmel's AT86RF215 radio configuration
Radio configuration - use either AT86RF215 or CC2538

OpenMoteB can use either the AT86RF215 or the CC2538 radio.

#define NETSTACK_CONF_RADIO   cc2538_rf_driver
 Configuration of Atmel AT86RF215 radio.
 
Device string used on startup

Detailed Description

This file provides connectivity information on LEDs, Buttons, UART and other OpenMote-B 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.