Dummy program to demonstrate problems: working code
Dependencies: SLCD mbed-rtos mbed
Fork of MNG_TC by
Diff: MNG_TC.h
- Revision:
- 9:934fdce72b3d
- Parent:
- 8:cb93c1d3209a
diff -r cb93c1d3209a -r 934fdce72b3d MNG_TC.h --- a/MNG_TC.h Mon Jul 13 10:21:45 2015 +0000 +++ b/MNG_TC.h Thu Jul 16 06:53:38 2015 +0000 @@ -218,51 +218,53 @@ } TM_list* execute_obosc(TC_list *tc_ptr){ -// printf("inside execute obosc\r\n"); - unsigned char service_subtype = (tc_ptr->TC_string[2]) & 0x0F; - unsigned char num = 0; - unsigned char psc = 0x00; - switch( service_subtype ){ - case 0x01: - // disable tc - num = tc_ptr->TC_string[4]; - psc = tc_ptr->TC_string[3]; - - for(int i = 0 ; i < num ; ++i){ - TC_list *tcp = VAR_SPACE::Head_node; - while( tcp != NULL ){ - if(tcp->packet_seq_count == psc){ - tcp->enabled = false; - ++psc; - break; - } - } - } - break; - case 0x02: - // enable tc - num = tc_ptr->TC_string[4]; - psc = tc_ptr->TC_string[3]; - - for(int i = 0 ; i < num ; ++i){ - TC_list *tcp = VAR_SPACE::Head_node; - while( tcp != NULL ){ - if(tcp->packet_seq_count == psc){ - tcp->enabled = true; - ++psc; - break; - } - } - } - break; - case 0x05: - // retry executin of tc - psc = tc_ptr->TC_string[3]; - - break; - } - // generate ackL234 return NULL; +//// printf("inside execute obosc\r\n"); +// unsigned char service_subtype = (tc_ptr->TC_string[2]) & 0x0F; +// unsigned char num = 0; +// unsigned char psc = 0x00; +// switch( service_subtype ){ +// case 0x01: +// // disable tc +// num = tc_ptr->TC_string[4]; +// psc = tc_ptr->TC_string[3]; +// +// for(int i = 0 ; i < num ; ++i){ +// TC_list *tcp = VAR_SPACE::Head_node; +// while( tcp != NULL ){ +// if(tcp->packet_seq_count == psc){ +// tcp->enabled = false; +// ++psc; +// break; +// } +// } +// } +// break; +// case 0x02: +// // enable tc +// num = tc_ptr->TC_string[4]; +// psc = tc_ptr->TC_string[3]; +// +// for(int i = 0 ; i < num ; ++i){ +// TC_list *tcp = VAR_SPACE::Head_node; +// while( tcp != NULL ){ +// if(tcp->packet_seq_count == psc){ +// tcp->enabled = true; +// ++psc; +// break; +// } +// } +// } +// break; +// case 0x05: +// // retry executin of tc +// psc = tc_ptr->TC_string[3]; +// +// break; +// } +// TM_list *tm_ptr = new TM_list; +// tm_ptr->TM_string; +// return NULL; } bool sdCardOp(TC_list* tc_ptr){