Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: CDMS_HK.h
- Revision:
- 351:a89a46894ec0
- Parent:
- 348:8e6b2b4d244e
diff -r 961baed4572d -r a89a46894ec0 CDMS_HK.h --- a/CDMS_HK.h Sun Jan 22 03:48:18 2017 +0000 +++ b/CDMS_HK.h Sun Jan 22 04:47:11 2017 +0000 @@ -492,13 +492,13 @@ SD_FAULTCOUNT++; SD_STATUS = (SD_FAULTCOUNT == 3) ? DEVICE_DISABLED :DEVICE_OC_FAULT; if(SD_FAULTCOUNT == 3) { - FCTN_CDMS_WR_FLASH(2,DEVICE_DISABLED); + WRITE_TO_EEPROM(2,DEVICE_DISABLED); gPC.printf("Declaring SD card permanantly Disabled"); } } else { SD_STATUS = DEVICE_POWERED; if(SD_STATUS != DEVICE_POWERED) - FCTN_CDMS_WR_FLASH(2,DEVICE_POWERED); + WRITE_TO_EEPROM(2,DEVICE_POWERED); SD_FAULTCOUNT = 0; } } @@ -519,13 +519,13 @@ BAE_FAULTCOUNT++; BAE_STATUS = (BAE_FAULTCOUNT == 3)?DEVICE_DISABLED:DEVICE_OC_FAULT; if(BAE_FAULTCOUNT == 3) { - FCTN_CDMS_WR_FLASH(1,DEVICE_DISABLED); + WRITE_TO_EEPROM(1,DEVICE_DISABLED); gPC.printf("Declaring BAE permanantly Disabled"); } } else { BAE_STATUS = DEVICE_POWERED; if(SD_STATUS != DEVICE_POWERED); - FCTN_CDMS_WR_FLASH(1,DEVICE_POWERED); + WRITE_TO_EEPROM(1,DEVICE_POWERED); BAE_FAULTCOUNT = 0; } } @@ -556,7 +556,7 @@ PL_FAULTCOUNT++; PL_STATUS = (PL_FAULTCOUNT == 3)?DEVICE_DISABLED:DEVICE_OC_FAULT; if(PL_FAULTCOUNT == 3) { - FCTN_CDMS_WR_FLASH(3,DEVICE_DISABLED); + WRITE_TO_EEPROM(3,DEVICE_DISABLED); gPC.printf("Declaring PL_BEE permanantly Disabled"); } } else { @@ -572,7 +572,7 @@ } PL_STATUS = DEVICE_ENABLED; if(PL_STATUS != DEVICE_ENABLED) - FCTN_CDMS_WR_FLASH(3,DEVICE_ENABLED); + WRITE_TO_EEPROM(3,DEVICE_ENABLED); PL_FAULTCOUNT = 0; } }