Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Diff: main.cpp
- Revision:
- 193:f76b475d7807
- Parent:
- 192:f0d5fde60221
- Child:
- 196:c51bf4993f75
diff -r f0d5fde60221 -r f76b475d7807 main.cpp --- a/main.cpp Tue Jun 28 09:51:56 2016 +0000 +++ b/main.cpp Wed Jun 29 14:12:43 2016 +0000 @@ -119,9 +119,17 @@ master.frequency(400000); PL_wo_dma = new RtosTimer(payload_isr_fun_dma, osTimerPeriodic,(void * )NULL); - PL_wo_dma->start(6000);// + //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******************** @@ -130,7 +138,8 @@ //gCDMS_HK_TIMER.start(5000); /*starting the thread with signal*/ -// set_sig(); + //set_sig(); + //payload_isr_fun(); /*Calculating Stack used*/