Not nearly complete.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@285
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
txdata(0x00,0x90,0);
//Reboot
+ #ifdef MSP430
asm("br &0xfffe");
+ #endif
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.
#define OCT_CMP 0x90
#define OCT_RES 0x91
+#ifdef GCC
#define WEAKDEF __attribute__ ((weak))
+#else
+//Compiler doesn't support weak linking. :(
+#define WEAKDEF
+#endif
//! Handle a plugin, weak-linked to error.
extern int pluginhandle(unsigned char app,
#ifndef GFPORTS
#define GFPORTS
+#ifdef MSP430
#include <io.h>
+#endif
// N.B., only asm-clean CPP definitions allowed.
#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
\brief Debug monitor commands.
*/
+#ifdef MSP430
#include <signal.h>
#include <io.h>
#include <iomacros.h>
+#endif
// Generic Commands
definition file, such as msp430x1612.c or msp430x2618.c.
*/
-#include <signal.h>
-#include <io.h>
-#include <iomacros.h>
-
#include "gfports.h"
unsigned char serial_rx();