Fixed Port 5 bug, critical.
[goodfet] / firmware / include / gfports.h
1 /*! \file gfports.h
2   \author Travis Goodspeed
3   \brief GoodFET Port Definitions
4 */
5
6 #ifndef GFPORTS
7 #define GFPORTS
8
9 #include <io.h>
10
11 // N.B., only asm-clean CPP definitions allowed.
12
13 //Use false P5REN for 1612.
14 #ifdef __MSP430_HAS_PORT5__
15 #ifndef __MSP430_HAS_PORT5_R__
16 //#warning "1xx, using fake P5REN for external pulling resistors."
17 #define P5REN P5OUT
18 #endif
19 #endif
20
21 /*
22 //Use these instead of the explicit names.
23 #ifdef MSP430
24 #define gfout P5OUT
25 #define gfin  P5IN
26 #define gfdir P5DIR
27 #define gfren P5REN
28 #endif
29 */
30
31
32 #endif //GFPORTS