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)
 

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

◆ CC2420_PARAM_CCA

#define CC2420_PARAM_CCA   GPIO_PIN(P1, 4)

Definition at line 93 of file board.h.

◆ CC2420_PARAM_CS

#define CC2420_PARAM_CS   GPIO_PIN(P4, 2)

Definition at line 90 of file board.h.

◆ CC2420_PARAM_FIFO

#define CC2420_PARAM_FIFO   GPIO_PIN(P1, 3)

Definition at line 91 of file board.h.

◆ CC2420_PARAM_FIFOP

#define CC2420_PARAM_FIFOP   GPIO_PIN(P1, 0)

Definition at line 92 of file board.h.

◆ CC2420_PARAM_RESET

#define CC2420_PARAM_RESET   GPIO_PIN(P4, 6)

Definition at line 96 of file board.h.

◆ CC2420_PARAM_SFD

#define CC2420_PARAM_SFD   GPIO_PIN(P4, 1)

Definition at line 94 of file board.h.

◆ CC2420_PARAM_SPI_CLK

#define CC2420_PARAM_SPI_CLK   (SPI_CLK_1MHZ)

Definition at line 89 of file board.h.

◆ CC2420_PARAM_VREFEN

#define CC2420_PARAM_VREFEN   GPIO_PIN(P4, 5)

Definition at line 95 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (0x10)

Definition at line 68 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (LED_OUT_REG |= LED0_MASK)

Definition at line 73 of file board.h.

◆ LED0_ON

#define LED0_ON   (LED_OUT_REG &=~LED0_MASK)

Definition at line 72 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(4, 0)

Definition at line 63 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (LED_OUT_REG ^= LED0_MASK)

Definition at line 74 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (0x20)

Definition at line 69 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (LED_OUT_REG |= LED1_MASK)

Definition at line 77 of file board.h.

◆ LED1_ON

#define LED1_ON   (LED_OUT_REG &=~LED1_MASK)

Definition at line 76 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(4, 1)

Definition at line 64 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (LED_OUT_REG ^= LED1_MASK)

Definition at line 78 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (0x40)

Definition at line 70 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (LED_OUT_REG |= LED2_MASK)

Definition at line 81 of file board.h.

◆ LED2_ON

#define LED2_ON   (LED_OUT_REG &=~LED2_MASK)

Definition at line 80 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(4, 2)

Definition at line 65 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (LED_OUT_REG ^= LED2_MASK)

Definition at line 82 of file board.h.

◆ LED_OUT_REG

#define LED_OUT_REG   P5OUT

Definition at line 67 of file board.h.

◆ STDIO_UART_BAUDRATE

#define STDIO_UART_BAUDRATE   (9600)

Definition at line 47 of file board.h.

◆ XTIMER_BACKOFF

#define XTIMER_BACKOFF   (40)

Definition at line 56 of file board.h.

◆ XTIMER_WIDTH

#define XTIMER_WIDTH   (16)

Definition at line 55 of file board.h.