![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
.
Files at revision 4:107d2d3294da
Name | Size | Actions |
---|---|---|
[up] | ||
main.cpp | 2244 | Revisions Annotate |
mbed.bld | 65 | Revisions Annotate |
mon.cpp | 8821 | Revisions Annotate |
mon.h | 1421 | Revisions Annotate |
shell.cpp | 4692 | Revisions Annotate |
shell.h | 1374 | Revisions Annotate |
sio.cpp | 4401 | Revisions Annotate |
sio.h | 1336 | Revisions Annotate |