I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Revision:
113:b8991d9e3b6c
Parent:
105:5ce0337e7c15
Child:
114:9fb55057b13f
--- a/main.cpp	Fri Jan 29 19:27:28 2016 +0000
+++ b/main.cpp	Fri Feb 05 11:58:07 2016 +0000
@@ -30,9 +30,6 @@
 //void set_sig(){gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);}
 int main()
 {
-    #if DEBUG
-    gPC.puts("welcome to mng_tmtc\r\n");
-    #endif
     //gLEDR = 1;
     
     // ******************INITIALISATIONS START******************
@@ -59,34 +56,29 @@
     gCS_ADF = 1;
     
     //FCTN_CDMS_INIT_RTC();/* rtc initialization*/
-//    FCTN_CDMS_SD_INIT();/* sd card initialization*/
-    
-    // initialise_card();
-    // int result= initialise_card();
-    // disk_initialize();    
+    FCTN_CDMS_SD_INIT();/* sd card initialization*/
     
-    // COM_TX
-    // *********************THE TEST
-    // cs_adf=1;
-    // *********************THE TEST
-
+    #if DEBUG
+    gPC.puts("welcome to mng_tmtc\r\n");
+    #endif
+    
     // COM_MNG_TMTC THREAD
     gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
     gCOM_MNG_TMTC_THREAD->set_priority(osPriorityAboveNormal);
     #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
     
     // *******************INITIALISATIONS END********************
     
-    RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic);
-    gCDMS_HK_TIMER.start(5000);
+    //RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic);
+    //gCDMS_HK_TIMER.start(5000);
     
     /*starting the thread with signal*/
 //    set_sig();