projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[goodfet]
/
firmware
/
apps
/
monitor
/
monitor.c
diff --git
a/firmware/apps/monitor/monitor.c
b/firmware/apps/monitor/monitor.c
index
323691f
..
218afca
100644
(file)
--- a/
firmware/apps/monitor/monitor.c
+++ b/
firmware/apps/monitor/monitor.c
@@
-22,6
+22,10
@@
void monitorhandle(unsigned char app,
default:
debugstr("ERROR: Command unsupported by debug monitor.");
break;
default:
debugstr("ERROR: Command unsupported by debug monitor.");
break;
+ case MONITOR_ECHO:
+ //Echo back the same buffer.
+ txdata(app,verb,len);
+ break;
case PEEK:
cmddata[0]=memorybyte[cmddataword[0]];
txdata(app,verb,1);
case PEEK:
cmddata[0]=memorybyte[cmddataword[0]];
txdata(app,verb,1);
@@
-75,6
+79,10
@@
void monitorhandle(unsigned char app,
silent=cmddata[0];
txdata(app,verb,1);
break;
silent=cmddata[0];
txdata(app,verb,1);
break;
+ case MONITOR_CONNECTED:
+ msp430_init_dco_done();
+ txdata(app,verb,0);
+ break;
}
}
}
}
@@
-89,7
+97,9
@@
void monitor_ram_pattern(){
txdata(0x00,0x90,0);
//Reboot
txdata(0x00,0x90,0);
//Reboot
+ #ifdef MSP430
asm("br &0xfffe");
asm("br &0xfffe");
+ #endif
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.
}
//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.