summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c299b3)
/*! \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
#endif
//No longer works for Hope badge.
#endif
//No longer works for Hope badge.
+#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
+#ifdef MSP430
+#include <io.h>
+#endif
+
//LED on P1.0
#define PLEDOUT P5OUT
//LED on P1.0
#define PLEDOUT P5OUT