
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 198:17200a427e71, committed 2016-06-30
- Comitter:
- ee12b079
- Date:
- Thu Jun 30 13:01:42 2016 +0000
- Parent:
- 197:1369ef45b49e
- Child:
- 199:9f03d6ca94c9
- Commit message:
- Can be tested wih BAE bypasing COM, obsrs tc to be tested
Changed in this revision
--- a/COM_MNG_TMTC.h Thu Jun 30 10:51:38 2016 +0000 +++ b/COM_MNG_TMTC.h Thu Jun 30 13:01:42 2016 +0000 @@ -217,9 +217,14 @@ { //printf("receiving...\r\n"); - FCTN_I2C_READ((char*)tm_pointer->TM_string,135); + int r = FCTN_I2C_READ((char*)tm_pointer->TM_string,135); //printf("%s", tm_pointer->TM_string); - received+=1; + if(r) + { + received = 0; + } + else received = 1; + break; //only for testing purpose } else
--- a/COM_SND_TM.h Thu Jun 30 10:51:38 2016 +0000 +++ b/COM_SND_TM.h Thu Jun 30 13:01:42 2016 +0000 @@ -354,6 +354,7 @@ if(Tframe_c >= LAST_SEGMENT_SIZE && segment_r == 0) { + memset(interleave_data, 0, sizeof(interleave_data)); repeat_data_f = true; DS_index = !DS_index; }
--- a/i2c.h Thu Jun 30 10:51:38 2016 +0000 +++ b/i2c.h Thu Jun 30 13:01:42 2016 +0000 @@ -41,7 +41,7 @@ PYLD_I2C_GPIO = 0; } -void FCTN_I2C_READ(char *data,int length) +int FCTN_I2C_READ(char *data,int length) { CDMS_I2C_GPIO = 1; //t_read.start(); @@ -60,6 +60,7 @@ CDMS_I2C_GPIO = 0; //gPC.printf("\n\r %d \n",t.read_us()); //t.reset(); + return read_ack; } void FCTN_I2C_WRITE(char *data,uint8_t tc_len2)