#include #include "SystemCommRO.h" #include "TaskTimer.h" #include "Timers.h" #include "WatchdogMgmt.h" /** * @addtogroup TaskBackground * @{ */ // ********** private definitions ********** #define MAX_TIME_FOR_UI_TO_COMMUNICATE_MS ( 2 * SEC_PER_MIN * MS_PER_SECOND ) ///< Maximum time we wait for UI to communicate after power up (2 minutes). // ********** private data ********** static U32 startUICommTimeout; // TODo is this needed? ///< Timer counter for UI to begin communicating. // ********** private function prototypes ********** /*********************************************************************//** * @brief * The taskBackground function handles the idle Background Task loop. * @details \b Alarm: ALARM_ID_TD_UI_COMM_POST_FAILED if UI has not started * communicating within 2 minutes of power up. * @details \b Inputs: none * @details \b Outputs: Background task functions are called. * @return none *************************************************************************/ void taskBackground( void ) { startUICommTimeout = getMSTimerCount(); #ifndef _VECTORCAST_ // Cannot have infinite loop in unit test tool while ( 1 ) #endif { // Manage the watchdog execWatchdogMgmt(); // // // Manage Non-volatile data manager // execNVDataMgmt(); } } /**@}*/