CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
162:48fda0b8d573
Parent:
161:a63672bf4423
Child:
164:be3b4b760d0c
--- a/main.cpp	Thu Apr 14 04:14:21 2016 +0000
+++ b/main.cpp	Thu Apr 14 04:34:58 2016 +0000
@@ -4,6 +4,7 @@
 #include "mbed.h"
 
 #define DEBUG 1
+#define power_tx 0
 
 #include "SimpleDMA.h"
 #include "dmaSPIslave.h"
@@ -34,6 +35,9 @@
 //void set_sig(){gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);}
 int main()
 {
+    
+    
+    CDMS_I2C_GPIO = 0;  
     //gLEDR = 1;
     
     // ******************INITIALISATIONS START******************
@@ -69,13 +73,13 @@
     
     // COM_MNG_TMTC THREAD
     gCOM_MNG_TMTC_THREAD = new Thread(COM_MNG_TMTC_FUN);
-    gCOM_MNG_TMTC_THREAD->set_priority(osPriorityAboveNormal);
+    gCOM_MNG_TMTC_THREAD->set_priority(osPriorityHigh);
     #if DEBUG
     gPC.puts("allocating threads\r\n");
     #endif
     gSCIENCE_THREAD = new Thread(SCIENCE_FUN);
    // gPC.puts("step one complete\r\n");
-    gSCIENCE_THREAD->set_priority(osPriorityBelowNormal);
+    gSCIENCE_THREAD->set_priority(osPriorityAboveNormal);
     #if DEBUG
     gPC.puts("competed allocating threads\r\n");
     #endif