Index: NVDataMgmt.c =================================================================== diff -u -r25600e262d7af9eb612f37c8ae0ba94c9c6f240c -rec09e9200db7e5a52e82027c44374bb5d42d8406 --- NVDataMgmt.c (.../NVDataMgmt.c) (revision 25600e262d7af9eb612f37c8ae0ba94c9c6f240c) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision ec09e9200db7e5a52e82027c44374bb5d42d8406) @@ -8,7 +8,7 @@ * @file NVDataMgmt.c * * @author (last) Dara Navaei -* @date (last) 21-Dec-2022 +* @date (last) 17-Jan-2023 * * @author (original) Dara Navaei * @date (original) 12-Feb-2020 @@ -951,6 +951,20 @@ /*********************************************************************//** * @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 ) +{ + 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