Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r9302e1bd2413cbf99e80ac51aac38502d94801d9 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 9302e1bd2413cbf99e80ac51aac38502d94801d9) @@ -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" @@ -45,11 +44,15 @@ * @details * Inputs : none * Outputs : Executive for the TBD called. - * @param none * @return none *************************************************************************/ 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 +108,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 }