CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
267:783c248a6207
Parent:
266:ae588e75cfa4
Child:
268:ded5306a1fd1
--- a/main.cpp	Fri Jul 15 14:59:27 2016 +0000
+++ b/main.cpp	Sat Jul 16 16:04:14 2016 +0000
@@ -133,10 +133,12 @@
     BAE_tc(tm_ptr);    
 }
 
+uint8_t test_srp[]= {
+                    
+                    };
 
 int main()
-{
-    
+{    
     CDMS_I2C_GPIO = 0; 
     PL_I2C_GPIO = 0; 
     
@@ -147,7 +149,7 @@
     gRX_COUNT = 0;
     RX1M.attach(&rx_read, Serial::RxIrq);
     
-    gPC.baud(115200);//changed for bypassing COM
+    gPC.baud(9600);//changed for bypassing COM
     
     // COMMON SPI
     spi.format(8,0);
@@ -176,28 +178,26 @@
     // COM_POWER_ON_TX();
     
     // COM_MNG_TMTC THREAD
-    gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
+    /*gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
     gCOM_MNG_TMTC_THREAD->set_priority(osPriorityHigh);
     
     gHK_THREAD = new Thread(FCTN_CDMS_HK_MAIN);
     gHK_THREAD->set_priority(osPriorityAboveNormal);
     
     gSCIENCE_THREAD = new Thread(SCIENCE_FUN);
-    gSCIENCE_THREAD->set_priority(osPriorityAboveNormal);
+    gSCIENCE_THREAD->set_priority(osPriorityAboveNormal);*/
     
     #if DEBUG
     gPC.puts("completed allocating threads\r\n");
-    #endif
-    
-    
+    #endif 
     
     master.frequency(400000);
     
-    HK_counter = new RtosTimer(hk_isr, osTimerPeriodic,(void * )NULL);
+    /*HK_counter = new RtosTimer(hk_isr, osTimerPeriodic,(void * )NULL);
     HK_counter->start(10000);
     
     sys_reset_cdms_timer = new RtosTimer(sys_pwr_reset, osTimerPeriodic, (void * )NULL);
-    sys_reset_cdms_timer->start(cdms_reset_timeout);
+    sys_reset_cdms_timer->start(cdms_reset_timeout);*/
 
     /*PL_wo_dma = new RtosTimer(payload_isr_fun_dma, osTimerPeriodic,(void * )NULL);
     PL_wo_dma->start(6000);*/