Repository for CDMS code

Dependencies:   SimpleDMA mbed-rtos mbed eeprom

Fork of COM_MNG_TMTC_SIMPLE by Shreesha S

Revision:
93:4d76de54a699
Parent:
90:df55a5f68331
Child:
94:611c066467a1
diff -r bce22b38c440 -r 4d76de54a699 main.cpp
--- 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;