working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
354:eb6c863756a8
Parent:
353:e1803e801e20
Child:
356:197c93dc2012
--- a/DefinitionsAndGlobals.h	Tue Feb 21 06:30:56 2017 +0000
+++ b/DefinitionsAndGlobals.h	Sat Mar 11 05:52:18 2017 +0000
@@ -17,8 +17,8 @@
     #define SPI_CLK PTE2
     #define SPI_CS_ADF PTA15
     #define SPI_CS_SDC PIN20
-     #define SPI_CS_RTC PIN26 // actual
-  //   #define SPI_CS_RTC PIN60 // sbc with jumper v1.0
+  //   #define SPI_CS_RTC PIN26 // actual
+     #define SPI_CS_RTC PIN60 // sbc with jumper v1.0
     
 // COM_TX
     #define COM_TX_CONFIG_LIMIT 3
@@ -29,24 +29,24 @@
     
 //I2C - Payload to CDMS (need to change while using CDMS hardware);
     I2C master(PIN32,PIN31);
-    DigitalIn PL_I2C_Intr(PTC13);
-    DigitalOut PL_I2C_GPIO(PTC1);
+    DigitalIn PL_I2C_Intr(PTC13); //PIN89
+    DigitalOut PL_I2C_GPIO(PTC1); //PIN71
             
 //I2C - CDMS to BAE
   //  DigitalOut CDMS_I2C_GPIO(PIN67);//PTB21 from bae to cdms
   //  DigitalIn BAE_I2C_GPIO(PIN39);//PTA5 from cdms to bae 
     
- //   #define SBC 1
+    #define SBC 1
     
- //   #if SBC
- //   DigitalOut CDMS_I2C_GPIO(PIN67,1);
- //   DigitalIn BAE_I2C_GPIO(PIN1);
- //   #endif
+  //  #if SBC
+    DigitalOut CDMS_I2C_GPIO(PIN67,1);
+    DigitalIn BAE_I2C_GPIO(PIN1);
+  //  #endif
     
   //  #if !SBC
-    DigitalIn BAE_I2C_GPIO(PIN67);
-    DigitalOut CDMS_I2C_GPIO(PIN39,0);    
-   // #endif
+  //  DigitalIn BAE_I2C_GPIO(PIN67);
+  //  DigitalOut CDMS_I2C_GPIO(PIN39,0);    
+// #endif
 
 // TC LIST
     #define TCL_STATE_INCOMPLETE 0x00
@@ -155,8 +155,10 @@
     #define BAE_RESET_PID 0x33
 
 //RF RELAY
-    #define RF_RELAY_CNTRL_TX PTA12
-    #define RF_RELAY_CNTRL_BCN PTA7 
+  //  #define RF_RELAY_CNTRL_TX PTA12
+  //  #define RF_RELAY_CNTRL_BCN PTA7 
+  #define RF_RELAY_CNTRL_TX PTB7
+    #define RF_RELAY_CNTRL_BCN PTB17 
     
 //CDMS HK
 #define HK_SIGNAL 0x05
@@ -267,6 +269,7 @@
 bool BAE_HK_I2C;
 uint8_t RTC_STATUS;
 float RSSI_VOLTAGE;
+float RSSI_MAX;
 uint8_t COM_ADF_TMP = 0;
 uint8_t COM_PA_IC_TMP = 0;
 uint8_t BAE_HK_SD_DATA_READY = 0;
@@ -385,8 +388,9 @@
 uint8_t COM_RX_CURRENT_MAX;
 uint8_t COM_RX_DISABLE_TIMEOUT;
 uint8_t COM_PA_TMP_HIGH;
+uint8_t COM_PA_TMP_IN_TX;
 uint8_t COM_PA_RECOVERY_TIMEOUT;
-uint8_t COM_SESSION_TIMEOUT = 60;  //confirm with Anirudh 
+uint8_t COM_SESSION_TIMEOUT = 300;  //confirm with Anirudh 
 uint8_t COM_RSSI_MIN;
 uint16_t SD_LIB_BLK_CURRENT;