working version
Dependencies: mbed mbed-rtos SimpleDMA FreescaleIAP eeprom
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: CDMS_PL.h
- Revision:
- 245:da9d1bd999da
- Parent:
- 225:e6a3ffe4a530
- Child:
- 255:642ea552ac77
--- a/CDMS_PL.h Sat Jul 09 13:11:25 2016 +0000 +++ b/CDMS_PL.h Sun Jul 10 13:47:26 2016 +0000 @@ -29,10 +29,6 @@ #define UNEXECUTED 0x00000003 //also used as mask for EXEC_STATUS -DigitalOut PYLD_DFF(PIN73); -DigitalOut PYLD_DFF_CLK(PIN65); -DigitalOut PYLD_EPS_DFF_PWR(PIN64); -DigitalOut PYLD_EPS_DFF_PWR_CLK(PIN40); Base_tm* FCTN_CDMS_RLY_TMTC(Base_tc *tc_ptr); // waiting 1us for setup time,hold time and propagation delay @@ -78,7 +74,14 @@ tm_ptr_standby = FCTN_CDMS_RLY_TMTC(pl_tc_standby);\ VERIFY_TM(tm_ptr_standby);\ delete pl_tc_standby;\ - delete tm_ptr_standby;\ + Base_tm *temp;\ + temp = tm_ptr_standby;\ + while(tm_ptr_standby!=NULL)\ + {\ + temp = temp->next_TM;\ + delete tm_ptr_standby;\ + tm_ptr_standby = temp;\ + }\ } //TC_string[0] should not be 0x00 @@ -104,7 +107,14 @@ tm_ptr_hibernate = FCTN_CDMS_RLY_TMTC(pl_tc_hibernate);\ VERIFY_TM(tm_ptr_hibernate);\ delete pl_tc_hibernate;\ - delete tm_ptr_hibernate;\ + Base_tm *temp;\ + temp = tm_ptr_hibernate;\ + while(tm_ptr_hibernate!=NULL)\ + {\ + temp = temp->next_TM;\ + delete tm_ptr_hibernate;\ + tm_ptr_hibernate = temp;\ + }\ } //TC_string[0] should not be 0x00 @@ -131,7 +141,14 @@ tm_ptr_science = FCTN_CDMS_RLY_TMTC(pl_tc_science);\ VERIFY_TM(tm_ptr_science);\ delete pl_tc_science;\ - delete tm_ptr_science;\ + Base_tm *temp;\ + temp = tm_ptr_science;\ + while(tm_ptr_science!=NULL)\ + {\ + temp = temp->next_TM;\ + delete tm_ptr_science;\ + tm_ptr_science = temp;\ + }\ } void print_processed_block(uint8_t index) {