This is the vcdMaker demo project. See http://vcdmaker.org for details. vcdMaker is supposed to help engineers to debug their applications and systems. It transforms text log files into the VCD format which can be easily displayed as a waveform.

Dependencies:   mbed vcdLogger vcdSignal

Revision:
0:9a59cffaafad
Child:
1:446154224f92
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Logger/serialLogger.cpp	Fri Feb 12 21:38:04 2016 +0000
@@ -0,0 +1,41 @@
+#include "serialLogger.hpp"
+#include "mbed.h"
+
+SerialLogger::SerialLogger(uint32_t n_Lines, uint32_t n_Characters) : Logger(n_Lines,n_Characters)
+{
+    serialOut = new Serial(USBTX, USBRX);
+    alarm = new DigitalOut(LED_GREEN);
+    rec_indicator = new DigitalOut(LED_RED);
+    
+    serialOut->baud(115200);
+    *alarm = 1;
+    *rec_indicator = 1;
+}
+
+SerialLogger::~SerialLogger()
+{
+    delete alarm;
+    delete serialOut;
+}
+    
+void SerialLogger::Printf(const char* line)
+{
+    serialOut->printf("%s\n\r", line);
+}
+    
+void SerialLogger::AlarmFull()
+{
+    *alarm = !*alarm;
+}
+
+uint32_t SerialLogger::StartAction()
+{
+    *rec_indicator = 0;
+    return 0;
+}
+
+uint32_t SerialLogger::StopAction()
+{
+    *rec_indicator = 1;
+    return 0;
+}
\ No newline at end of file