FM
Dependencies: SimpleDMA eeprom mbed-rtos mbed FreescaleIAP
Fork of CDMS_CODE by
Diff: main.cpp
- Revision:
- 274:5c02ff05f3da
- Parent:
- 272:5be8e2449dc3
- Child:
- 278:1d837d6dfb6e
diff -r cfcf3b1cc886 -r 5c02ff05f3da main.cpp --- a/main.cpp Fri Jul 22 01:30:11 2016 +0000 +++ b/main.cpp Sat Jul 23 09:55:17 2016 +0000 @@ -58,11 +58,11 @@ gCS_RTC = 1; gCS_ADF = 1; - //FCTN_CDMS_INIT_RTC();/* rtc initialization*/ + FCTN_CDMS_INIT_RTC();/* rtc initialization*/ FCTN_CDMS_SD_INIT();/* sd card initialization*/ - /*uint8_t test[512] = {0}; + uint8_t test[512] = {0}; disk_write(test,7000); //to be used only just before launch #if DEBUG @@ -92,6 +92,7 @@ master.frequency(400000); HK_counter = new RtosTimer(hk_isr, osTimerPeriodic,(void * )NULL); + gHK_THREAD->signal_set(HK_SIGNAL); //HK_counter->start(10000); sys_reset_cdms_timer = new RtosTimer(sys_pwr_reset, osTimerPeriodic, (void * )NULL); @@ -99,7 +100,7 @@ /*PL_wo_dma = new RtosTimer(payload_isr_fun_dma, osTimerPeriodic,(void * )NULL); PL_wo_dma->start(6000);*/ - /*gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);*/ + gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL); /*Timeout flipper; flipper.attach(BAE_TC,31);*/