board.h File Reference

Basic definitions for the TelosB board. More...

Detailed Description

Basic definitions for the TelosB board.

Components

  • MSP430
  • CC2420
Author
Oliver Hahm olive.nosp@m.r.ha.nosp@m.hm@in.nosp@m.ria..nosp@m.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 "cpu.h"
+ Include dependency graph for board.h:

Go to the source code of this file.

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

Override default baudrate for STDIO

#define STDIO_UART_BAUDRATE   (9600)
 

ztimer configuration

#define CONFIG_ZTIMER_USEC_WIDTH   16
 running on a 16-bit timer
 
#define CONFIG_ZTIMER_USEC_BASE_FREQ   MHZ(1)
 Configure clock to 1 MHz.
 
#define CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION   1
 Force frequency conversion to be used. More...
 

Xtimer configuration

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

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)
 

Definition of the interface to the CC2420 radio

#define CC2420_PARAM_SPI_CLK   (SPI_CLK_1MHZ)
 
#define CC2420_PARAM_CS   GPIO_PIN(P4, 2)
 
#define CC2420_PARAM_FIFO   GPIO_PIN(P1, 3)
 
#define CC2420_PARAM_FIFOP   GPIO_PIN(P1, 0)
 
#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

◆ CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION

#define CONFIG_ZTIMER_PERIPH_TIMER_FORCE_CONVERSION   1

Force frequency conversion to be used.

Otherwise ztimer would assume that it can run the 1 MHz clock from the timer configured at 1 MHz without conversion. But the actual frequency the timer will run at will be detected at runtime and, due to inaccuracy of the internal oscillator, will indeed require frequency conversion.

Definition at line 68 of file board.h.