continuing to improve arm support with AT91X40 and adding AT91SAM7
[goodfet] / firmware / platforms / goodfet.h
1 /*! \file goodfet.h
2   \author Travis Goodspeed
3   \brief Port descriptions for the GoodFET platform.
4 */
5
6 #include <signal.h>
7 #include <io.h>
8 #include <iomacros.h>
9
10
11 //LED on P1.0
12 #define PLEDOUT P1OUT
13 #define PLEDDIR P1DIR
14 #define PLEDPIN BIT0
15
16 //Use P3 instead of P5 for target I/O on chips without P5.
17 #ifdef msp430x2274
18 //#warning "No P5, using P3 instead.  Will break 2618 and 1612 support."
19 #define P5OUT P3OUT
20 #define P5DIR P3DIR
21 #define P5IN P3IN
22 #define P5REN P3REN
23 #endif
24
25 //This is how things used to work, don't do it anymore.
26 //#ifdef msp430x1612
27 //#define P5REN somedamnedextern
28 //#endif
29
30 //No longer works for Hope badge.
31 #define SETSS P5OUT|=BIT0
32 #define CLRSS P5OUT&=~BIT0
33 #define DIRSS P5DIR|=BIT0;
34
35 //BIT5 is Chip Enable.  Need to document this
36 //#define RADIOACTIVE  P5OUT|=BIT5
37 //#define RADIOPASSIVE P5OUT&=~BIT5
38 #define SETCE P5OUT|=BIT5
39 #define CLRCE P5OUT&=~BIT5
40 #define DIRCE P5DIR|=BIT5
41