Now compiling with -Wall, error free.
[goodfet] / firmware / apps / monitor / monitor.c
1 #include "command.h"
2 #include "platform.h"
3
4 //! Handles a monitor command.
5 void monitorhandle(unsigned char app,
6                    unsigned char verb,
7                    unsigned char len){
8   switch(verb){
9   case PEEK:
10     cmddata[0]=memorybyte[cmddataword[0]];
11     txdata(app,verb,1);
12     break;
13   case POKE:
14     //Todo, make word or byte.
15     memorybyte[cmddataword[0]]=cmddata[2];
16     cmddata[0]=memorybyte[cmddataword[0]];
17     txdata(app,verb,1);
18     break;
19   case MONITOR_CHANGE_BAUD:
20     //This command, and ONLY this command, does not reply.
21     setbaud(cmddata[0]);
22     //txdata(app,verb,0);
23     break;
24   }
25 }