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

Committer:
ketjow
Date:
Wed Dec 07 09:16:38 2016 +0000
Revision:
3:6d5e16097db0
Sync signal added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ketjow 3:6d5e16097db0 1 #include "sync.hpp"
ketjow 3:6d5e16097db0 2
ketjow 3:6d5e16097db0 3 Sync::Sync(const string& name, const PinName pin, Logger& logger) : DigitalIn(pin), Signal(name,1,logger)
ketjow 3:6d5e16097db0 4 {
ketjow 3:6d5e16097db0 5 }
ketjow 3:6d5e16097db0 6
ketjow 3:6d5e16097db0 7 void Sync::PrintState()
ketjow 3:6d5e16097db0 8 {
ketjow 3:6d5e16097db0 9 string suffix("");
ketjow 3:6d5e16097db0 10 int32_t time_ref = 0;
ketjow 3:6d5e16097db0 11 if (read())
ketjow 3:6d5e16097db0 12 {
ketjow 3:6d5e16097db0 13 /* Do nothing */
ketjow 3:6d5e16097db0 14 }
ketjow 3:6d5e16097db0 15 else
ketjow 3:6d5e16097db0 16 {
ketjow 3:6d5e16097db0 17 string msg("Sync triggered");
ketjow 3:6d5e16097db0 18 PrintEvent(msg, time_ref);
ketjow 3:6d5e16097db0 19 }
ketjow 3:6d5e16097db0 20 }