Index: firmware/App/Tasks/TaskGeneral.c =================================================================== diff -u -r8bd1ae47aa13a843aa8abd6321ddc050deacb4a6 -r0a4dcd288d4347b85baaa0b07da568b6add5eac7 --- firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 8bd1ae47aa13a843aa8abd6321ddc050deacb4a6) +++ firmware/App/Tasks/TaskGeneral.c (.../TaskGeneral.c) (revision 0a4dcd288d4347b85baaa0b07da568b6add5eac7) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2023 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 TaskGeneral.c * -* @author (last) Sean Nash -* @date (last) 19-Aug-2021 +* @author (last) Dara Navaei +* @date (last) 17-Oct-2022 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -23,6 +23,7 @@ #include "DialInFlow.h" #include "DialOutFlow.h" #include "Fans.h" +#include "Integrity.h" #include "NVDataMgmt.h" #include "OperationModes.h" #include "PresOccl.h" @@ -34,7 +35,7 @@ #include "Temperatures.h" #include "Voltages.h" #include "WatchdogMgmt.h" - + /** * @addtogroup TaskGeneral * @{ @@ -52,7 +53,7 @@ * @return none *************************************************************************/ void taskGeneral( void ) -{ +{ #ifdef TASK_TIMING_OUTPUT_ENABLED // Set GPIO high to indicate general task has begun executing setCPLDLampGreen( PIN_SIGNAL_HIGH ); @@ -65,25 +66,26 @@ execSystemCommRx(); // Prevent most processing until UI has started communicating -#ifndef SIMULATE_UI if ( TRUE == uiCommunicated() ) -#endif { #ifndef BOARD_WITH_NO_HARDWARE // Monitor DG execDGInterfaceMonitor(); // Monitor pressure/occlusion sensors execPresOccl(); -#endif + // Monitor voltages execVoltagesMonitor(); // Monitor switches execSwitches(); // Monitor temperatures - execTemperatures(); + execTemperatures(); +#endif + // Monitor processor RAM status + execRAMMonitor(); // Run operation mode state machine execOperationModes(); @@ -107,24 +109,22 @@ // Monitor/Control fans execFans(); -#endif // Manage NVDataMgmt process record state machine execNVDataMgmtProcessRecord(); -#ifndef RM46_EVAL_BOARD_TARGET // Manage alarm state execAlarmMgmt(); #endif - + // Manage data to be transmitted to other sub-systems execSystemCommTx(); } #ifdef TASK_TIMING_OUTPUT_ENABLED // Set GPIO low to indicate general task has finished executing setCPLDLampGreen( PIN_SIGNAL_LOW ); -#endif +#endif } /**@}*/