Latest FM Code with EEPROM

Dependencies:   FreescaleIAP SimpleDMA eeprom mbed-rtos mbed

Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by Team Fox

Revision:
338:d63eb331a67d
Parent:
333:cddef120cae3
Child:
340:d05e7b4b6690
Child:
342:77b0d59897f7
--- a/adf.h	Sun Jan 01 09:50:36 2017 +0000
+++ b/adf.h	Mon Jan 02 14:21:44 2017 +0000
@@ -273,9 +273,23 @@
                 COM_ADF_TMP |= secondbyte & 0xfc;
                 COM_ADF_TMP = 0.9474*(COM_ADF_TMP - 28) +28.2;
                 
-                gPC.printf("\n\rCOM_ADF_TMP : %d",COM_ADF_TMP);
-                uint8_t txcurr = (3.3*COM_TX_OC_FAULT)/(0.05)*100;
+                gPC.printf("\n\rCOM_ADF_TMP : %d \n",COM_ADF_TMP);
+                /*uint8_t txcurr = (3.3*COM_TX_OC_FAULT)/(0.05)*100;*///    ID_current
+                
+                
+                
     }
+    
+void get_com_oc_sw_status()
+{
+    COM_OC_SET = 1;
+    if (COM_TX_OC_FAULT){\
+         com_oc_sw_status = 0x1;\
+    }\
+    else{\
+        com_oc_sw_status = 0;\
+    }\
+} 
 
 bool hardware_reset(int bcn_call)
 {
@@ -459,6 +473,7 @@
     check_status;\
     /*gPC.printf("I 0x%X\r\n",(int)status);*/\
     if(IRQ){\
+        get_com_oc_sw_status();\
         /*gPC.printf("det\r\n");*/\
         if(!ADF_off) {\
             if(finish_write_data || restart_adf_flag) {\