z1/include/board.h File Reference

Zolertia Z1 board configuration. More...

Detailed Description

#include <stdint.h>
#include "cpu.h"
+ Include dependency graph for z1/include/board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __MSP430F2617__
 Define the CPU model for the <msp430.h>
 
#define CC2420_PARAMS_BOARD
 Definition of the interface to the CC2420 radio. More...
 
Xtimer configuration
#define XTIMER_DEV   (0)
 
#define XTIMER_CHAN   (0)
 
#define XTIMER_WIDTH   (16)
 
#define XTIMER_BACKOFF   (40)
 
CPU core configuration
#define MSP430_INITIAL_CPU_SPEED   8000000uL
 
#define F_CPU   MSP430_INITIAL_CPU_SPEED
 
#define F_RC_OSCILLATOR   32768
 
#define MSP430_HAS_DCOR   0
 
#define MSP430_HAS_EXTERNAL_CRYSTAL   1
 
LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(4, 0)
 
#define LED1_PIN   GPIO_PIN(4, 1)
 
#define LED2_PIN   GPIO_PIN(4, 2)
 
#define LED_OUT_REG   P5OUT
 
#define LED0_MASK   (0x10)
 
#define LED1_MASK   (0x20)
 
#define LED2_MASK   (0x40)
 
#define LED0_ON   (LED_OUT_REG &=~LED0_MASK)
 
#define LED0_OFF   (LED_OUT_REG |= LED0_MASK)
 
#define LED0_TOGGLE   (LED_OUT_REG ^= LED0_MASK)
 
#define LED1_ON   (LED_OUT_REG &=~LED1_MASK)
 
#define LED1_OFF   (LED_OUT_REG |= LED1_MASK)
 
#define LED1_TOGGLE   (LED_OUT_REG ^= LED1_MASK)
 
#define LED2_ON   (LED_OUT_REG &=~LED2_MASK)
 
#define LED2_OFF   (LED_OUT_REG |= LED2_MASK)
 
#define LED2_TOGGLE   (LED_OUT_REG ^= LED2_MASK)
 
User button configuration
#define BTN0_PIN   P2IN
 
#define BTN0_MASK   (0x20)
 
#define BTN0_MODE   GPIO_IN
 
#define BTN0_PRESSED   ((BTN0_PIN & BTN0_MASK) == 0)
 
#define BTN0_RELEASED   ((BTN0_PIN & BTN0_MASK) != 0)