pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
93:4d76de54a699
Parent:
90:df55a5f68331
Child:
94:611c066467a1
--- a/main.cpp	Sat Jan 23 12:59:06 2016 +0000
+++ b/main.cpp	Sun Jan 24 09:30:22 2016 +0000
@@ -13,12 +13,12 @@
 #include "cdms_sd.h"
 #include "OBSRS.h"
 #include "adf.h"
-//#include "Compression.h"
 //#include "SDC_init.h"
 #include "COM_RCV_TC.h"
 #include "COM_MNG_TMTC.h"
 #include "COM_POWER_ON_TX.h"
 #include "COM_POWER_OFF_TX.h"
+#include "Compression.h"
 #include "ThreadsAndFunctions.h"
 
 int main()
@@ -45,6 +45,10 @@
     cs_sd = 1;
     gCS_RTC = 1;
     gCS_ADF = 1;
+    
+    FCTN_CDMS_INIT_RTC();/* rtc initialization*/
+    FCTN_CDMS_SD_INIT();/* sd card initialization*/
+    
     // initialise_card();
     // int result= initialise_card();
     // disk_initialize();    
@@ -57,6 +61,8 @@
     // COM_MNG_TMTC THREAD
     gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
     gCOM_MNG_TMTC_THREAD->set_priority(osPriorityAboveNormal);
+    gSCIENCE_THREAD = new Thread(SCIENCE_FUN);
+    gSCIENCE_THREAD->set_priority(osPriorityBelowNormal);
     // *******************INITIALISATIONS END********************
     
     int theAcount = 0;