Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -rf3a862d594f4cef30b08a5bf337189a42c8776d6 -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f3a862d594f4cef30b08a5bf337189a42c8776d6) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2023 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file ModeInitPOST.c * -* @author (last) Dara Navaei -* @date (last) 07-Apr-2023 +* @author (last) Sean Nash +* @date (last) 08-Aug-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -383,6 +383,20 @@ /*********************************************************************//** * @brief + * The getDGPOSTPassed function gets the POST passed status of the DG sub-system. + * @details Inputs: dgPOSTPassed, dgPOSTResultReceived + * @details Outputs: none + * @return TRUE if DG POST result received and passed, FALSE if not + *************************************************************************/ +BOOL getDGPOSTPassed( void ) +{ + BOOL result = ( TRUE == dgPOSTResultReceived && TRUE == dgPOSTPassed ? TRUE : FALSE ); + + return result; +} + +/*********************************************************************//** + * @brief * The signalUIVersion function records the reported UI version information. * @details Inputs: none * @details Outputs: uiVersion @@ -517,7 +531,8 @@ { U32 resetReason = systemREG1->SYSESR | crcREG->PSA_SIGREGL1; // power-on reset bit preserved in an unused CRC register - systemREG1->SYSESR = systemREG1->SYSESR; // clear reset bit(s) after logging event so subsequent resets can be properly identified as not being power-on resets. + systemREG1->SYSESR = systemREG1->SYSESR; // clear reset bit(s) after logging event so subsequent resets can be properly identified as not being power-on resets. + crcREG->PSA_SIGREGL1 = 0; // clear preserved power-on reset bit. sendUIVersionRequest(); // request UI to send us its version - needed for compatibility check