Zolertia Z1

Support for the Zolertia Z1 board. More...

Detailed Description

Components

Files

file  z1/include/board-conf.h
 Zolertia Z1 board configuration macros.
 
file  z1/include/board.h
 Zolertia Z1 board configuration.
 
file  boards/z1/include/periph_conf.h
 Zolertia Z1 peripheral configuration.
 

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 USER_BTN_PxIN   P2IN
 
#define USER_BTN_MASK   0x20
 
#define USER_BTN_PRESSED   ((USER_BTN_PxIN & USER_BTN_MASK) == 0)
 
#define USER_BTN_RELEASED   ((USER_BTN_PxIN & USER_BTN_MASK) != 0)
 

Macro Definition Documentation

#define CC2420_PARAMS_BOARD
Value:
{.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_5MHZ, \
.pin_cs = GPIO_PIN(P3, 0), \
.pin_fifo = GPIO_PIN(P1, 3), \
.pin_fifop = GPIO_PIN(P1, 2), \
.pin_cca = GPIO_PIN(P1, 4), \
.pin_sfd = GPIO_PIN(P4, 1), \
.pin_vrefen = GPIO_PIN(P4, 5), \
.pin_reset = GPIO_PIN(P4, 6)}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:73

Definition at line 111 of file z1/include/board.h.

#define MSP430_INITIAL_CPU_SPEED   8000000uL
Todo:
Move this to the periph_conf.h

Definition at line 62 of file z1/include/board.h.