Index: TestSupport.c =================================================================== diff -u -rcfcb74543a2ed539a5b224723bc8fd2990c14a86 -rbb4952a602ec8ee91f2d04bd24e8270b7511dcaf --- TestSupport.c (.../TestSupport.c) (revision cfcb74543a2ed539a5b224723bc8fd2990c14a86) +++ TestSupport.c (.../TestSupport.c) (revision bb4952a602ec8ee91f2d04bd24e8270b7511dcaf) @@ -8,7 +8,7 @@ * @file TestSupport.c * * @author (last) Dara Navaei -* @date (last) 26-Apr-2023 +* @date (last) 19-Oct-2023 * * @author (original) Sean Nash * @date (original) 10-Aug-2021 @@ -28,12 +28,13 @@ #define TEST_CONFIG_ENABLE_KEY 0xDABA36B2 ///< Release software configuration enable key. #define TEST_CONFIG_DISABLE_KEY 0x00000000 ///< Release software configuration disable key. -#define DIALIN_CHECK_IN_TIMEOUT_MS ( 5 * SEC_PER_MIN * MS_PER_SECOND ) ///< Dialin check in timeout in milliseconds. +#define DIALIN_CHECK_IN_TIMEOUT_MS ( 8 * MIN_PER_HOUR * SEC_PER_MIN * MS_PER_SECOND ) ///< Dialin check in timeout in milliseconds. // ********** private data ********** static U32 testConfig[ NUM_OF_TEST_CONFIGS ]; ///< Release software configuration. static U32 dialinCheckInTimeStamp; ///< Dialin checkin time stamp. +static BOOL signalRecoverFromFaultMode; ///< Boolean flag to allow the user to recover from fault mode in test configurations. // ********** private function prototypes ********** @@ -151,12 +152,13 @@ * @brief * The initTestConfigs function initializes the test software configurations. * @details Inputs: none - * @details Outputs: testConfig + * @details Outputs: signalRecoverFromFaultMode * @return none *************************************************************************/ void initTestConfigs( void ) { resetAllTestConfigs(); + signalRecoverFromFaultMode = FALSE; } /*********************************************************************//** @@ -338,14 +340,46 @@ if ( ( TRUE == didTimeout( dialinCheckInTimeStamp, DIALIN_CHECK_IN_TIMEOUT_MS ) ) && ( TRUE == isTestingActivated() ) ) { - // If the user has logged in and the check in from dialin has expired, set the status to true + // If the dialin check in has timed out and tester has logged in check for the expiration value status = TRUE; } - // TODO remove when the dialin portion has been implemented - status = FALSE; - // TODo remove when the dialin portion has been implemented + return status; +} +/*********************************************************************//** + * @brief + * The setRecoverFromFaultModeSignal function sets the recover from fault + * mode signal upon receiving it from the user. + * @details Inputs: none + * @details Outputs: signalRecoverFromFaultMode + * @return none + *************************************************************************/ +void setRecoverFromFaultModeSignal( void ) +{ + if ( TRUE == isTestingActivated() ) + { + signalRecoverFromFaultMode = TRUE; + } +} + +/*********************************************************************//** + * @brief + * The hasRecoverFromFaultModeBeenSet function returns the status of the + * recover from fault mode signal + * @details Inputs: none + * @details Outputs: signalRecoverFromFaultMode + * @return TRUE is the user is logged in and the signal is TRUE, otherwise FLASE + *************************************************************************/ +BOOL hasRecoverFromFaultModeBeenSet( void ) +{ + BOOL status = FALSE; + + if ( TRUE == isTestingActivated() ) + { + status = signalRecoverFromFaultMode; + } + return status; }