
Compression code changed and RLY_TMTC pointers managed
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: main.cpp
- Revision:
- 196:c51bf4993f75
- Parent:
- 193:f76b475d7807
- Child:
- 197:1369ef45b49e
--- a/main.cpp Wed Jun 29 15:23:12 2016 +0000 +++ b/main.cpp Thu Jun 30 10:19:00 2016 +0000 @@ -97,6 +97,11 @@ FCTN_CDMS_INIT_RTC();/* rtc initialization*/ FCTN_CDMS_SD_INIT();/* sd card initialization*/ + + uint8_t test[512] = {0}; + disk_write(test,7000); //to be used only just before launch + + #if DEBUG gPC.puts("welcome to mng_tmtc\r\n"); #endif @@ -121,16 +126,6 @@ PL_wo_dma = new RtosTimer(payload_isr_fun_dma, osTimerPeriodic,(void * )NULL); //PL_wo_dma->start(6000);// - uint8_t buffer1[512],buffer2[512]; - for(int i = 0;i<512;i++) - buffer1[i] = 3; - - int r = SD_WRITE(buffer1,0,2); -// wait_ms(8); - int q = SD_READ(buffer2, 0,2); - for(int i = 0; i<512;i++) - gPC.printf(" 0x%02X 0x%02X %d %d\r\n",buffer1[i],buffer2[i],r,q); - // *******************INITIALISATIONS END********************