serial debug Monitor
Diff: debugMonitor.cpp
- Revision:
- 0:de1f07a7cd82
- Child:
- 1:a2fab59c3b98
diff -r 000000000000 -r de1f07a7cd82 debugMonitor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debugMonitor.cpp Thu Aug 23 10:32:26 2018 +0000 @@ -0,0 +1,22 @@ +#include "debugMonitor.h" +#include "main.h" + +debugMonitor::debugMonitor(PinName tx, PinName rx) : serial(tx, rx) {} + +uint8_t debugMonitor::debugMonitor_Init(void) +{ + serial.baud(115200); + serial.printf("debugMonitor_Init\n"); + return(0); +} + +debugMonitor::~debugMonitor(void) { +}; + +void debugMonitor::debugMonitor_Job(void) +{ + if(serial.readable()) + { + serial.putc(serial.getc()); + } +} \ No newline at end of file