Index: firmware/App/Tasks/TaskTimer.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r31c4bf94671f58375d2e1dbbbb37b37c6949e0c4 --- firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision 31c4bf94671f58375d2e1dbbbb37b37c6949e0c4) @@ -15,11 +15,10 @@ * ***************************************************************************/ -//#include "gio.h" - -#include "WatchdogMgmt.h" -#include "Timers.h" +#include "CPLD.h" #include "TaskTimer.h" +#include "WatchdogMgmt.h" +#include "Timers.h" /************************************************************************* * @brief taskTimer @@ -32,14 +31,21 @@ *************************************************************************/ void taskTimer( void ) { +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO high to indicate timer task has begun executing + setCPLDLampBlue( PIN_SIGNAL_HIGH ); +#endif + // increment ms timer count incMSTimerCount(); // check in with watchdog manager checkInWithWatchdogMgmt( TASK_TIMER ); - - // toggle GPIO to indicate timer task has executed - //gioToggleBit( gioPORTB, 0 ); + +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO low to indicate timer task has finished executing + setCPLDLampBlue( PIN_SIGNAL_LOW ); +#endif }