publishing to check changes in cdms code
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE_samp_23SEP_DMA_flag by
Diff: OBSRS.h
- Revision:
- 149:827e23febfdf
- Parent:
- 148:46763854fa83
- Child:
- 154:9aec89c8cdc7
diff -r 46763854fa83 -r 827e23febfdf OBSRS.h --- a/OBSRS.h Wed Apr 06 10:22:10 2016 +0000 +++ b/OBSRS.h Wed Apr 06 13:04:35 2016 +0000 @@ -8,7 +8,7 @@ // Illegal TC Case 3 ackl234new->TM_string[2] = (000_0010) = 0x_2; spare = 0 00000010 = 0x02 invalid SID #define TMID_ACK_L234 0xB -#define T_frames_in_segment 20 +#define T_frames_in_segment 40 using namespace std; Base_tc *current_obsrs_tc = NULL; @@ -503,13 +503,14 @@ create_Ack_andcallsign = false; Base_tm *ack_and_callsign = NULL; Base_tm *ack_head = NULL; - get_call_sign(ack_and_callsign); +// get_call_sign(ack_and_callsign); + get_ack_l234(ack_and_callsign); ack_head = ack_and_callsign; - get_ack_l1(ack_and_callsign->next_TM); + get_ack_l1(ack_and_callsign->next_TM); while(ack_and_callsign->next_TM != NULL){ ack_and_callsign = ack_and_callsign->next_TM; } - get_ack_l234(ack_and_callsign->next_TM); + get_call_sign(ack_and_callsign->next_TM); snd_tm.head_pointer_sdcard(ack_head); T_frame_in_Ackandcallsign = 2*snd_tm.make_shor_tm(); /* gPC.printf(" T_frame_in_Ackandcallsign = %d\r\n",T_frame_in_Ackandcallsign);*/ @@ -580,7 +581,6 @@ else{ read_success = SD_READ(buffer_512, list_of_FSC[block_counter],SID); } - ack_code = read_success; block_counter++; if(block_counter == no_of_frames){ last_block=true; @@ -588,6 +588,7 @@ enable_read_block = false; if(read_success == 0){ // cout<<"read one block successfully"<<" "; + ack_code = 0xA0; enable_T_frame = true; enable_SCH = true; }