When debugging code it can be handy to examine/alter variables and to check the state of input lines. So your main program can run and you have access to alter variables and run functions from a terminal. In this sample the main program is just a loop that flashes an LED. In that loop a periodic call is made to ShellTC which handles any commands from the serial terminal. The code is a bit quirky(it was originally written for a very resource limited device) but it works well enough to be useful, hence its published. More details in the main.cpp

Dependencies:   mbed

.

Files at this revision

API Documentation at this revision

Comitter:
jont
Date:
Fri Oct 26 04:51:30 2012 +0000
Parent:
0:87e65dabdb95
Child:
2:1a5802e3eb30
Commit message:
Increased command buffer size to allow room for unix size.;

Changed in this revision

sio.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sio.cpp	Thu Oct 25 21:57:40 2012 +0000
+++ b/sio.cpp	Fri Oct 26 04:51:30 2012 +0000
@@ -31,7 +31,7 @@
 
 //why do we end up defineing true and false
 
-#define combuffsize  16                       
+#define combuffsize  32               
 void sioRXHandler(void);
 //horrible as this is platform depdndent but for now
 Serial pc(USBTX, USBRX); // tx, rx