Index: TestSupport.c =================================================================== diff -u -r21481ae11886c3a6d046eb06817fa70361817292 -r7c5eee0264f5ccf979ea279294194bd9a1b2ab44 --- TestSupport.c (.../TestSupport.c) (revision 21481ae11886c3a6d046eb06817fa70361817292) +++ TestSupport.c (.../TestSupport.c) (revision 7c5eee0264f5ccf979ea279294194bd9a1b2ab44) @@ -34,6 +34,7 @@ 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; } /*********************************************************************//** @@ -349,4 +351,40 @@ 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; +} + /**@}*/ Index: TestSupport.h =================================================================== diff -u -r7aaf36d98fc6f49394c72ae3472872f36feb44e3 -r7c5eee0264f5ccf979ea279294194bd9a1b2ab44 --- TestSupport.h (.../TestSupport.h) (revision 7aaf36d98fc6f49394c72ae3472872f36feb44e3) +++ TestSupport.h (.../TestSupport.h) (revision 7c5eee0264f5ccf979ea279294194bd9a1b2ab44) @@ -136,6 +136,8 @@ void setDialinCheckInTimeStamp( void ); BOOL hasDialinCheckInExpired( void ); +void setRecoverFromFaultModeSignal( void ); +BOOL hasRecoverFromFaultModeBeenSet( void ); /**@}*/