e6610856be45ef3e27be2f234bf432c27da06c13
[goodfet] / firmware / platforms / goodfet.h
1 /*! \file goodfet.h
2   \author Travis Goodspeed
3   \brief Port descriptions for the GoodFET platform.
4   
5 */
6
7
8
9
10 //LED on P1.0
11 #define PLEDOUT P1OUT
12 #define PLEDDIR P1DIR
13 #define PLEDPIN BIT0
14
15
16 //Use P3 instead of P5 for target I/O on chips without P5.
17 #ifndef __MSP430_HAS_PORT5__
18 #ifndef __MSP430_HAS_PORT5_R__
19 //#warning "No P5, using P3 instead.  Will break 2618 and 1612 support."
20 #define P5OUT P3OUT
21 #define P5DIR P3DIR
22 #define P5REN P3REN
23 #define P5IN P3IN
24 #endif
25 #endif
26
27 //No longer works for Hope badge.
28 #define SETSS P5OUT|=BIT0
29 #define CLRSS P5OUT&=~BIT0
30
31