Loading...
Searching...
No Matches
MSB-430 common

Shared files and configuration for all MSB-430 boards. More...

Detailed Description

Shared files and configuration for all MSB-430 boards.

Files

file  board_common.h
 Common definitions for all msb-430 based boards.
 

Xtimer configuration

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

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(4, 7)
 
#define LED_OUT_REG   (P5OUT)
 
#define LED0_MASK   (1 << 7)
 
#define LED0_ON   (LED_OUT_REG &= ~LED0_MASK)
 
#define LED0_OFF   (LED_OUT_REG |= LED0_MASK)
 
#define LED0_TOGGLE   (LED_OUT_REG ^= LED0_MASK)
 

Macro Definition Documentation

◆ LED0_MASK

#define LED0_MASK   (1 << 7)

Definition at line 46 of file board_common.h.

◆ LED0_OFF

#define LED0_OFF   (LED_OUT_REG |= LED0_MASK)

Definition at line 49 of file board_common.h.

◆ LED0_ON

#define LED0_ON   (LED_OUT_REG &= ~LED0_MASK)

Definition at line 48 of file board_common.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(4, 7)

Definition at line 43 of file board_common.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_OUT_REG ^= LED0_MASK)

Definition at line 50 of file board_common.h.

◆ LED_OUT_REG

#define LED_OUT_REG   (P5OUT)

Definition at line 45 of file board_common.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 36 of file board_common.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 35 of file board_common.h.