To fix the hang problem
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: OBSRS.h
- Revision:
- 321:42bdefc37270
- Parent:
- 301:701ac67649b7
- Child:
- 328:2242ebc71be8
--- a/OBSRS.h Thu Dec 08 15:17:24 2016 +0000 +++ b/OBSRS.h Sat Dec 10 11:49:13 2016 +0000 @@ -1,6 +1,7 @@ // problem in check pa and valid sid not sending anything in one for loop - +#ifndef OBSRS_H // To make sure you don't declare the function more than once by including the header multiple times. +#define OBSRS_H // no error case 2 ackl234new->TM_string[2] = (101_0000) = 0x_0; spare = 0 10100000 = 0xA0 // Hardware failure Case 4 ackl234new->TM_string[2] = (100_0101) = 0x_5; spare = 0 10000101 = 0x85 comes from cdms ask pradeep @@ -32,7 +33,6 @@ bool Ack_andcallsign_over = false; bool repeat_last_2T_frames = false; bool last_block = false; -bool last_buffer = false; bool new_OBSRS_TC = true; bool enable_SCH = true; bool enable_FCCH = false; @@ -42,7 +42,6 @@ //bool session_over = gFLAGS & COM_SESSION_TIMEOUT_FLAG; uint8_t SID ; -unsigned char buffer_112[112]; uint32_t FSC; uint16_t read_success = false; uint16_t counter_buffer_112=0, counter_EoS=0,T_frames_sent=0; @@ -145,7 +144,7 @@ Ack_andcallsign_over = false;\ repeat_last_2T_frames = false;\ last_block = false;\ - last_buffer = false;\ +/* last_buffer = false;*/\ new_OBSRS_TC = true;\ enable_SCH = true;\ enable_FCCH = false;\ @@ -355,7 +354,7 @@ }\ } -void send_tm_from_SD_card_fun(){ +void send_tm_from_SD_card_fun(unsigned char * buffer_112,bool & last_buffer){ /* gPC.printf("\n\rsend tm sd called\r\n");*/ for(counter_buffer_112=0;counter_buffer_112<112;counter_buffer_112++){ if(restart_adf_flag) @@ -689,4 +688,6 @@ // send_tm_from_SD_card(); // } // } -} \ No newline at end of file +} + +#endif \ No newline at end of file