Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -r3cc737c39b4440e18abab95ef2f8b6aef13acba9 -r43ec4d03e577681a98ea4ed58082ffd6ab012fd3 --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 3cc737c39b4440e18abab95ef2f8b6aef13acba9) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 43ec4d03e577681a98ea4ed58082ffd6ab012fd3) @@ -1,18 +1,19 @@ -/**********************************************************************//** - * - * 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.c - * - * @date 11-Dec-2019 - * @author L. Baloa - * - * @brief Top-level state machine for the initialize & POST mode. - * - **************************************************************************/ +/************************************************************************** +* +* 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.c +* +* @author (last) Quang Nguyen +* @date (last) 29-Jul-2020 +* +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 +* +***************************************************************************/ #include "CPLD.h" #include "FPGA.h" @@ -21,6 +22,7 @@ #include "WatchdogMgmt.h" #include "ModeInitPOST.h" #include "Heaters.h" +#include "Pressures.h" /** * @addtogroup DGInitAndPOSTMode @@ -104,6 +106,11 @@ postState = handlePOSTStatus( testStatus ); break; + case DG_POST_STATE_PRESSURES: + testStatus = execPressureSelfTest(); + postState = handlePOSTStatus( testStatus ); + break; + case DG_POST_STATE_WATCHDOG: testStatus = execWatchdogTest(); handlePOSTStatus( testStatus ); // ignoring return value because last test