board.h File Reference

Board specific definitions for the omote board. More...

Detailed Description

Board specific definitions for the omote board.

Definition in file board.h.

#include "cpu.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "cc2538_eui_primary.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.
 

LED pin definitions

#define LED0_PIN   GPIO_PIN(3, 0)
 
#define LED1_PIN   GPIO_PIN(3, 4)
 
#define LED0_MASK   (1 << 0)
 
#define LED1_MASK   (1 << 4)
 
#define LED0_ON   (GPIO_D->DATA |= LED0_MASK)
 
#define LED0_OFF   (GPIO_D->DATA &= ~LED0_MASK)
 
#define LED0_TOGGLE   (GPIO_D->DATA ^= LED0_MASK)
 
#define LED1_ON   (GPIO_B->DATA |= LED1_MASK)
 
#define LED1_OFF   (GPIO_B->DATA &= ~LED1_MASK)
 
#define LED1_TOGGLE   (GPIO_B->DATA ^= LED1_MASK)
 
#define LED_ALL_OFF
 
#define LED_ALL_ON
 

User button pin definition

#define BTN0_PIN   GPIO_PIN(1, 0)
 
#define BTN0_MODE   GPIO_IN_PU
 

Flash Customer Configuration Area (CCA) parameters

#define UPDATE_CCA   (1)
 
#define CCA_BACKDOOR_ENABLE   (1)
 
#define CCA_BACKDOOR_PORT_A_PIN   (3)
 Select button.
 
#define CCA_BACKDOOR_ACTIVE_LEVEL   (0)
 Active low.
 
#define BOOT_PIN   GPIO_PIN(0, CCA_BACKDOOR_PORT_A_PIN)
 BSL_BOOT Pin.
 

xtimer configuration

#define XTIMER_WIDTH   (16)
 
#define XTIMER_BACKOFF   (50)
 
#define XTIMER_ISR_BACKOFF   (40)
 

USB configuration

#define INTERNAL_PERIPHERAL_VID   (0x0451)
 
#define INTERNAL_PERIPHERAL_PID   (0x16C8)
 

Macro Definition Documentation

◆ LED_ALL_OFF

#define LED_ALL_OFF
Value:
LED1_OFF;
#define LED0_OFF
Disable LD1.
Definition: board.h:47

Definition at line 47 of file board.h.

◆ LED_ALL_ON

#define LED_ALL_ON
Value:
LED1_ON;
#define LED0_ON
Enable LD1.
Definition: board.h:45

Definition at line 49 of file board.h.