DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_MNG_TMTC.h
- Revision:
- 50:7e4aa9f82e05
- Parent:
- 47:5660bd20b146
--- a/COM_MNG_TMTC.h Tue Jan 12 13:12:16 2016 +0000 +++ b/COM_MNG_TMTC.h Wed Jan 13 14:36:54 2016 +0000 @@ -7,7 +7,7 @@ // WHAT IS TC exec code in L1 ack ? //Jan 7 -//added RLY_TMTC function +//added _TMTC function //added included related files #include "pinconfig.h" @@ -462,7 +462,7 @@ tm_print = tm_print->next_TM; //for check } received = 0; - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } else { @@ -480,7 +480,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } break; } @@ -516,7 +516,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,9); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } case 0x2: { @@ -540,7 +540,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,9); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } case 0x5: { @@ -561,7 +561,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } default: @@ -580,7 +580,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } break; } @@ -604,7 +604,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x02) @@ -621,7 +621,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x03) @@ -638,7 +638,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x04) @@ -655,7 +655,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x11) @@ -672,7 +672,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x12) @@ -689,7 +689,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x13) @@ -706,7 +706,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x14) @@ -723,7 +723,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x15) @@ -740,7 +740,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x16) @@ -757,7 +757,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x21) @@ -774,7 +774,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x22) @@ -791,7 +791,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x23) @@ -808,7 +808,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x24) @@ -825,7 +825,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x25) @@ -842,7 +842,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x26) @@ -859,7 +859,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x31) @@ -876,7 +876,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x32) @@ -893,7 +893,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x33) @@ -910,7 +910,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0x34) @@ -927,7 +927,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; break; } @@ -945,7 +945,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } else if(GETpid(tc_ptr)==0xF1) @@ -967,7 +967,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } else { @@ -985,7 +985,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; } } @@ -1007,7 +1007,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } } @@ -1048,7 +1048,7 @@ crc16 = crc16_gen(tm_ptr->TM_string,11); tm_pointer->TM_string[11] = (uint8_t)((crc16&0xFF00)>>8); tm_pointer->TM_string[12] = (uint8_t)(crc16&0x00FF); - return tm_ptr; + tm_pointer->next_TM = NULL; return tm_ptr; break; } }