Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -rf688e0f8bded1f0a687437e3136cfba8b14f87b6 -r01892698468068bb97a80a84c96a6d7c5d6fde9b --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f688e0f8bded1f0a687437e3136cfba8b14f87b6) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 01892698468068bb97a80a84c96a6d7c5d6fde9b) @@ -16,21 +16,21 @@ ***************************************************************************/ #include "reg_crc.h" // Used to hold reset reason code at startup before bits get cleared -#include "reg_system.h" // Used to access exception status registers for reset reason code at startup #include "system.h" -//#include "AlarmLamp.h" +#include "AlarmLamp.h" //#include "BloodFlow.h" //#include "Buttons.h" -//#include "Compatible.h" -//#include "CPLD.h" +#include "Compatible.h" +#include "CpldInterface.h" //#include "Fans.h" -//#include "FPGA.h" +#include "FpgaTD.h" //#include "Integrity.h" #include "Messaging.h" #include "ModeInitPOST.h" //#include "NVDataMgmt.h" #include "OperationModes.h" +#include "PAL.h" //#include "PresOccl.h" //#include "SyringePump.h" #include "SystemCommTD.h" @@ -483,10 +483,10 @@ // when the event data can be sent if ( ++startPOSTDelayCounter > START_POST_DELAY_COUNT ) { - U32 resetReason = systemREG1->SYSESR | crcREG->PSA_SIGREGL1; // power-on reset bit preserved in an unused CRC register + U32 resetReason = getSystemREG1_SYSECR() | getCrcREG_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. - crcREG->PSA_SIGREGL1 = 0; // clear preserved power-on reset bit. + setSystemREG1_SYSECR( getSystemREG1_SYSECR() ); // clear reset bit(s) after logging event so subsequent resets can be properly identified as not being power-on resets. + setCrcREG_PSA_SIGREGL1( 0 ); // clear preserved power-on reset bit. // sendUIVersionRequest(); // request UI to send us its version - needed for compatibility check