Index: firmware/App/Services/WatchdogMgmt.c =================================================================== diff -u -r4d7d40a27130dc813d653f044cbb856b1b7d8481 -rdf70610b0fd07ef4757da8ab504ecc856e178fe1 --- firmware/App/Services/WatchdogMgmt.c (.../WatchdogMgmt.c) (revision 4d7d40a27130dc813d653f044cbb856b1b7d8481) +++ firmware/App/Services/WatchdogMgmt.c (.../WatchdogMgmt.c) (revision df70610b0fd07ef4757da8ab504ecc856e178fe1) @@ -49,7 +49,14 @@ static WATCHDOG_SELF_TEST_STATE_T watchdogSelfTestState; ///< Watchdog self-test current state. static SELF_TEST_STATUS_T watchdogSelfTestStatus; ///< Watchdog self-test status. -static U32 watchdogSelfTestTimerCount = 0; ///< Watchdog self-test timer count. +static U32 watchdogSelfTestTimerCount = 0; ///< Watchdog self-test timer count. + + +// Temporary variables +const U32 arrayLen = 40; +U32 testIndex = 0; +U32 petTime [ arrayLen ]; +// Temporary variables // ********** private function prototypes ********** @@ -102,8 +109,19 @@ // if all monitored tasks checked in, pet watchdog and clear the slate if ( ( TRUE == allTasksCheckedIn ) && ( didTimeout( lastWatchdogPetTime, MIN_WATCHDOG_PET_INTERVAL_MS ) ) ) - { - petWatchdog(); + { + // Test code TODO remove + petTime [ testIndex ] = calcTimeSince( lastWatchdogPetTime ); + + if ( testIndex == arrayLen - 1 ) + { + BOOL test = FALSE; + } + testIndex = INC_WRAP( testIndex, 0, arrayLen - 1 ); + + // Test code TODO remove + + petWatchdog(); resetWDTaskCheckIns(); }