Generalizing IO.
[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 #ifdef MSP430
10 #include <io.h>
11 #endif
12
13 // N.B., only asm-clean CPP definitions allowed.
14
15 //Use false P5REN for 1612.
16 #ifdef __MSP430_HAS_PORT5__
17 #ifndef __MSP430_HAS_PORT5_R__
18 //#warning "1xx, using fake P5REN for external pulling resistors."
19 #define P5REN P5OUT
20 #endif
21 #endif
22
23 /*
24 //Use these instead of the explicit names.
25 #ifdef MSP430
26 #define gfout P5OUT
27 #define gfin  P5IN
28 #define gfdir P5DIR
29 #define gfren P5REN
30 #endif
31 */
32
33
34 #endif //GFPORTS