X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fmonitor%2Fmonitor.c;h=a678bbc1f0343a7e20b4eb428dc89f16dc7b9145;hp=1263bcb007524c6c3094af5999d1c8523177f19e;hb=6c9b0c0ee024ae117e2b99698fab53556a25eda1;hpb=ce0bba3cfbf4844bdce1f6984af24d1f78c347f1 diff --git a/firmware/apps/monitor/monitor.c b/firmware/apps/monitor/monitor.c index 1263bcb..a678bbc 100644 --- a/firmware/apps/monitor/monitor.c +++ b/firmware/apps/monitor/monitor.c @@ -1,8 +1,6 @@ /*! \file monitor.c \author Travis Goodspeed - - This is an implementation of the SPI protocol - for the GoodFET project. + \brief Local debug monitor. */ #include "command.h" @@ -24,6 +22,11 @@ void monitorhandle(unsigned char app, cmddata[0]=memorybyte[cmddataword[0]]; txdata(app,verb,1); break; + case MONITOR_SIZEBUF: + //TODO make the data length target-specific, varying by ram. + cmddataword[0]=0x100; + txdata(app,verb,2); + break; case MONITOR_CHANGE_BAUD: //This command, and ONLY this command, does not reply. setbaud(cmddata[0]); @@ -48,6 +51,10 @@ void monitorhandle(unsigned char app, P5OUT=cmddata[0]; txdata(app,verb,1); break; + case MONITOR_SILENT: + silent=cmddata[0]; + txdata(app,verb,1); + break; } }