Chipcon SPI driver, in the works.
[goodfet] / firmware / platforms / telosb.h
1 /*! \file telosb.h
2   \author Travis Goodspeed
3   \brief Port descriptions for the TelosB platform.
4   
5   This file defines the Telos B hardware, so that the GoodFET firmware
6   may be loaded onto it.  Adjustments include the !CS line of the CC2420
7   radio, the choice of serial port, and the LEDs.
8
9 */
10
11
12 //LED on P1.0
13 #define PLEDOUT P5OUT
14 #define PLEDDIR P5DIR
15 #define PLEDPIN BIT4
16
17
18 //Radio CS is P4.2
19 #define SETSS P4OUT|=BIT2
20 #define CLRSS P4OUT&=~BIT2
21 #define DIRSS P4DIR|=BIT2;
22
23
24 //CC2420 Chip Reset.  Need to document this.
25 #define SETCE P4OUT|=BIT6
26 #define CLRCE P4OUT&=~BIT6
27 #define DIRCE P4DIR|=BIT6