NHBadgeB support.
[goodfet] / firmware / platforms / nhbadgeb.h
1 /*! \file nhbadge.h
2   \author Travis Goodspeed
3   \brief Port descriptions for the Next Hope Badge.
4 */
5
6
7 #ifdef MSP430
8 #include <io.h>
9 #endif
10
11 #define P5OUT P4OUT
12 #define P5DIR P4DIR
13 #define P5IN P4IN
14 #define P5REN P4REN
15
16
17 //LED on P1.0
18 #define PLEDOUT P1OUT
19 #define PLEDDIR P1DIR
20 #define PLEDPIN BIT0
21
22
23 //No longer works for Hope badge.
24 #define SETSS P4OUT|=BIT4
25 #define CLRSS P4OUT&=~BIT4
26 #define DIRSS P4DIR|=BIT4;
27
28 //BIT5 is Chip Enable
29 //#define RADIOACTIVE  P4OUT|=BIT5
30 //#define RADIOPASSIVE P4OUT&=~BIT5
31 #define SETCE P4OUT|=BIT5
32 #define CLRCE P4OUT&=~BIT5
33 #define DIRCE P4DIR|=BIT5