CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
134:4694fc291ce1
Parent:
117:bfdc807f3d3c
Child:
144:4c20fcc105ce
--- a/main.cpp	Tue Mar 01 12:35:49 2016 +0000
+++ b/main.cpp	Tue Mar 01 17:42:30 2016 +0000
@@ -43,8 +43,6 @@
 //    gRX_CURRENT_PTR = gRX_CURRENT_DATA_NODE->values;
     RX1M.attach(&rx_read, Serial::RxIrq);
     
-    // DEBUG
-    //gPC.puts("welcome to mng_tm_tc\r\n");
     gPC.baud(1200);
     
     // COMMON SPI
@@ -59,23 +57,20 @@
     FCTN_CDMS_INIT_RTC();/* rtc initialization*/
     FCTN_CDMS_SD_INIT();/* sd card initialization*/
     
-    #if DEBUG
-    gPC.puts("welcome to mng_tmtc\r\n");
-    #endif
-    
+    if (DEBUG)
+        gPC.puts("welcome to mng_tmtc\r\n");
+        
     // 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
+    if (DEBUG)
+        gPC.puts("allocating threads\r\n");
     gSCIENCE_THREAD = new Thread(SCIENCE_FUN);
    // gPC.puts("step one complete\r\n");
     gSCIENCE_THREAD->set_priority(osPriorityBelowNormal);
-    #if DEBUG
-    gPC.puts("competed allocating threads\r\n");
-    #endif
-    
+    if (DEBUG)
+        gPC.puts("competed allocating threads\r\n");
+        
     // *******************INITIALISATIONS END********************
     
     //RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic);