X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fmonitor%2Fmonitor.c;h=54d9cd03a55cea283cdbd128c1f6ef5e9fce38b3;hp=73aa61caa7a9588642842a05f2942636385e7e70;hb=69539bb167246135b1bde3c55dca7d19bc3c7aee;hpb=21ff17d2af1e50542d9343d7177269a8910ebbe3 diff --git a/firmware/apps/monitor/monitor.c b/firmware/apps/monitor/monitor.c index 73aa61c..54d9cd0 100644 --- a/firmware/apps/monitor/monitor.c +++ b/firmware/apps/monitor/monitor.c @@ -7,6 +7,11 @@ #include "platform.h" #include "monitor.h" #include "builddate.h" +#if (platform == tilaunchpad) +#include +extern jmp_buf warmstart; + +#endif #define MONITOR_APP @@ -78,14 +83,22 @@ void monitor_handle_fn(uint8_t const 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; @@ -146,9 +159,11 @@ void monitor_handle_fn(uint8_t const app, break; case MONITOR_CONNECTED: - msp430_init_dco_done(); - txdata(app,verb,0); - break; + #ifdef MSP430 + msp430_init_dco_done(); + #endif + txdata(app,verb,0); + break; } } @@ -164,10 +179,14 @@ void monitor_ram_pattern() } 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.