Loading...
Searching...
No Matches
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.
 

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

◆ __MSP430F1611__

#define __MSP430F1611__

Define the CPU model for the <msp430.h>

Definition at line 38 of file board.h.

◆ CC2420_PARAM_CCA

#define CC2420_PARAM_CCA   GPIO_PIN(P1, 4)

Definition at line 112 of file board.h.

◆ CC2420_PARAM_CS

#define CC2420_PARAM_CS   GPIO_PIN(P4, 2)

Definition at line 109 of file board.h.

◆ CC2420_PARAM_FIFO

#define CC2420_PARAM_FIFO   GPIO_PIN(P1, 3)

Definition at line 110 of file board.h.

◆ CC2420_PARAM_FIFOP

#define CC2420_PARAM_FIFOP   GPIO_PIN(P1, 0)

Definition at line 111 of file board.h.

◆ CC2420_PARAM_RESET

#define CC2420_PARAM_RESET   GPIO_PIN(P4, 6)

Definition at line 115 of file board.h.

◆ CC2420_PARAM_SFD

#define CC2420_PARAM_SFD   GPIO_PIN(P4, 1)

Definition at line 113 of file board.h.

◆ CC2420_PARAM_SPI_CLK

#define CC2420_PARAM_SPI_CLK   (SPI_CLK_1MHZ)

Definition at line 108 of file board.h.

◆ CC2420_PARAM_VREFEN

#define CC2420_PARAM_VREFEN   GPIO_PIN(P4, 5)

Definition at line 114 of file board.h.

◆ 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 67 of file board.h.

◆ CONFIG_ZTIMER_USEC_BASE_FREQ

#define CONFIG_ZTIMER_USEC_BASE_FREQ   MHZ(1)

Configure clock to 1 MHz.

Definition at line 58 of file board.h.

◆ CONFIG_ZTIMER_USEC_WIDTH

#define CONFIG_ZTIMER_USEC_WIDTH   16

running on a 16-bit timer

Definition at line 54 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (0x10)

Definition at line 87 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_OUT_REG |= LED0_MASK)

Definition at line 92 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_OUT_REG &=~LED0_MASK)

Definition at line 91 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(4, 0)

Definition at line 82 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_OUT_REG ^= LED0_MASK)

Definition at line 93 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (0x20)

Definition at line 88 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_OUT_REG |= LED1_MASK)

Definition at line 96 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_OUT_REG &=~LED1_MASK)

Definition at line 95 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(4, 1)

Definition at line 83 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_OUT_REG ^= LED1_MASK)

Definition at line 97 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (0x40)

Definition at line 89 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (LED_OUT_REG |= LED2_MASK)

Definition at line 100 of file board.h.

◆ LED2_ON

#define LED2_ON   (LED_OUT_REG &=~LED2_MASK)

Definition at line 99 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(4, 2)

Definition at line 84 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (LED_OUT_REG ^= LED2_MASK)

Definition at line 101 of file board.h.

◆ LED_OUT_REG

#define LED_OUT_REG   P5OUT

Definition at line 86 of file board.h.

◆ STDIO_UART_BAUDRATE

#define STDIO_UART_BAUDRATE   (9600)

Definition at line 46 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 75 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 74 of file board.h.