projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forgot to explicitly init silent=0.
[goodfet]
/
firmware
/
apps
/
monitor
/
monitor.c
diff --git
a/firmware/apps/monitor/monitor.c
b/firmware/apps/monitor/monitor.c
index
54d9cd0
..
4f36833
100644
(file)
--- a/
firmware/apps/monitor/monitor.c
+++ b/
firmware/apps/monitor/monitor.c
@@
-51,8
+51,8
@@
app_t const monitor_app = {
//! Handles a monitor command.
void monitor_handle_fn(uint8_t const app,
//! Handles a monitor command.
void monitor_handle_fn(uint8_t const app,
-
uint8_t const verb,
-
uint32_t const len)
+ uint8_t const verb,
+ uint32_t const len)
{
int i;
{
int i;
@@
-63,9
+63,10
@@
void monitor_handle_fn(uint8_t const app,
break;
case MONITOR_ECHO:
break;
case MONITOR_ECHO:
- //Echo back the same buffer.
- txdata(app,verb,len);
- break;
+ //Echo back the same buffer.
+ debugstr("About to monitor echo.");
+ txdata(app,verb,len);
+ break;
case MONITOR_LIST_APPS:
// transmit firmware build date
case MONITOR_LIST_APPS:
// transmit firmware build date
@@
-87,6
+88,8
@@
void monitor_handle_fn(uint8_t const app,
cmddata[0]=memorybyte[cmddataword[0]];
#else
debugstr("Monitor peeks are unsupported on this platform.");
cmddata[0]=memorybyte[cmddataword[0]];
#else
debugstr("Monitor peeks are unsupported on this platform.");
+ debughex(cmddataword[0]);
+ cmddata[0]=0x00;
#endif
txdata(app,verb,1);
break;
#endif
txdata(app,verb,1);
break;
@@
-98,6
+101,8
@@
void monitor_handle_fn(uint8_t const app,
cmddata[0] = memorybyte[cmddataword[0]];
#else
debugstr("Monitor pokes are unsupported on this platform.");
cmddata[0] = memorybyte[cmddataword[0]];
#else
debugstr("Monitor pokes are unsupported on this platform.");
+ debughex(cmddataword[0]);
+ cmddata[0]=0x00;
#endif
txdata(app,verb,1);
break;
#endif
txdata(app,verb,1);
break;
@@
-136,19
+141,8
@@
void monitor_handle_fn(uint8_t const app,
break;
case MONITOR_DIR:
break;
case MONITOR_DIR:
- //P5DIR=cmddata[0];
- debugstr("Command deprecated.");
- txdata(app,verb,1);
- break;
-
case MONITOR_IN:
case MONITOR_IN:
- //cmddata[0]=P5IN;
- debugstr("Command deprecated.");
- txdata(app,verb,1);
- break;
-
case MONITOR_OUT:
case MONITOR_OUT:
- //P5OUT=cmddata[0];
debugstr("Command deprecated.");
txdata(app,verb,1);
break;
debugstr("Command deprecated.");
txdata(app,verb,1);
break;