Fixed 2274 support.
[goodfet] / firmware / platforms / goodfet.h
1 /*! \file goodfet.h
2   \author Travis Goodspeed
3   \brief Port descriptions for the GoodFET platform.
4 */
5
6 #ifdef MSP430
7 #include <io.h>
8 #endif
9
10
11
12 //LED on P1.0
13 #define PLEDOUT P1OUT
14 #define PLEDDIR P1DIR
15 #define PLEDPIN BIT0
16
17 //Use P3 instead of P5 for target I/O on chips without P5.
18 #ifndef __MSP430_HAS_PORT5__
19 //#warning "No P5, using P3 instead.  Will break 2618 and 1612 support."
20 #define P5OUT P3OUT
21 #define P5DIR P3DIR
22 #define P5IN P3IN
23 #define P5REN P3REN
24 #endif
25
26 //No longer works for Hope badge.
27 #define SETSS P5OUT|=BIT0
28 #define CLRSS P5OUT&=~BIT0
29 #define DIRSS P5DIR|=BIT0;
30
31 //BIT5 is Chip Enable.  Need to document this
32 //#define RADIOACTIVE  P5OUT|=BIT5
33 //#define RADIOPASSIVE P5OUT&=~BIT5
34 #define SETCE P5OUT|=BIT5
35 #define CLRCE P5OUT&=~BIT5
36 #define DIRCE P5DIR|=BIT5