Index: firmware/App/Tasks/TaskTimer.c =================================================================== diff -u -reff7b1575f008f81b29ef906f6346fac6012d3ab -r8e7158d8231435496fcf1d5649e51babf859ccc7 --- firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision eff7b1575f008f81b29ef906f6346fac6012d3ab) +++ firmware/App/Tasks/TaskTimer.c (.../TaskTimer.c) (revision 8e7158d8231435496fcf1d5649e51babf859ccc7) @@ -1,44 +1,56 @@ -/************************************************************************** - * - * Copyright (c) 2019-2019 Diality Inc. - All Rights Reserved. - * - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN - * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. - * - * @file TaskTimer.c - * - * @date 19-Sep-2019 - * @author S. Nash - * - * @brief Timer task handler. - * - **************************************************************************/ +/************************************************************************** +* +* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. +* +* THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +* WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +* +* @file TaskTimer.c +* +* @author (last) Sean Nash +* @date (last) 24-Sep-2020 +* +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 +* +***************************************************************************/ -#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. + * @details Inputs: none + * @details 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 } - - + +/**@}*/