Trying chinese in MSP430 client. Localization to come later.
[goodfet] / firmware / include / gfports.h
index 8cc1012..90214fa 100644 (file)
@@ -6,10 +6,13 @@
 #ifndef GFPORTS
 #define GFPORTS
 
+#ifdef MSP430
 #include <io.h>
+#endif
 
 // N.B., only asm-clean CPP definitions allowed.
 
+
 //Use P3 instead of P5 for target I/O on chips without P5.
 #ifndef __MSP430_HAS_PORT5__
 #ifndef __MSP430_HAS_PORT5_R__
 #define P5DIR P3DIR
 #define P5REN P3REN
 #define P5IN P3IN
-
 #endif
 #endif
 
+
 //Use false P5REN for 1612.
 #ifdef __MSP430_HAS_PORT5__
 #ifndef __MSP430_HAS_PORT5_R__
 #endif
 #endif
 
+/*
+//Use these instead of the explicit names.
+#ifdef MSP430
+#define gfout P5OUT
+#define gfin  P5IN
+#define gfdir P5DIR
+#define gfren P5REN
+#endif
+*/
+
 
 #endif //GFPORTS