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
Logger/serialLogger.cpp
- Committer:
- ketjow
- Date:
- 2016-12-07
- Revision:
- 3:6d5e16097db0
- Parent:
- 1:446154224f92
File content as of revision 3:6d5e16097db0:
/*! @file serialLogger.cpp The implementation of the serial logger class. @par Full Description The implementation of the serial logger class. @if REVISION_HISTORY_INCLUDED @par Edit History @li [0] wojciech.rynczuk@wp.pl 20-JAN-2015 Initial file revision. @endif @ingroup Logger @par Copyright (c) MMXV Wojciech Rynczuk Distributed under MIT License */ #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; }