##// END OF EJS Templates
Bug 117
paul -
r143:f2e3909b2300 VHDLib206
parent child
Show More
@@ -2,6 +2,7 syntax: glob
2 *.pdf
2 *.pdf
3 *~
3 *~
4 *.o
4 *.o
5 *.zip
5 tests/*.err
6 tests/*.err
6 doc
7 doc
7 *.srec
8 *.srec
@@ -342,6 +342,11 void increment_seq_counter( unsigned cha
342 + packet_sequence_control[1]
342 + packet_sequence_control[1]
343 );
343 );
344
344
345 new_packet_sequence_control = segmentation_grouping_flag | sequence_cnt ;
346
347 packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8);
348 packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control );
349
345 if ( sequence_cnt < SEQ_CNT_MAX)
350 if ( sequence_cnt < SEQ_CNT_MAX)
346 {
351 {
347 sequence_cnt = sequence_cnt + 1;
352 sequence_cnt = sequence_cnt + 1;
@@ -350,11 +355,6 void increment_seq_counter( unsigned cha
350 {
355 {
351 sequence_cnt = 0;
356 sequence_cnt = 0;
352 }
357 }
353
354 new_packet_sequence_control = segmentation_grouping_flag | sequence_cnt ;
355
356 packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8);
357 packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control );
358 }
358 }
359
359
360 void getTime( unsigned char *time)
360 void getTime( unsigned char *time)
@@ -490,6 +490,14 void increment_seq_counter_destination_i
490 break;
490 break;
491 }
491 }
492
492
493 segmentation_grouping_flag = TM_PACKET_SEQ_CTRL_STANDALONE << 8;
494 sequence_cnt = sequenceCounters_TC_EXE[ i ] & 0x3fff;
495
496 new_packet_sequence_control = segmentation_grouping_flag | sequence_cnt ;
497
498 packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8);
499 packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control );
500
493 // increment the sequence counter
501 // increment the sequence counter
494 if ( sequenceCounters_TC_EXE[ i ] < SEQ_CNT_MAX )
502 if ( sequenceCounters_TC_EXE[ i ] < SEQ_CNT_MAX )
495 {
503 {
@@ -499,13 +507,4 void increment_seq_counter_destination_i
499 {
507 {
500 sequenceCounters_TC_EXE[ i ] = 0;
508 sequenceCounters_TC_EXE[ i ] = 0;
501 }
509 }
502
503 segmentation_grouping_flag = TM_PACKET_SEQ_CTRL_STANDALONE << 8;
504 sequence_cnt = sequenceCounters_TC_EXE[ i ] & 0x3fff;
505
506 new_packet_sequence_control = segmentation_grouping_flag | sequence_cnt ;
507
508 packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8);
509 packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control );
510
511 }
510 }
General Comments 0
You need to be logged in to leave comments. Login now