Index: Accel.c =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- Accel.c (.../Accel.c) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ Accel.c (.../Accel.c) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -666,6 +666,18 @@ } return result; +} + +/*********************************************************************//** + * @brief + * The resetAccelPOSTState function resets the accelerometers POST state. + * @details Inputs: none + * @details Outputs: accelSelfTestState + * @return none + *************************************************************************/ +void resetAccelPOSTState( void ) +{ + accelSelfTestState = ACCELEROMETER_SELF_TEST_STATE_START; } Index: Accel.h =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- Accel.h (.../Accel.h) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ Accel.h (.../Accel.h) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -69,7 +69,9 @@ F32 getMeasuredAccelAxis( U32 axis ); F32 getMaxAccelAxis( U32 axis ); -SELF_TEST_STATUS_T execAccelTest( void ); +SELF_TEST_STATUS_T execAccelTest( void ); + +void resetAccelPOSTState( void ); BOOL testSetAccelDataPublishIntervalOverride( U32 value ); BOOL testResetAccelDataPublishIntervalOverride( void ); Index: NVDataMgmt.c =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- NVDataMgmt.c (.../NVDataMgmt.c) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -951,6 +951,21 @@ /*********************************************************************//** * @brief + * The resetNVDataMgmtPOSTState function resets the NV data management POST + * state and enqueues all the NV records to be read again from the NV memory. + * @details Inputs: none + * @details Outputs: nvDataMgmtSelfTestState, nvDataMgmtSelfTestResult + * @return none + *************************************************************************/ +void resetNVDataMgmtPOSTState( void ) +{ + enqueuePOSTReadRecords(); + nvDataMgmtSelfTestResult = SELF_TEST_STATUS_IN_PROGRESS; + nvDataMgmtSelfTestState = NVDATAMGMT_SELF_TEST_STATE_READ_RECORDS; +} + +/*********************************************************************//** + * @brief * The getNVRecord2Driver function copies the requested non-volatile * data into the provided buffer by the caller. The function then checks if * the non-volatile data is valid. If the data is not valid, it raises the Index: NVDataMgmt.h =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- NVDataMgmt.h (.../NVDataMgmt.h) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ NVDataMgmt.h (.../NVDataMgmt.h) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -126,6 +126,8 @@ BOOL isNewCalibrationRecordAvailable( void ); +void resetNVDataMgmtPOSTState( void ); + BOOL getNVRecord2Driver( NV_DATA_T nvData, U08* bufferAddress, U32 bufferLength, U08 numOfSnsrs2Check, ALARM_ID_T nvAlarm ); #ifndef _RELEASE_ Index: RTC.c =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- RTC.c (.../RTC.c) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ RTC.c (.../RTC.c) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -469,6 +469,18 @@ return lastEpochTime; } +/*********************************************************************//** + * @brief + * The resetRTCPOSTState resets the RTC POST state to start. + * @details Inputs: none + * @details Outputs: RTCSelfTestState + * @return none + *************************************************************************/ +void resetRTCPOSTState( void ) +{ + RTCSelfTestState = RTC_SELF_TEST_STATE_START; +} + #ifdef _DG_ /*********************************************************************//** * @brief @@ -1529,7 +1541,7 @@ * The handleSelfTestCheckRTCYear checks whether the year that has been set * in RTC is greater than 2021 or not. * @details Inputs: RTCSelfTestTimer - * Outputs : RTCSelfTestResult + * @details Outputs: RTCSelfTestResult * @return next state *************************************************************************/ static RTC_SELF_TEST_STATE_T handleSelfTestCheckRTCYear( void ) Index: RTC.h =================================================================== diff -u -r2c508d911fedf7fea1a081f449070aeed248b85c -r7634c10bca36cad0bb75cebaa0af802296a23f3a --- RTC.h (.../RTC.h) (revision 2c508d911fedf7fea1a081f449070aeed248b85c) +++ RTC.h (.../RTC.h) (revision 7634c10bca36cad0bb75cebaa0af802296a23f3a) @@ -69,6 +69,8 @@ U32 getRTCTimestamp( void ); +void resetRTCPOSTState( void ); + #ifdef _DG_ void signalSyncToHD( void ); BOOL syncDG2HDDateTime( void );