
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 42:b7a4aac53314, committed 2016-01-09
- Comitter:
- Shashank7906
- Date:
- Sat Jan 09 10:40:09 2016 +0000
- Parent:
- 41:7e06018f6a1c
- Child:
- 43:4bc440bbad2f
- Child:
- 46:8a85dab29a40
- Commit message:
- Removed unwanted braces
Changed in this revision
COM_MNG_TMTC.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/COM_MNG_TMTC.h Sat Jan 09 10:24:14 2016 +0000 +++ b/COM_MNG_TMTC.h Sat Jan 09 10:40:09 2016 +0000 @@ -12,7 +12,7 @@ #include "pinconfig.h" #include "i2c.h" -//#include "Flash.h" +#include "Flash.h" #include "cdms_rtc.h" DigitalIn tm_status_4m_slv(PIN39); //I2C interrupt to CDMS from BAE @@ -498,10 +498,10 @@ { printf("sub_service:Read from RAM_Memory\r\n"); mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]); - { + Data[0] = FCTN_CDMS_RD_FLASH(0); Data[1] = FCTN_CDMS_RD_FLASH(1); - tm_pointer = new Long_tm; + //tm_pointer = new Long_tm; tm_pointer->TM_string[0] = 0x30; tm_pointer->TM_string[1] = GETpacket_seq_count(tc_ptr); tm_pointer->TM_string[2] = (uint8_t)(flash_counter); @@ -522,7 +522,7 @@ { printf("sub_service:Read from Flash_Memory\r\n"); mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]); - { + Data[0] = FCTN_CDMS_RD_FLASH(0); Data[1] = FCTN_CDMS_RD_FLASH(1); tm_pointer = new Long_tm; @@ -583,7 +583,7 @@ return tm_ptr; } break; - } + } case 0x8: {