/************************************************************************** * * Copyright (c) 2024-2024 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) Vinayakam Mani * @date (last) 26-Aug-2024 * * @author (original) Vinayakam Mani * @date (original) 05-Aug-2024 * ***************************************************************************/ #include "gio.h" #include "TaskTimer.h" #include "Timers.h" #include "WatchdogMgmt.h" /** * @addtogroup TaskPriority * @{ */ /*********************************************************************//** * @brief * The taskTimer function handles the scheduled Timer Task interrupt. * Calls the Timers executive to maintain a 1 ms timer counter to * support timer and timeout functions. * @details \b Inputs: none * @details \b Outputs: Executive for Timers called. *************************************************************************/ void taskTimer( void ) { #ifdef TASK_TIMING_OUTPUT_ENABLED // SET_TASK_ON(); // TODO - uncomment and define TASK_TIMING_OUTPUT_ENABLED to monitor this tasks timing #endif // increment ms timer count incMSTimerCount(); // check in with watchdog manager checkInWithWatchdogMgmt( TASK_TIMER ); #ifdef TASK_TIMING_OUTPUT_ENABLED // SET_TASK_OFF(); // TODO - uncomment and define TASK_TIMING_OUTPUT_ENABLED to monitor this tasks timing #endif } /**@}*/