Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -ra7bf3ca23ea37a61000379facae628a31b3ecc59 -rf308cc4c35eab630ebbbde405cfe47d049afeafb --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision a7bf3ca23ea37a61000379facae628a31b3ecc59) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f308cc4c35eab630ebbbde405cfe47d049afeafb) @@ -7,21 +7,23 @@ * * @file ModeInitPOST.c * -* @author (last) Sean Nash -* @date (last) 04-Jun-2020 +* @author (last) Quang Nguyen +* @date (last) 29-Jul-2020 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 * ***************************************************************************/ +#include "Accel.h" #include "CPLD.h" #include "FPGA.h" #include "OperationModes.h" #include "TemperatureSensors.h" #include "WatchdogMgmt.h" #include "ModeInitPOST.h" #include "Heaters.h" +#include "Pressures.h" /** * @addtogroup DGInitAndPOSTMode @@ -86,8 +88,9 @@ { case DG_POST_STATE_START: postState = DG_POST_STATE_FPGA; - // FOR TESTING REMOVE - //postState = POST_STATE_TEMPERATURE_SENSORS; +#ifdef SKIP_POST + postState = DG_POST_STATE_COMPLETED; +#endif break; case DG_POST_STATE_FPGA: @@ -105,6 +108,18 @@ postState = handlePOSTStatus( testStatus ); break; + case DG_POST_STATE_ACCELEROMETER: +#ifndef DISABLE_ACCELS + testStatus = execAccelTest(); +#else + testStatus = SELF_TEST_STATUS_PASSED; +#endif + + 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 @@ -179,7 +194,7 @@ * @details * Inputs : postPassed * Outputs : none - * @param testStatus + * @param testStatus status reported by last test * @return recommended next POST state *************************************************************************/ static DG_POST_STATE_T handlePOSTStatus( SELF_TEST_STATUS_T testStatus )