Index: firmware/App/Modes/ModeInitPOST.h =================================================================== diff -u -rb64c49fdcf2b6d95e61e63f8e258c4e600935bbd -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 --- firmware/App/Modes/ModeInitPOST.h (.../ModeInitPOST.h) (revision b64c49fdcf2b6d95e61e63f8e258c4e600935bbd) +++ firmware/App/Modes/ModeInitPOST.h (.../ModeInitPOST.h) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) @@ -1,30 +1,47 @@ /************************************************************************** - * - * Copyright (c) 2019-2020 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.h - * - * @date 19-Sep-2019 - * @author S. Nash - * - * @brief Header file for Initialization and POST Mode. - * - **************************************************************************/ +* +* 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.h +* +* @author (last) Dara Navaei +* @date (last) 24-Oct-2021 +* +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 +* +***************************************************************************/ #ifndef __MODE_INIT_POST_H__ #define __MODE_INIT_POST_H__ #include "DGCommon.h" +#include "DGDefs.h" -// ********** private function prototypes ********** +/** + * @defgroup DGInitAndPOSTMode DGInitAndPOSTMode + * @brief Initialization and POST mode module. Manages initialization and POST mode functions via a state machine. + * + * @addtogroup DGInitAndPOSTMode + * @{ + */ +// ********** public definitions ********** + +// ********** public function prototypes ********** + void initInitAndPOSTMode( void ); // initialize this module -void transitionToInitAndPOSTMode( void ); // prepares for transition to init. & POST mode -void execInitAndPOSTMode( void ); // execute the init. & POST mode state machine (call from OperationModes) +U32 transitionToInitAndPOSTMode( void ); // prepares for transition to init. & POST mode +U32 execInitAndPOSTMode( void ); // execute the init. & POST mode state machine (call from OperationModes) + +DG_POST_STATE_T getCurrentInitAndPOSTState( void ); // get the current state of the init. & POST mode. + BOOL isPOSTCompleted( void ); BOOL isPOSTPassed( void ); +/**@}*/ + #endif