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

Serial Boot Loader Backdoor configuration
#define FLASH_CCA_CONF_BOOTLDR_BACKDOOR_PORT_A_PIN   7
 Pin PA7 activates the boot loader.
 
#define FLASH_CCA_CONF_BOOTLDR_BACKDOOR_ACTIVE_HIGH   0
 A logic low level activates the boot loader.
 
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.

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
CC2538 TSCH configuration
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.