#include "platform.h"
#include "monitor.h"
#include "builddate.h"
+#if (platform == tilaunchpad)
+#include <setjmp.h>
+extern jmp_buf warmstart;
+
+#endif
#define MONITOR_APP
break;
case PEEK:
+ #ifdef MSP430
cmddata[0]=memorybyte[cmddataword[0]];
+ #else
+ debugstr("Monitor peeks are unsupported on this platform.");
+ #endif
txdata(app,verb,1);
break;
case POKE:
+ #ifdef MSP430
//Todo, make word or byte.
memorybyte[cmddataword[0]] = cmddata[2];
cmddata[0] = memorybyte[cmddataword[0]];
+ #else
+ debugstr("Monitor pokes are unsupported on this platform.");
+ #endif
txdata(app,verb,1);
break;
}
txdata(0x00,0x90,0);
+#if (platform == tilaunchpad)
+ longjmp(warmstart,1);
+#else
//Reboot
#ifdef MSP430
asm("br &0xfffe");
#endif
+#endif
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.