Repository for CDMS code

Dependencies:   SimpleDMA mbed-rtos mbed eeprom

Fork of COM_MNG_TMTC_SIMPLE by Shreesha S

Files at this revision

API Documentation at this revision

Comitter:
chaithanyarss
Date:
Wed Dec 21 06:06:32 2016 +0000
Parent:
328:2242ebc71be8
Child:
330:6ac9661f2e10
Commit message:
corrected Latest Time values

Changed in this revision

CDMS_HK.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
i2c.h Show annotated file Show diff for this revision Revisions of this file
--- a/CDMS_HK.h	Tue Dec 20 08:36:41 2016 +0000
+++ b/CDMS_HK.h	Wed Dec 21 06:06:32 2016 +0000
@@ -18,7 +18,6 @@
 AnalogIn COMRX_RSSI_volatge(PIN70);
 AnalogIn EPS_BTRY_VOLT (PIN54);
 
-
 DigitalOut SelectLinec3 (PIN79); // MSB of Select Lines
 DigitalOut SelectLinec2 (PIN78);
 DigitalOut SelectLinec1 (PIN76);
--- a/ThreadsAndFunctions.h	Tue Dec 20 08:36:41 2016 +0000
+++ b/ThreadsAndFunctions.h	Wed Dec 21 06:06:32 2016 +0000
@@ -36,7 +36,7 @@
         //wait(2);/*timeout to be decided*/
         if(dma)
         {
-            
+            TIME_LATEST_I2C_SPEED = FCTN_CDMS_RD_RTC() >> 7;   
             PL_RCV_SC_DATA_COUNTER++;
             gPAY_SPI->bulkRead_start();
             DMA_LED1 = !DMA_LED1; // added by samp
--- a/i2c.h	Tue Dec 20 08:36:41 2016 +0000
+++ b/i2c.h	Wed Dec 21 06:06:32 2016 +0000
@@ -45,6 +45,7 @@
         }
         if(((pdirr1 & 0x03000000)==0x03000000))//if SCL and SDA are both high
         {    
+            TIME_LATEST_I2C_SPEED = FCTN_CDMS_RD_RTC() >> 7;
             gPC.printf("\n\rData received from PL");
         }
         else 
@@ -79,6 +80,7 @@
         }
         if(((pdirw1 & 0x03000000)==0x03000000))
         {
+            TIME_LATEST_I2C_SPEED = FCTN_CDMS_RD_RTC() >> 7;
             gPC.printf("\n\r Data sent");        
         }
         else
@@ -112,6 +114,7 @@
         }
         if(((pdirr1 & 0x03000000)==0x03000000))//if SCL and SDA are both high
         {    
+            TIME_LATEST_I2C_BAE = FCTN_CDMS_RD_RTC() >> 7;
             //gPC.printf("\n\rData received from BAE");
         }
         else 
@@ -148,6 +151,7 @@
         }
         if(((pdirw1 & 0x03000000)==0x03000000))
         {
+            TIME_LATEST_I2C_BAE = FCTN_CDMS_RD_RTC() >> 7;
             //gPC.printf("\n\r Data sent");        
         }
         else