2 \author Travis Goodspeed
3 \brief Port descriptions for the TelosB platform.
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.
32 /* For the radio to be used:
33 4.6 (!RST) must be low
34 4.5 (VREF_EN) must be high
35 4.2 (!CS) must be low for the transaction.
38 #define INITPLATFORM \
39 P4DIR|=BIT6+BIT5+BIT2+BIT7+BIT4; \
43 #define SETSS P4OUT|=BIT2
44 #define CLRSS P4OUT&=~BIT2
45 #define DIRSS P4DIR|=BIT2
48 //#define SETSS P4OUT|=BIT4
49 //#define CLRSS P4OUT&=~BIT4
50 //#define DIRSS P4DIR|=BIT4
53 //CC2420 Chip Reset. Need to document this.
54 #define SETCE P4OUT|=BIT6
55 #define CLRCE P4OUT&=~BIT6
56 #define DIRCE P4DIR|=BIT6