vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Diff: TC.cpp
- Revision:
- 4:cc85cfaa2086
- Parent:
- 3:0c3f7c3fabc9
- Child:
- 5:c77b49508927
--- a/TC.cpp Tue Jun 16 09:04:53 2015 +0000 +++ b/TC.cpp Tue Jun 16 13:06:19 2015 +0000 @@ -408,25 +408,18 @@ { sc.printf("%d\r\r\n",telemetry_type2[i]); } - - for(int i=11;i<13;i++){ + for(int i=11;i<13;i++){ telemetry_type2[i]=crc_tm[i-11]; - } - for(int i=0;i<13;i++) - { sd_data[i]=telemetry_type2[i];} - initialise_card(); - int result= initialise_card(); - printf("initialise card result=%d\r\n",result); - disk_initialize(); + } + for(int i=0;i<13;i++) + sd_data[i]=telemetry_type2[i]; for(int i=13;i<512;i++) - { sd_data[i]='f';} - disk_write(sd_data, 1); - disk_read(sd_read_data,1); + sd_data[i]='f'; + FUNC_WR_SD(sd_data, 1); + FUNC_RD_SD(sd_read_data,1); sc.printf("data read from sd card\r\r\n"); for(int i=0;i<512;i++) - sc.printf("%d ",sd_read_data[i]); - TM_SD_BLOCK_NUMBER++; - + sc.printf("%d ",sd_read_data[i]); } else if((appdata[0]&0xF0)==0xF0){ sc.printf("SD_MNGR\r\r\n"); //tm is func_mngmt_service_tm