@@ -1,6 +1,6 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: bin/fsw |
|
2 | # Makefile for building: bin/fsw | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.5) on: T |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.5) on: Thu Nov 21 17:20:36 2013 | |
4 | # Project: fsw-qt.pro |
|
4 | # Project: fsw-qt.pro | |
5 | # Template: app |
|
5 | # Template: app | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile fsw-qt.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile fsw-qt.pro | |
@@ -10,7 +10,7 | |||||
10 |
|
10 | |||
11 | CC = sparc-rtems-gcc |
|
11 | CC = sparc-rtems-gcc | |
12 | CXX = sparc-rtems-g++ |
|
12 | CXX = sparc-rtems-g++ | |
13 |
DEFINES = -DSW_VERSION_N1=1 -DSW_VERSION_N2=0 -DSW_VERSION_N3=0 -DSW_VERSION_N4= |
|
13 | DEFINES = -DSW_VERSION_N1=1 -DSW_VERSION_N2=0 -DSW_VERSION_N3=0 -DSW_VERSION_N4=1 -DPRINT_MESSAGES_ON_CONSOLE | |
14 | CFLAGS = -pipe -O3 -Wall $(DEFINES) |
|
14 | CFLAGS = -pipe -O3 -Wall $(DEFINES) | |
15 | CXXFLAGS = -pipe -O3 -Wall $(DEFINES) |
|
15 | CXXFLAGS = -pipe -O3 -Wall $(DEFINES) | |
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I../src -I../header |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I../src -I../header |
@@ -11,7 +11,7 SWVERSION=-1-0 | |||||
11 | DEFINES += SW_VERSION_N1=1 # major |
|
11 | DEFINES += SW_VERSION_N1=1 # major | |
12 | DEFINES += SW_VERSION_N2=0 # minor |
|
12 | DEFINES += SW_VERSION_N2=0 # minor | |
13 | DEFINES += SW_VERSION_N3=0 # patch |
|
13 | DEFINES += SW_VERSION_N3=0 # patch | |
14 |
DEFINES += SW_VERSION_N4= |
|
14 | DEFINES += SW_VERSION_N4=1 # internal | |
15 |
|
15 | |||
16 | contains( CONFIG, verbose ) { |
|
16 | contains( CONFIG, verbose ) { | |
17 | DEFINES += PRINT_MESSAGES_ON_CONSOLE |
|
17 | DEFINES += PRINT_MESSAGES_ON_CONSOLE |
@@ -1,6 +1,6 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by QtCreator 2.8.1, 2013-11- |
|
3 | <!-- Written by QtCreator 2.8.1, 2013-11-21T16:58:13. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -146,8 +146,7 enum apid_destid{ | |||||
146 | OBCP, |
|
146 | OBCP, | |
147 | SYSTEM_CONTROL, |
|
147 | SYSTEM_CONTROL, | |
148 | AOCS, |
|
148 | AOCS, | |
149 |
RPW_INTERNAL |
|
149 | RPW_INTERNAL | |
150 | UNKNOWN |
|
|||
151 | }; |
|
150 | }; | |
152 | // SEQUENCE COUNTERS |
|
151 | // SEQUENCE COUNTERS | |
153 | #define SEQ_CNT_MAX 16383 |
|
152 | #define SEQ_CNT_MAX 16383 |
@@ -469,12 +469,10 void increment_seq_counter_destination_i | |||||
469 | i = RPW_INTERNAL; |
|
469 | i = RPW_INTERNAL; | |
470 | break; |
|
470 | break; | |
471 | default: |
|
471 | default: | |
472 |
i = |
|
472 | i = GROUND; | |
473 | break; |
|
473 | break; | |
474 | } |
|
474 | } | |
475 |
|
475 | |||
476 | if (i != UNKNOWN) |
|
|||
477 | { |
|
|||
478 |
|
|
476 | segmentation_grouping_flag = TM_PACKET_SEQ_CTRL_STANDALONE << 8; | |
479 |
|
|
477 | sequence_cnt = sequenceCounters_TC_EXE[ i ] & 0x3fff; | |
480 |
|
478 | |||
@@ -492,10 +490,5 void increment_seq_counter_destination_i | |||||
492 |
|
|
490 | { | |
493 |
|
|
491 | sequenceCounters_TC_EXE[ i ] = 0; | |
494 |
|
|
492 | } | |
495 | } |
|
|||
496 | else |
|
|||
497 | { |
|
|||
498 | DEBUG_PRINTF1("in increment_seq_counter_destination_id *** ERR destination ID %d not known\n", destination_id) |
|
|||
499 | } |
|
|||
500 |
|
493 | |||
501 | } |
|
494 | } |
@@ -1198,10 +1198,12 void increment_seq_counter_source_id( un | |||||
1198 | } |
|
1198 | } | |
1199 | else |
|
1199 | else | |
1200 | { |
|
1200 | { | |
1201 | sequence_cnt = &sequenceCounters_TC_EXE[ UNKNOWN ]; |
|
1201 | sequence_cnt = NULL; | |
1202 | PRINTF1("in increment_seq_counter_source_id *** ERR apid_destid %d not known\n", sid) |
|
1202 | PRINTF1("in increment_seq_counter_source_id *** ERR apid_destid %d not known\n", sid) | |
1203 | } |
|
1203 | } | |
1204 |
|
1204 | |||
|
1205 | if (sequence_cnt != NULL) | |||
|
1206 | { | |||
1205 | segmentation_grouping_flag = (packet_sequence_control[ 0 ] & 0xc0) << 8; |
|
1207 | segmentation_grouping_flag = (packet_sequence_control[ 0 ] & 0xc0) << 8; | |
1206 | *sequence_cnt = (*sequence_cnt) & 0x3fff; |
|
1208 | *sequence_cnt = (*sequence_cnt) & 0x3fff; | |
1207 |
|
1209 | |||
@@ -1210,7 +1212,7 void increment_seq_counter_source_id( un | |||||
1210 | packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8); |
|
1212 | packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8); | |
1211 | packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control ); |
|
1213 | packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control ); | |
1212 |
|
1214 | |||
1213 |
// increment the se |
|
1215 | // increment the sequence counter for the next packet | |
1214 | if ( *sequence_cnt < SEQ_CNT_MAX) |
|
1216 | if ( *sequence_cnt < SEQ_CNT_MAX) | |
1215 | { |
|
1217 | { | |
1216 | *sequence_cnt = *sequence_cnt + 1; |
|
1218 | *sequence_cnt = *sequence_cnt + 1; | |
@@ -1219,5 +1221,5 void increment_seq_counter_source_id( un | |||||
1219 | { |
|
1221 | { | |
1220 | *sequence_cnt = 0; |
|
1222 | *sequence_cnt = 0; | |
1221 | } |
|
1223 | } | |
1222 |
|
||||
1223 | } |
|
1224 | } | |
|
1225 | } |
General Comments 0
You need to be logged in to leave comments.
Login now