June 30

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
ee12b079
Date:
Thu Apr 21 12:45:12 2016 +0000
Parent:
171:31bdf83591a1
Child:
173:f81ded27423d
Commit message:
testing...21_apr

Changed in this revision

COM_MNG_TMTC.h Show annotated file Show diff for this revision Revisions of this file
ThreadsAndFunctions.h Show annotated file Show diff for this revision Revisions of this file
adf.h Show annotated file Show diff for this revision Revisions of this file
--- a/COM_MNG_TMTC.h	Wed Apr 20 12:58:58 2016 +0000
+++ b/COM_MNG_TMTC.h	Thu Apr 21 12:45:12 2016 +0000
@@ -1237,7 +1237,7 @@
                             /*SEND call sign, ACK_L1, NON OBSRS TM TO GS*/\
                             snd_tm.head_pointer(tm_ptr_head);\
                             gPC.puts("enter_adf\r\n");\
-                            /*transmit_adf;*/\
+                            transmit_adf;\
                             gPC.puts("exit_adf\r\n");\ 
                             /*DELETE THE TM AFTER USE*/\
                             tm_ptr = tm_ptr_head;\
@@ -1265,7 +1265,7 @@
                             /*read_TC(current_TC);*/\
                             execute_OBSRS_TC(current_TC);\
                             gPC.puts("enter_adf\r\n");\
-                            /*transmit_adf;*/\
+                            transmit_adf;\
                             gPC.puts("exit_adf\r\n");\
                             uint8_t tempExec = TC_STATE_SUCCESSFULLY_EXECUTED;\
                             PUTexec_status(current_TC, tempExec);\
--- a/ThreadsAndFunctions.h	Wed Apr 20 12:58:58 2016 +0000
+++ b/ThreadsAndFunctions.h	Thu Apr 21 12:45:12 2016 +0000
@@ -286,7 +286,11 @@
     gPAY_SPI.format(8,0);
     gPAY_SPI.bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun);
     gPAY_SPI.bulkRead_start();
-     
+    gPAY_SPI.bulkRead_end();
+    gPAY_SPI.frequency(1000000);
+    gPAY_SPI.format(8,0);
+    gPAY_SPI.bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun);
+    gPAY_SPI.bulkRead_start();
     while(true){
         gPC.puts("entering sci\r\n");
         gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
--- a/adf.h	Wed Apr 20 12:58:58 2016 +0000
+++ b/adf.h	Thu Apr 21 12:45:12 2016 +0000
@@ -1,5 +1,5 @@
 //without reset feature , with state checks.
-DigitalIn IRQ(ADF_IRQ);
+InterruptIn IRQ(ADF_IRQ);
 //Ticker ticker;
  
 bool loop_on;