I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Revision:
122:b99f8be0a51a
Parent:
120:d79297a4f89d
Child:
124:7f0d823c5881
--- a/COM_MNG_TMTC.h	Sat Feb 06 20:06:25 2016 +0000
+++ b/COM_MNG_TMTC.h	Sun Feb 07 05:28:56 2016 +0000
@@ -37,29 +37,9 @@
 // typeof tm_ptr: Base_tm
 // typeof tc_ptr: Base_tc
 // typeof temp_xxxx: uint8_t
-#define fill_l1_ack(tm_ptr) {\
-    tm_ptr->next_TM = NULL;\
-    tm_ptr->TM_string[0] = TMID_ACK_L1 << 4;\
-    /*PENDING: PA TEMPERATURE*/\
-    tm_ptr->TM_string[1] = gTOTAL_INCORRECT_SIZE_TC & 0xFF;\
-    tm_ptr->TM_string[2] = gTOTAL_CRC_FAIL_TC & 0xFF;\
-}
+
 
-#define put_crc_l1_ack(tm_ptr) {\
-    tm_ptr->TM_string[2] = gTOTAL_CRC_FAIL_TC & 0xFF;\
-    /*TC LIST STATUS*/\
-    tm_ptr->TM_string[3] |= (gMASTER_STATE << 5) & 0xE0;\
-    /*PA HOT*/\
-    if( gFLAGS & COM_PA_HOT_FLAG ){\
-        tm_ptr->TM_string[3] |= (1 << 4);\
-    }\
-    else{\
-        tm_ptr->TM_string[3] &= ~(1 << 4);\
-    }\
-    uint16_t crc_checksum = crc16_gen(tm_ptr->TM_string, TM_SHORT_SIZE-2);\
-    tm_ptr->TM_string[TM_SHORT_SIZE-2] = (crc_checksum >> 8) & 0xFF;\
-    tm_ptr->TM_string[TM_SHORT_SIZE-1] = crc_checksum & 0xFF;\
-}
+
 
 #define detect_ack(tm_ptr, temp_ack, tc_psc) {\
     if( tm_ptr != NULL ){\
@@ -113,10 +93,7 @@
     }\
 }
 
-#define isPAhot(returnHere){\
-    /*PENDING : COMPLETE THIS FUNCTION*/\
-    returnHere = 0xFF;\
-}
+
 
 void after_cooling_pa(){
     gCOM_MNG_TMTC_THREAD->signal_set(COM_MNG_TMTC_SIGNAL_UART_INT);