FM
Dependencies: SimpleDMA eeprom mbed-rtos mbed FreescaleIAP
Fork of CDMS_CODE by
Diff: main.cpp
- Revision:
- 105:5ce0337e7c15
- Parent:
- 104:a50ae79ca36e
- Child:
- 106:cd10ac5ad10e
- Child:
- 113:b8991d9e3b6c
diff -r a50ae79ca36e -r 5ce0337e7c15 main.cpp --- a/main.cpp Fri Jan 29 17:50:20 2016 +0000 +++ b/main.cpp Fri Jan 29 19:27:28 2016 +0000 @@ -27,7 +27,7 @@ #include "Compression.h" #include "ThreadsAndFunctions.h" -void set_sig(){gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);} +//void set_sig(){gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);} int main() { #if DEBUG @@ -59,7 +59,7 @@ gCS_ADF = 1; //FCTN_CDMS_INIT_RTC();/* rtc initialization*/ - FCTN_CDMS_SD_INIT();/* sd card initialization*/ +// FCTN_CDMS_SD_INIT();/* sd card initialization*/ // initialise_card(); // int result= initialise_card(); @@ -76,9 +76,9 @@ #if DEBUG gPC.puts("allocating threads\r\n"); #endif - gSCIENCE_THREAD = new Thread(SCIENCE_FUN); +// gSCIENCE_THREAD = new Thread(SCIENCE_FUN); // gPC.puts("step one complete\r\n"); - gSCIENCE_THREAD->set_priority(osPriorityBelowNormal); +// gSCIENCE_THREAD->set_priority(osPriorityBelowNormal); #if DEBUG gPC.puts("competed allocating threads\r\n"); #endif @@ -86,10 +86,10 @@ // *******************INITIALISATIONS END******************** RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic); - gCDMS_HK_TIMER.start(30000); + gCDMS_HK_TIMER.start(5000); /*starting the thread with signal*/ - set_sig(); +// set_sig(); /*Calculating Stack used*/