board.h File Reference

Zolertia Z1 board configuration. More...

Detailed Description

Zolertia Z1 board configuration.

Components

  • MSP430F2617
  • CC2420
Author
Kévin Roussel Kevin.nosp@m..Rou.nosp@m.ssel@.nosp@m.inri.nosp@m.a.fr
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file board.h.

#include <stdint.h>
#include "cpu.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.

#define __MSP430F2617__
 Define the CPU model for the <msp430.h>
 

Xtimer configuration

#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(5, 4)
 
#define LED1_PIN   GPIO_PIN(5, 6)
 
#define LED2_PIN   GPIO_PIN(5, 5)
 
#define LED_OUT_REG   P5OUT
 
#define LED0_MASK   (0x10)
 
#define LED1_MASK   (0x40)
 
#define LED2_MASK   (0x20)
 
#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   GPIO_PIN(2, 5)
 
#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)
 

Definition of the interface to the CC2420 radio

#define CC2420_PARAM_CS   GPIO_PIN(P3, 0)
 
#define CC2420_PARAM_FIFO   GPIO_PIN(P1, 3)
 
#define CC2420_PARAM_FIFOP   GPIO_PIN(P1, 2)
 
#define CC2420_PARAM_CCA   GPIO_PIN(P1, 4)
 
#define CC2420_PARAM_SFD   GPIO_PIN(P4, 1)
 
#define CC2420_PARAM_VREFEN   GPIO_PIN(P4, 5)
 
#define CC2420_PARAM_RESET   GPIO_PIN(P4, 6)
 

Macro Definition Documentation

◆ MSP430_INITIAL_CPU_SPEED

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

Definition at line 58 of file board.h.