Index: firmware/App/Services/WatchdogMgmt.c =================================================================== diff -u -r78c03fb021407eaf8d17dd0f74f6969443b397ce -r30f049651877229042e3f8700c8596e5b9a1e0f4 --- firmware/App/Services/WatchdogMgmt.c (.../WatchdogMgmt.c) (revision 78c03fb021407eaf8d17dd0f74f6969443b397ce) +++ firmware/App/Services/WatchdogMgmt.c (.../WatchdogMgmt.c) (revision 30f049651877229042e3f8700c8596e5b9a1e0f4) @@ -74,7 +74,7 @@ watchdogSelfTestState = WATCHDOG_SELF_TEST_STATE_START; watchdogSelfTestStatus = SELF_TEST_STATUS_IN_PROGRESS; watchdogSelfTestTimerCount = 0; - // initialize task check-ins to false + // Initialize task check-ins to false for ( i = 0; i < NUM_OF_TASKS; i++ ) { watchdogTaskCheckedIn[ i ].data = FALSE; @@ -95,22 +95,22 @@ { BOOL allTasksCheckedIn; - // called by background task, so give bg task credit for checking in + // Called by background task, so give bg task credit for checking in checkInWithWatchdogMgmt( TASK_BG ); - // check to see if all monitored tasks have checked in + // Check to see if all monitored tasks have checked in allTasksCheckedIn = haveAllTasksCheckedIn(); - // if all monitored tasks checked in, pet watchdog and clear the slate + // If all monitored tasks checked in, pet watchdog and clear the slate if ( ( TRUE == allTasksCheckedIn ) && ( didTimeout( lastWatchdogPetTime, MIN_WATCHDOG_PET_INTERVAL_MS ) ) ) { petWatchdog(); resetWDTaskCheckIns(); } - // check to see if watchdog has expired + // Check to see if watchdog has expired if ( getCPLDWatchdogExpired() == PIN_SIGNAL_LOW ) { - // ignore expired watchdog until after watchdog POST + // Ignore expired watchdog until after watchdog POST if ( WATCHDOG_SELF_TEST_STATE_COMPLETE == watchdogSelfTestState ) { #ifndef DEBUG_ENABLED @@ -156,12 +156,12 @@ case WATCHDOG_SELF_TEST_STATE_START: watchdogSelfTestState = WATCHDOG_SELF_TEST_STATE_IN_PROGRESS; watchdogSelfTestTimerCount = getMSTimerCount(); - // no break here so we pass through directly to in progress processing + // No break here so we pass through directly to in progress processing case WATCHDOG_SELF_TEST_STATE_IN_PROGRESS: while ( FALSE == didTimeout( watchdogSelfTestTimerCount, WATCHDOG_POST_TIMEOUT_MS ) ) { - // waiting here for w.d. test period to prevent this task from checking in - watchdog should expire + // Waiting here for w.d. test period to prevent this task from checking in - watchdog should expire } if ( getCPLDWatchdogExpired() == PIN_SIGNAL_HIGH ) { @@ -185,7 +185,7 @@ break; case WATCHDOG_SELF_TEST_STATE_COMPLETE: - // if we get called in this state, assume we're doing self-test again + // If we get called in this state, assume we're doing self-test again watchdogSelfTestStatus = SELF_TEST_STATUS_IN_PROGRESS; watchdogSelfTestState = WATCHDOG_SELF_TEST_STATE_START; break; @@ -210,7 +210,7 @@ { U32 i; - // initialize task check-ins to false + // Initialize task check-ins to false for ( i = 0; i < NUM_OF_TASKS; i++ ) { watchdogTaskCheckedIn[ i ].data = FALSE; @@ -230,7 +230,7 @@ BOOL result = TRUE; U32 i; - // check that each task has checked in + // Check that each task has checked in for ( i = 0; i < NUM_OF_TASKS; i++ ) { if ( FALSE == hasTaskGeneralCheckedIn( i ) ) @@ -285,7 +285,7 @@ *************************************************************************/ static void petWatchdog( void ) { - // pulse the watchdog signal + // Pulse the watchdog signal toggleCPLDWatchdog(); // Remember when we last pet the watchdog