Index: firmware/App/Tasks/TaskPriority.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r31c4bf94671f58375d2e1dbbbb37b37c6949e0c4 --- firmware/App/Tasks/TaskPriority.c (.../TaskPriority.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Tasks/TaskPriority.c (.../TaskPriority.c) (revision 31c4bf94671f58375d2e1dbbbb37b37c6949e0c4) @@ -15,11 +15,10 @@ * ***************************************************************************/ -//#include "gio.h" - #include "InternalADC.h" #include "BloodFlow.h" -#include "Buttons.h" +#include "Buttons.h" +#include "CPLD.h" #include "DialInFlow.h" #include "DialOutFlow.h" #include "FPGA.h" @@ -37,6 +36,11 @@ *************************************************************************/ void taskPriority( void ) { +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO high to indicate priority task has begun executing + setCPLDLampRed( PIN_SIGNAL_HIGH ); +#endif + // prevent most processing until UI has started communicating #ifndef SIMULATE_UI if ( TRUE == uiCommunicated() ) @@ -67,8 +71,10 @@ // check in with watchdog manager checkInWithWatchdogMgmt( TASK_PRIORITY ); - - // toggle GPIO to indicate priority task has executed -// gioToggleBit( gioPORTB, 3 ); + +#ifdef TASK_TIMING_OUTPUT_ENABLED + // set GPIO low to indicate priority task has finished executing + setCPLDLampRed( PIN_SIGNAL_LOW ); +#endif }