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:
- 140:be4eea8275c3
- Parent:
- 139:1018e1dc82e9
- Child:
- 142:83f48d1a1bc5
diff -r 1018e1dc82e9 -r be4eea8275c3 OBSRS.h --- a/OBSRS.h Sat Mar 12 14:07:32 2016 +0000 +++ b/OBSRS.h Sat Mar 12 14:57:36 2016 +0000 @@ -185,6 +185,7 @@ enable_SCH = true;\ half_buffer = 1;\ counter_FCCH80 = 0;\ + counter_interleavedata = 0;\ }\ }\ }\ @@ -271,6 +272,7 @@ snd_tm.head_pointer(callsign);\ int temp = snd_tm.make_shor_tm();\ delete callsign;\ + gPC.printf("new tc\r\n");\ }\ else{\ enable_read_block = true;\ @@ -285,6 +287,7 @@ if (counter_SCH40 == 5)\ { \ counter_SCH40 = 0;\ + gPC.printf("sch40 sent\r\n");\ enable_SCH = false;\ enable_DS = true;\ }\ @@ -292,10 +295,13 @@ else if (enable_DS)\ {\ buffer_112[counter_buffer_112] = interleave_data[half_buffer][counter_interleavedata++];\ + gPC.printf("sending ds\r\n");\ if (counter_interleavedata == 144)\ { \ enable_DS = false;\ enable_FCCH = true;\ + counter_interleavedata = 0;\ + gPC.printf("ds sent sent\r\n");\ }\ }\ else if (enable_FCCH)\ @@ -308,13 +314,14 @@ enable_SCH = true;\ half_buffer = 1;\ counter_FCCH80 = 0;\ + gPC.printf("fcch sent\r\n");\ }\ }\ }\ if((counter_interleavedata == 144) && (half_buffer ==1)){\ counter_interleavedata = 0;\ half_buffer =0;\ - enable_call_sign = false;\ + enable_call_sign = false;\ new_session =false;\ /*cout<<"call_sign_sent"<<" ";*/\ T_frames_sent = T_frames_sent+2;\ @@ -344,6 +351,7 @@ } + void send_tm_from_SD_card_fun(){ for(counter_buffer_112=0;counter_buffer_112<112;counter_buffer_112++){ if(enable_new_segment){ // starting new segment @@ -438,7 +446,7 @@ adf_limit = true; segments_sent++; // gPC.printf("segments_sent = "<<segments_sent<<ENDL; -// gPC.printf("in for adf limit reached"); +// gPC.printf("in for adf lim reached"); } else{ enable_new_segment = true; @@ -627,7 +635,7 @@ gPC.printf("sid = %u \r\n",SID); gPC.printf("FSC = %u\r\n",FSC); - gPC.puts("exit_sdcard"); +// gPC.puts("exit_sdcard"); // SID = 0x1; // FSC = 10;