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
txdata(0x00,0x90,0);
//Reboot
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.
#define OCT_CMP 0x90
#define OCT_RES 0x91
#define OCT_CMP 0x90
#define OCT_RES 0x91
#define WEAKDEF __attribute__ ((weak))
#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,
//! Handle a plugin, weak-linked to error.
extern int pluginhandle(unsigned char app,
#ifndef GFPORTS
#define GFPORTS
#ifndef GFPORTS
#define GFPORTS
// N.B., only asm-clean CPP definitions allowed.
// N.B., only asm-clean CPP definitions allowed.
+//Use these instead of the explicit names.
+#ifdef MSP430
+#define gfout P5OUT
+#define gfin P5IN
+#define gfdir P5DIR
+#define gfren P5REN
+#endif
+
+
\brief Debug monitor commands.
*/
\brief Debug monitor commands.
*/
#include <signal.h>
#include <io.h>
#include <iomacros.h>
#include <signal.h>
#include <io.h>
#include <iomacros.h>
definition file, such as msp430x1612.c or msp430x2618.c.
*/
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();
#include "gfports.h"
unsigned char serial_rx();