Proper I/O ports with new firmware.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 15 Jun 2010 01:52:23 +0000 (01:52 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 15 Jun 2010 01:52:23 +0000 (01:52 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@632 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/platforms/goodfet.h
firmware/platforms/nhbadge.h
firmware/platforms/telosb.h

index 230b8b8..1408ed0 100644 (file)
@@ -1,9 +1,11 @@
 /*! \file goodfet.h
   \author Travis Goodspeed
   \brief Port descriptions for the GoodFET platform.
 /*! \file goodfet.h
   \author Travis Goodspeed
   \brief Port descriptions for the GoodFET platform.
-  
 */
 
 */
 
+#ifdef MSP430
+#include <io.h>
+#endif
 
 
 
 
 
 
 
 //Use P3 instead of P5 for target I/O on chips without P5.
 #ifndef __MSP430_HAS_PORT5__
 
 //Use P3 instead of P5 for target I/O on chips without P5.
 #ifndef __MSP430_HAS_PORT5__
-#ifndef __MSP430_HAS_PORT5_R__
 //#warning "No P5, using P3 instead.  Will break 2618 and 1612 support."
 #define P5OUT P3OUT
 #define P5DIR P3DIR
 //#warning "No P5, using P3 instead.  Will break 2618 and 1612 support."
 #define P5OUT P3OUT
 #define P5DIR P3DIR
-#define P5REN P3REN
 #define P5IN P3IN
 #define P5IN P3IN
-#endif
+#define P5REN P3REN
 #endif
 
 //No longer works for Hope badge.
 #endif
 
 //No longer works for Hope badge.
index 39f7964..24544b3 100644 (file)
@@ -4,6 +4,11 @@
 */
 
 
 */
 
 
+#ifdef MSP430
+#include <io.h>
+#endif
+
+
 //LED on P1.0
 #define PLEDOUT P1OUT
 #define PLEDDIR P1DIR
 //LED on P1.0
 #define PLEDOUT P1OUT
 #define PLEDDIR P1DIR
index c536b1c..59495eb 100644 (file)
@@ -8,6 +8,10 @@
 
 */
 
 
 */
 
+#ifdef MSP430
+#include <io.h>
+#endif
+
 
 //LED on P1.0
 #define PLEDOUT P5OUT
 
 //LED on P1.0
 #define PLEDOUT P5OUT