Index: firmware/App/Tasks/TaskTimer.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r4459be59bdc2896b44bcf6cd42d2762190e23c16 --- firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision 4459be59bdc2896b44bcf6cd42d2762190e23c16) @@ -15,31 +15,43 @@ * ***************************************************************************/ -//#include "gio.h" - -#include "WatchdogMgmt.h" -#include "Timers.h" +#include "CPLD.h" #include "TaskTimer.h" +#include "WatchdogMgmt.h" +#include "Timers.h" -/************************************************************************* - * @brief taskTimer +/** + * @addtogroup TaskTimer + * @{ + */ + +/*********************************************************************//** + * @brief * The taskTimer function handles the scheduled Timer Task interrupt. * Calls the Timers executive to maintain a 1ms timer counter to * support timer and timeout functions. * @details * Inputs : none - * Outputs : Executive for Timers called. + * Outputs : Executive for Timers called. + * @return none *************************************************************************/ 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 } - - + +/**@}*/