Loading...
Searching...
No Matches
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.

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

◆ BOOT_PIN

#define BOOT_PIN   GPIO_PIN(0, CCA_BACKDOOR_PORT_A_PIN)

BSL_BOOT Pin.

Definition at line 72 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN_PU

Definition at line 58 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(1, 0)

Definition at line 57 of file board.h.

◆ CCA_BACKDOOR_ACTIVE_LEVEL

#define CCA_BACKDOOR_ACTIVE_LEVEL   (0)

Active low.

Definition at line 70 of file board.h.

◆ CCA_BACKDOOR_ENABLE

#define CCA_BACKDOOR_ENABLE   (1)

Definition at line 68 of file board.h.

◆ CCA_BACKDOOR_PORT_A_PIN

#define CCA_BACKDOOR_PORT_A_PIN   (3)

Select button.

Definition at line 69 of file board.h.

◆ INTERNAL_PERIPHERAL_PID

#define INTERNAL_PERIPHERAL_PID   (0x16C8)

Definition at line 89 of file board.h.

◆ INTERNAL_PERIPHERAL_VID

#define INTERNAL_PERIPHERAL_VID   (0x0451)

Definition at line 88 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (1 << 0)

Definition at line 36 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (GPIO_D->DATA &= ~LED0_MASK)

Definition at line 40 of file board.h.

◆ LED0_ON

#define LED0_ON   (GPIO_D->DATA |= LED0_MASK)

Definition at line 39 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(3, 0)

Definition at line 33 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (GPIO_D->DATA ^= LED0_MASK)

Definition at line 41 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (1 << 4)

Definition at line 37 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (GPIO_B->DATA &= ~LED1_MASK)

Definition at line 44 of file board.h.

◆ LED1_ON

#define LED1_ON   (GPIO_B->DATA |= LED1_MASK)

Definition at line 43 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(3, 4)

Definition at line 34 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (GPIO_B->DATA ^= LED1_MASK)

Definition at line 45 of file board.h.

◆ LED_ALL_OFF

#define LED_ALL_OFF
Value:
LED0_OFF; \
#define LED1_OFF
Switch off TX LED yellow.
Definition board.h:50

Definition at line 47 of file board.h.

◆ LED_ALL_ON

#define LED_ALL_ON
Value:
LED0_ON; \
#define LED1_ON
Switch on TX LED yellow.
Definition board.h:49

Definition at line 49 of file board.h.

◆ UPDATE_CCA

#define UPDATE_CCA   (1)

Definition at line 66 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (50)

Definition at line 80 of file board.h.

◆ XTIMER_ISR_BACKOFF

#define XTIMER_ISR_BACKOFF   (40)

Definition at line 81 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 79 of file board.h.