Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r31c4bf94671f58375d2e1dbbbb37b37c6949e0c4 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 31c4bf94671f58375d2e1dbbbb37b37c6949e0c4) @@ -15,10 +15,9 @@ * ***************************************************************************/ -//#include "gio.h" - #include "AlarmLamp.h" -#include "BloodFlow.h" +#include "BloodFlow.h" +#include "CPLD.h" #include "DialInFlow.h" #include "DialOutFlow.h" #include "OperationModes.h" @@ -50,6 +49,11 @@ *************************************************************************/ void taskGeneral( void ) { +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO high to indicate general task has begun executing + setCPLDLampGreen( PIN_SIGNAL_HIGH ); +#endif + // check in with watchdog manager checkInWithWatchdogMgmt( TASK_GENERAL ); // do this first to keep timing consistent with watchdog management @@ -105,7 +109,9 @@ execSystemCommTx(); } - // toggle GPIO to indicate general task has executed -// gioToggleBit( gioPORTB, 1 ); +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO low to indicate general task has finished executing + setCPLDLampGreen( PIN_SIGNAL_LOW ); +#endif }