@@ -1,249 +1,249 | |||||
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: |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.5) on: Tue Jan 21 11:57:00 2014 | |
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++ CONFIG+=debug -o Makefile fsw-qt.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile fsw-qt.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
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=1 -DPRINT_MESSAGES_ON_CONSOLE -DDEBUG_MESSAGES |
|
13 | DEFINES = -DSW_VERSION_N1=1 -DSW_VERSION_N2=0 -DSW_VERSION_N3=0 -DSW_VERSION_N4=1 -DPRINT_MESSAGES_ON_CONSOLE -DDEBUG_MESSAGES | |
14 | CFLAGS = -pipe -g -O3 -Wall $(DEFINES) |
|
14 | CFLAGS = -pipe -g -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 | |
17 | LINK = sparc-rtems-g++ |
|
17 | LINK = sparc-rtems-g++ | |
18 | LFLAGS = -g |
|
18 | LFLAGS = -g | |
19 | LIBS = $(SUBLIBS) |
|
19 | LIBS = $(SUBLIBS) | |
20 | AR = sparc-rtems-ar rcs |
|
20 | AR = sparc-rtems-ar rcs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = sparc-rtems-strip |
|
29 | STRIP = sparc-rtems-strip | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = obj/ |
|
42 | OBJECTS_DIR = obj/ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = ../src/wf_handler.c \ |
|
46 | SOURCES = ../src/wf_handler.c \ | |
47 | ../src/tc_handler.c \ |
|
47 | ../src/tc_handler.c \ | |
48 | ../src/fsw_processing.c \ |
|
48 | ../src/fsw_processing.c \ | |
49 | ../src/fsw_misc.c \ |
|
49 | ../src/fsw_misc.c \ | |
50 | ../src/fsw_init.c \ |
|
50 | ../src/fsw_init.c \ | |
51 | ../src/fsw_globals.c \ |
|
51 | ../src/fsw_globals.c \ | |
52 | ../src/fsw_spacewire.c \ |
|
52 | ../src/fsw_spacewire.c \ | |
53 | ../src/tc_load_dump_parameters.c \ |
|
53 | ../src/tc_load_dump_parameters.c \ | |
54 | ../src/tm_lfr_tc_exe.c \ |
|
54 | ../src/tm_lfr_tc_exe.c \ | |
55 | ../src/tc_acceptance.c |
|
55 | ../src/tc_acceptance.c | |
56 | OBJECTS = obj/wf_handler.o \ |
|
56 | OBJECTS = obj/wf_handler.o \ | |
57 | obj/tc_handler.o \ |
|
57 | obj/tc_handler.o \ | |
58 | obj/fsw_processing.o \ |
|
58 | obj/fsw_processing.o \ | |
59 | obj/fsw_misc.o \ |
|
59 | obj/fsw_misc.o \ | |
60 | obj/fsw_init.o \ |
|
60 | obj/fsw_init.o \ | |
61 | obj/fsw_globals.o \ |
|
61 | obj/fsw_globals.o \ | |
62 | obj/fsw_spacewire.o \ |
|
62 | obj/fsw_spacewire.o \ | |
63 | obj/tc_load_dump_parameters.o \ |
|
63 | obj/tc_load_dump_parameters.o \ | |
64 | obj/tm_lfr_tc_exe.o \ |
|
64 | obj/tm_lfr_tc_exe.o \ | |
65 | obj/tc_acceptance.o |
|
65 | obj/tc_acceptance.o | |
66 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
66 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
67 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
67 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
68 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
68 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
69 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
69 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
70 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
70 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
71 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
71 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
72 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
72 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
73 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
73 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
74 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
74 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
75 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
75 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
76 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
76 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
77 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
77 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
78 | sparc.pri \ |
|
78 | sparc.pri \ | |
79 | /usr/lib64/qt4/mkspecs/features/debug.prf \ |
|
79 | /usr/lib64/qt4/mkspecs/features/debug.prf \ | |
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
80 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
81 | /usr/lib64/qt4/mkspecs/features/shared.prf \ |
|
81 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |
82 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
82 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
83 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
83 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
84 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
84 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
85 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
85 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
86 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
86 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
87 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
87 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
88 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
88 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
89 | fsw-qt.pro |
|
89 | fsw-qt.pro | |
90 | QMAKE_TARGET = fsw |
|
90 | QMAKE_TARGET = fsw | |
91 | DESTDIR = bin/ |
|
91 | DESTDIR = bin/ | |
92 | TARGET = bin/fsw |
|
92 | TARGET = bin/fsw | |
93 |
|
93 | |||
94 | first: all |
|
94 | first: all | |
95 | ####### Implicit rules |
|
95 | ####### Implicit rules | |
96 |
|
96 | |||
97 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
97 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
98 |
|
98 | |||
99 | .cpp.o: |
|
99 | .cpp.o: | |
100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
101 |
|
101 | |||
102 | .cc.o: |
|
102 | .cc.o: | |
103 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
103 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
104 |
|
104 | |||
105 | .cxx.o: |
|
105 | .cxx.o: | |
106 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
106 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
107 |
|
107 | |||
108 | .C.o: |
|
108 | .C.o: | |
109 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
109 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
110 |
|
110 | |||
111 | .c.o: |
|
111 | .c.o: | |
112 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
112 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
113 |
|
113 | |||
114 | ####### Build rules |
|
114 | ####### Build rules | |
115 |
|
115 | |||
116 | all: Makefile $(TARGET) |
|
116 | all: Makefile $(TARGET) | |
117 |
|
117 | |||
118 | $(TARGET): $(OBJECTS) |
|
118 | $(TARGET): $(OBJECTS) | |
119 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ |
|
119 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ | |
120 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
120 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | |
121 | { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && sparc-rtems-objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true |
|
121 | { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && sparc-rtems-objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true | |
122 |
|
122 | |||
123 | Makefile: fsw-qt.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
123 | Makefile: fsw-qt.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
124 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
124 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
125 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
125 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
126 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
126 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
127 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
127 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
128 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
128 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
129 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
129 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
130 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
130 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
131 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
131 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
132 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
132 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
133 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
133 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
134 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
134 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
135 | sparc.pri \ |
|
135 | sparc.pri \ | |
136 | /usr/lib64/qt4/mkspecs/features/debug.prf \ |
|
136 | /usr/lib64/qt4/mkspecs/features/debug.prf \ | |
137 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
137 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
138 | /usr/lib64/qt4/mkspecs/features/shared.prf \ |
|
138 | /usr/lib64/qt4/mkspecs/features/shared.prf \ | |
139 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
139 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
140 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
140 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
141 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
141 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
142 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
142 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
143 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
143 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
144 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
144 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
145 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf |
|
145 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf | |
146 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile fsw-qt.pro |
|
146 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile fsw-qt.pro | |
147 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
147 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
148 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
148 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
149 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
149 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
150 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
150 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
151 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
151 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
152 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
152 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
153 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
153 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
154 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
154 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
155 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
155 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
159 | sparc.pri: |
|
159 | sparc.pri: | |
160 | /usr/lib64/qt4/mkspecs/features/debug.prf: |
|
160 | /usr/lib64/qt4/mkspecs/features/debug.prf: | |
161 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
161 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
162 | /usr/lib64/qt4/mkspecs/features/shared.prf: |
|
162 | /usr/lib64/qt4/mkspecs/features/shared.prf: | |
163 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
163 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
164 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
164 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
165 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
165 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
166 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
166 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
167 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
167 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
168 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
168 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
169 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
169 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
170 | qmake: FORCE |
|
170 | qmake: FORCE | |
171 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile fsw-qt.pro |
|
171 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile fsw-qt.pro | |
172 |
|
172 | |||
173 | dist: |
|
173 | dist: | |
174 | @$(CHK_DIR_EXISTS) obj/fsw1.0.0 || $(MKDIR) obj/fsw1.0.0 |
|
174 | @$(CHK_DIR_EXISTS) obj/fsw1.0.0 || $(MKDIR) obj/fsw1.0.0 | |
175 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/fsw1.0.0/ && (cd `dirname obj/fsw1.0.0` && $(TAR) fsw1.0.0.tar fsw1.0.0 && $(COMPRESS) fsw1.0.0.tar) && $(MOVE) `dirname obj/fsw1.0.0`/fsw1.0.0.tar.gz . && $(DEL_FILE) -r obj/fsw1.0.0 |
|
175 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/fsw1.0.0/ && (cd `dirname obj/fsw1.0.0` && $(TAR) fsw1.0.0.tar fsw1.0.0 && $(COMPRESS) fsw1.0.0.tar) && $(MOVE) `dirname obj/fsw1.0.0`/fsw1.0.0.tar.gz . && $(DEL_FILE) -r obj/fsw1.0.0 | |
176 |
|
176 | |||
177 |
|
177 | |||
178 | clean:compiler_clean |
|
178 | clean:compiler_clean | |
179 | -$(DEL_FILE) $(OBJECTS) |
|
179 | -$(DEL_FILE) $(OBJECTS) | |
180 | -$(DEL_FILE) *~ core *.core |
|
180 | -$(DEL_FILE) *~ core *.core | |
181 |
|
181 | |||
182 |
|
182 | |||
183 | ####### Sub-libraries |
|
183 | ####### Sub-libraries | |
184 |
|
184 | |||
185 | distclean: clean |
|
185 | distclean: clean | |
186 | -$(DEL_FILE) $(TARGET) |
|
186 | -$(DEL_FILE) $(TARGET) | |
187 | -$(DEL_FILE) Makefile |
|
187 | -$(DEL_FILE) Makefile | |
188 |
|
188 | |||
189 |
|
189 | |||
190 | grmon: |
|
190 | grmon: | |
191 | cd bin && C:/opt/grmon-eval-2.0.29b/win32/bin/grmon.exe -uart COM4 -u |
|
191 | cd bin && C:/opt/grmon-eval-2.0.29b/win32/bin/grmon.exe -uart COM4 -u | |
192 |
|
192 | |||
193 | check: first |
|
193 | check: first | |
194 |
|
194 | |||
195 | compiler_rcc_make_all: |
|
195 | compiler_rcc_make_all: | |
196 | compiler_rcc_clean: |
|
196 | compiler_rcc_clean: | |
197 | compiler_uic_make_all: |
|
197 | compiler_uic_make_all: | |
198 | compiler_uic_clean: |
|
198 | compiler_uic_clean: | |
199 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
199 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
200 | compiler_image_collection_clean: |
|
200 | compiler_image_collection_clean: | |
201 | -$(DEL_FILE) qmake_image_collection.cpp |
|
201 | -$(DEL_FILE) qmake_image_collection.cpp | |
202 | compiler_yacc_decl_make_all: |
|
202 | compiler_yacc_decl_make_all: | |
203 | compiler_yacc_decl_clean: |
|
203 | compiler_yacc_decl_clean: | |
204 | compiler_yacc_impl_make_all: |
|
204 | compiler_yacc_impl_make_all: | |
205 | compiler_yacc_impl_clean: |
|
205 | compiler_yacc_impl_clean: | |
206 | compiler_lex_make_all: |
|
206 | compiler_lex_make_all: | |
207 | compiler_lex_clean: |
|
207 | compiler_lex_clean: | |
208 | compiler_clean: |
|
208 | compiler_clean: | |
209 |
|
209 | |||
210 | ####### Compile |
|
210 | ####### Compile | |
211 |
|
211 | |||
212 | obj/wf_handler.o: ../src/wf_handler.c |
|
212 | obj/wf_handler.o: ../src/wf_handler.c | |
213 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/wf_handler.o ../src/wf_handler.c |
|
213 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/wf_handler.o ../src/wf_handler.c | |
214 |
|
214 | |||
215 | obj/tc_handler.o: ../src/tc_handler.c |
|
215 | obj/tc_handler.o: ../src/tc_handler.c | |
216 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_handler.o ../src/tc_handler.c |
|
216 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_handler.o ../src/tc_handler.c | |
217 |
|
217 | |||
218 | obj/fsw_processing.o: ../src/fsw_processing.c ../src/fsw_processing_globals.c |
|
218 | obj/fsw_processing.o: ../src/fsw_processing.c ../src/fsw_processing_globals.c | |
219 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_processing.o ../src/fsw_processing.c |
|
219 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_processing.o ../src/fsw_processing.c | |
220 |
|
220 | |||
221 | obj/fsw_misc.o: ../src/fsw_misc.c |
|
221 | obj/fsw_misc.o: ../src/fsw_misc.c | |
222 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_misc.o ../src/fsw_misc.c |
|
222 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_misc.o ../src/fsw_misc.c | |
223 |
|
223 | |||
224 | obj/fsw_init.o: ../src/fsw_init.c ../src/fsw_config.c |
|
224 | obj/fsw_init.o: ../src/fsw_init.c ../src/fsw_config.c | |
225 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_init.o ../src/fsw_init.c |
|
225 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_init.o ../src/fsw_init.c | |
226 |
|
226 | |||
227 | obj/fsw_globals.o: ../src/fsw_globals.c |
|
227 | obj/fsw_globals.o: ../src/fsw_globals.c | |
228 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_globals.o ../src/fsw_globals.c |
|
228 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_globals.o ../src/fsw_globals.c | |
229 |
|
229 | |||
230 | obj/fsw_spacewire.o: ../src/fsw_spacewire.c |
|
230 | obj/fsw_spacewire.o: ../src/fsw_spacewire.c | |
231 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_spacewire.o ../src/fsw_spacewire.c |
|
231 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/fsw_spacewire.o ../src/fsw_spacewire.c | |
232 |
|
232 | |||
233 | obj/tc_load_dump_parameters.o: ../src/tc_load_dump_parameters.c |
|
233 | obj/tc_load_dump_parameters.o: ../src/tc_load_dump_parameters.c | |
234 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_load_dump_parameters.o ../src/tc_load_dump_parameters.c |
|
234 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_load_dump_parameters.o ../src/tc_load_dump_parameters.c | |
235 |
|
235 | |||
236 | obj/tm_lfr_tc_exe.o: ../src/tm_lfr_tc_exe.c |
|
236 | obj/tm_lfr_tc_exe.o: ../src/tm_lfr_tc_exe.c | |
237 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tm_lfr_tc_exe.o ../src/tm_lfr_tc_exe.c |
|
237 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tm_lfr_tc_exe.o ../src/tm_lfr_tc_exe.c | |
238 |
|
238 | |||
239 | obj/tc_acceptance.o: ../src/tc_acceptance.c |
|
239 | obj/tc_acceptance.o: ../src/tc_acceptance.c | |
240 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_acceptance.o ../src/tc_acceptance.c |
|
240 | $(CC) -c $(CFLAGS) $(INCPATH) -o obj/tc_acceptance.o ../src/tc_acceptance.c | |
241 |
|
241 | |||
242 | ####### Install |
|
242 | ####### Install | |
243 |
|
243 | |||
244 | install: FORCE |
|
244 | install: FORCE | |
245 |
|
245 | |||
246 | uninstall: FORCE |
|
246 | uninstall: FORCE | |
247 |
|
247 | |||
248 | FORCE: |
|
248 | FORCE: | |
249 |
|
249 |
@@ -1,311 +1,311 | |||||
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 3.0.0, 2014-01-21T |
|
3 | <!-- Written by QtCreator 3.0.0, 2014-01-21T13:07:28. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
11 | <valuemap type="QVariantMap"> |
|
11 | <valuemap type="QVariantMap"> | |
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> |
|
14 | <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
16 | <value type="QString" key="language">Cpp</value> |
|
16 | <value type="QString" key="language">Cpp</value> | |
17 | <valuemap type="QVariantMap" key="value"> |
|
17 | <valuemap type="QVariantMap" key="value"> | |
18 | <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> |
|
18 | <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | </valuemap> |
|
20 | </valuemap> | |
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
22 | <value type="QString" key="language">QmlJS</value> |
|
22 | <value type="QString" key="language">QmlJS</value> | |
23 | <valuemap type="QVariantMap" key="value"> |
|
23 | <valuemap type="QVariantMap" key="value"> | |
24 | <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | </valuemap> |
|
26 | </valuemap> | |
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
28 | <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> |
|
28 | <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> | |
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> |
|
31 | <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
33 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
36 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
37 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
38 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
40 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
42 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
43 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
44 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
45 | </valuemap> |
|
45 | </valuemap> | |
46 | </data> |
|
46 | </data> | |
47 | <data> |
|
47 | <data> | |
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
48 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
49 | <valuemap type="QVariantMap"/> |
|
49 | <valuemap type="QVariantMap"/> | |
50 | </data> |
|
50 | </data> | |
51 | <data> |
|
51 | <data> | |
52 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
52 | <variable>ProjectExplorer.Project.Target.0</variable> | |
53 | <valuemap type="QVariantMap"> |
|
53 | <valuemap type="QVariantMap"> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> |
|
55 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value> | |
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> |
|
56 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
61 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/opt/DEV_PLE/FSW-qt</value> |
|
61 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/opt/DEV_PLE/FSW-qt</value> | |
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
62 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
63 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
63 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
64 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
64 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
65 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
66 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
67 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
67 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
69 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
69 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
70 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
70 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
71 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
71 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
72 | </valuemap> |
|
72 | </valuemap> | |
73 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
73 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
74 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
74 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
75 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
76 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
77 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
77 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
78 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
78 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
79 | <value type="QString">-w</value> |
|
79 | <value type="QString">-w</value> | |
80 | <value type="QString">-r</value> |
|
80 | <value type="QString">-r</value> | |
81 | </valuelist> |
|
81 | </valuelist> | |
82 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
82 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
83 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
84 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
84 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
85 | </valuemap> |
|
85 | </valuemap> | |
86 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
86 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
88 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
89 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
89 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
90 | </valuemap> |
|
90 | </valuemap> | |
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
91 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
92 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
92 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
93 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
93 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
96 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
96 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
97 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
97 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
98 | <value type="QString">-w</value> |
|
98 | <value type="QString">-w</value> | |
99 | <value type="QString">-r</value> |
|
99 | <value type="QString">-r</value> | |
100 | </valuelist> |
|
100 | </valuelist> | |
101 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
101 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
102 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
103 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
103 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
104 | </valuemap> |
|
104 | </valuemap> | |
105 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
105 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
106 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
107 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
108 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
108 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
109 | </valuemap> |
|
109 | </valuemap> | |
110 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
110 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
111 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
111 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
112 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
112 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release</value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
115 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
115 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
116 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
116 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
117 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
118 | </valuemap> |
|
118 | </valuemap> | |
119 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
119 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
120 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/opt/DEV_PLE/FSW-qt</value> |
|
120 | <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/opt/DEV_PLE/FSW-qt</value> | |
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
121 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
122 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
122 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
123 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
123 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
124 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
125 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
126 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
126 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
127 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
127 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
128 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
128 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
129 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
129 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
130 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
130 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
131 | </valuemap> |
|
131 | </valuemap> | |
132 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
132 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
133 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
133 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
134 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
134 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
137 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
137 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
138 | <value type="QString">-w</value> |
|
138 | <value type="QString">-w</value> | |
139 | <value type="QString">-r</value> |
|
139 | <value type="QString">-r</value> | |
140 | </valuelist> |
|
140 | </valuelist> | |
141 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
141 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
142 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
142 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
143 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
143 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
144 | </valuemap> |
|
144 | </valuemap> | |
145 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
145 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
146 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
146 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
147 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
147 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
148 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
148 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
149 | </valuemap> |
|
149 | </valuemap> | |
150 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
150 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
151 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
151 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
152 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> |
|
152 | <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
153 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
153 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
154 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
154 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
155 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
155 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
156 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> |
|
156 | <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments"> | |
157 | <value type="QString">-w</value> |
|
157 | <value type="QString">-w</value> | |
158 | <value type="QString">-r</value> |
|
158 | <value type="QString">-r</value> | |
159 | </valuelist> |
|
159 | </valuelist> | |
160 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
160 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
161 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
161 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
162 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
162 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
163 | </valuemap> |
|
163 | </valuemap> | |
164 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
164 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
165 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
165 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
166 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
166 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
168 | </valuemap> |
|
168 | </valuemap> | |
169 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
169 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
170 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
170 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
171 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
171 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release2</value> |
|
172 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Release2</value> | |
173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
173 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
174 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
175 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
175 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
176 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
176 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
177 | </valuemap> |
|
177 | </valuemap> | |
178 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
178 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
179 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
179 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
180 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
180 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
181 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
181 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
182 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
182 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
183 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
183 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
184 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
184 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
185 | </valuemap> |
|
185 | </valuemap> | |
186 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
186 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
187 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value> |
|
187 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy locally</value> | |
188 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
188 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
189 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
189 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
190 | </valuemap> |
|
190 | </valuemap> | |
191 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
191 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
192 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> |
|
192 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
193 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
193 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
194 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
194 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
195 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
195 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
196 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
196 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
197 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
199 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
199 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
200 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
200 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
201 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
201 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
202 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
202 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
203 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> |
|
203 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | |
204 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
204 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
205 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
205 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
206 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> |
|
206 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | |
207 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> |
|
207 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | |
208 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> |
|
208 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | |
209 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
209 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
210 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
210 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
211 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
211 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
212 | <value type="int">0</value> |
|
212 | <value type="int">0</value> | |
213 | <value type="int">1</value> |
|
213 | <value type="int">1</value> | |
214 | <value type="int">2</value> |
|
214 | <value type="int">2</value> | |
215 | <value type="int">3</value> |
|
215 | <value type="int">3</value> | |
216 | <value type="int">4</value> |
|
216 | <value type="int">4</value> | |
217 | <value type="int">5</value> |
|
217 | <value type="int">5</value> | |
218 | <value type="int">6</value> |
|
218 | <value type="int">6</value> | |
219 | <value type="int">7</value> |
|
219 | <value type="int">7</value> | |
220 | <value type="int">8</value> |
|
220 | <value type="int">8</value> | |
221 | <value type="int">9</value> |
|
221 | <value type="int">9</value> | |
222 | <value type="int">10</value> |
|
222 | <value type="int">10</value> | |
223 | <value type="int">11</value> |
|
223 | <value type="int">11</value> | |
224 | <value type="int">12</value> |
|
224 | <value type="int">12</value> | |
225 | <value type="int">13</value> |
|
225 | <value type="int">13</value> | |
226 | <value type="int">14</value> |
|
226 | <value type="int">14</value> | |
227 | </valuelist> |
|
227 | </valuelist> | |
228 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> |
|
228 | <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
229 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
|
229 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
230 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">fsw-qt</value> |
|
230 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">fsw-qt</value> | |
231 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
231 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
232 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/DEV_PLE/FSW-qt/fsw-qt.pro</value> |
|
232 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/DEV_PLE/FSW-qt/fsw-qt.pro</value> | |
233 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
233 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
234 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">fsw-qt.pro</value> |
|
234 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">fsw-qt.pro</value> | |
235 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
235 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
236 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value> |
|
236 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value> | |
237 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
237 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
238 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
238 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
239 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
239 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
240 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> |
|
240 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value> | |
241 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> |
|
241 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
242 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
242 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
243 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> |
|
243 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
244 | </valuemap> |
|
244 | </valuemap> | |
245 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> |
|
245 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> | |
246 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
246 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
247 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
247 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
248 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
248 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
249 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
249 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
250 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
250 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
251 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
251 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
252 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
252 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
253 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
253 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
254 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
254 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
255 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> |
|
255 | <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | |
256 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
256 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
257 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
257 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
258 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> |
|
258 | <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | |
259 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> |
|
259 | <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | |
260 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> |
|
260 | <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | |
261 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
261 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
262 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
262 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
263 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
263 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
264 | <value type="int">0</value> |
|
264 | <value type="int">0</value> | |
265 | <value type="int">1</value> |
|
265 | <value type="int">1</value> | |
266 | <value type="int">2</value> |
|
266 | <value type="int">2</value> | |
267 | <value type="int">3</value> |
|
267 | <value type="int">3</value> | |
268 | <value type="int">4</value> |
|
268 | <value type="int">4</value> | |
269 | <value type="int">5</value> |
|
269 | <value type="int">5</value> | |
270 | <value type="int">6</value> |
|
270 | <value type="int">6</value> | |
271 | <value type="int">7</value> |
|
271 | <value type="int">7</value> | |
272 | <value type="int">8</value> |
|
272 | <value type="int">8</value> | |
273 | <value type="int">9</value> |
|
273 | <value type="int">9</value> | |
274 | <value type="int">10</value> |
|
274 | <value type="int">10</value> | |
275 | <value type="int">11</value> |
|
275 | <value type="int">11</value> | |
276 | <value type="int">12</value> |
|
276 | <value type="int">12</value> | |
277 | <value type="int">13</value> |
|
277 | <value type="int">13</value> | |
278 | <value type="int">14</value> |
|
278 | <value type="int">14</value> | |
279 | </valuelist> |
|
279 | </valuelist> | |
280 | <value type="int" key="PE.EnvironmentAspect.Base">-1</value> |
|
280 | <value type="int" key="PE.EnvironmentAspect.Base">-1</value> | |
281 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> |
|
281 | <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
282 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
282 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
283 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">grmon</value> |
|
283 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">grmon</value> | |
284 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
284 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
285 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
285 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
286 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run grmon</value> |
|
286 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run grmon</value> | |
287 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
287 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
288 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
288 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
289 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
289 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
290 | <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> |
|
290 | <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | |
291 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> |
|
291 | <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | |
292 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> |
|
292 | <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
293 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
293 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
294 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> |
|
294 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
295 | </valuemap> |
|
295 | </valuemap> | |
296 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> |
|
296 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> | |
297 | </valuemap> |
|
297 | </valuemap> | |
298 | </data> |
|
298 | </data> | |
299 | <data> |
|
299 | <data> | |
300 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
300 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
301 | <value type="int">1</value> |
|
301 | <value type="int">1</value> | |
302 | </data> |
|
302 | </data> | |
303 | <data> |
|
303 | <data> | |
304 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
304 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
305 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
305 | <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
306 | </data> |
|
306 | </data> | |
307 | <data> |
|
307 | <data> | |
308 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
308 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
309 | <value type="int">15</value> |
|
309 | <value type="int">15</value> | |
310 | </data> |
|
310 | </data> | |
311 | </qtcreator> |
|
311 | </qtcreator> |
@@ -1,204 +1,205 | |||||
1 | #ifndef FSW_PARAMS_H_INCLUDED |
|
1 | #ifndef FSW_PARAMS_H_INCLUDED | |
2 | #define FSW_PARAMS_H_INCLUDED |
|
2 | #define FSW_PARAMS_H_INCLUDED | |
3 |
|
3 | |||
4 | #include "grlib_regs.h" |
|
4 | #include "grlib_regs.h" | |
5 | #include "fsw_params_processing.h" |
|
5 | #include "fsw_params_processing.h" | |
6 | #include "tm_byte_positions.h" |
|
6 | #include "tm_byte_positions.h" | |
7 | #include "ccsds_types.h" |
|
7 | #include "ccsds_types.h" | |
8 |
|
8 | |||
9 | #define GRSPW_DEVICE_NAME "/dev/grspw0" |
|
9 | #define GRSPW_DEVICE_NAME "/dev/grspw0" | |
10 | #define UART_DEVICE_NAME "/dev/console" |
|
10 | #define UART_DEVICE_NAME "/dev/console" | |
11 |
|
11 | |||
12 | //************************ |
|
12 | //************************ | |
13 | // flight software version |
|
13 | // flight software version | |
14 | // this parameters is handled by the Qt project options |
|
14 | // this parameters is handled by the Qt project options | |
15 |
|
15 | |||
16 | #define NB_SAMPLES_PER_SNAPSHOT 2048 |
|
16 | //#define NB_SAMPLES_PER_SNAPSHOT 2048 | |
|
17 | #define NB_SAMPLES_PER_SNAPSHOT 2352 // 336 * 7 = 2352 | |||
17 | #define TIME_OFFSET 2 |
|
18 | #define TIME_OFFSET 2 | |
18 | #define WAVEFORM_EXTENDED_HEADER_OFFSET 22 |
|
19 | #define WAVEFORM_EXTENDED_HEADER_OFFSET 22 | |
19 | #define NB_BYTES_SWF_BLK (2 * 6) |
|
20 | #define NB_BYTES_SWF_BLK (2 * 6) | |
20 | #define NB_WORDS_SWF_BLK 3 |
|
21 | #define NB_WORDS_SWF_BLK 3 | |
21 | #define NB_BYTES_CWF3_LIGHT_BLK 6 |
|
22 | #define NB_BYTES_CWF3_LIGHT_BLK 6 | |
22 | #define WFRM_INDEX_OF_LAST_PACKET 6 // waveforms are transmitted in groups of 2048 blocks, 6 packets of 340 and 1 of 8 |
|
23 | #define WFRM_INDEX_OF_LAST_PACKET 6 // waveforms are transmitted in groups of 2048 blocks, 6 packets of 340 and 1 of 8 | |
23 | #define NB_RING_NODES_F1 5 // AT LEAST 3 |
|
24 | #define NB_RING_NODES_F1 5 // AT LEAST 3 | |
24 | #define NB_RING_NODES_F2 5 // AT LEAST 3 |
|
25 | #define NB_RING_NODES_F2 5 // AT LEAST 3 | |
25 |
|
26 | |||
26 | //********** |
|
27 | //********** | |
27 | // LFR MODES |
|
28 | // LFR MODES | |
28 | #define LFR_MODE_STANDBY 0 |
|
29 | #define LFR_MODE_STANDBY 0 | |
29 | #define LFR_MODE_NORMAL 1 |
|
30 | #define LFR_MODE_NORMAL 1 | |
30 | #define LFR_MODE_BURST 2 |
|
31 | #define LFR_MODE_BURST 2 | |
31 | #define LFR_MODE_SBM1 3 |
|
32 | #define LFR_MODE_SBM1 3 | |
32 | #define LFR_MODE_SBM2 4 |
|
33 | #define LFR_MODE_SBM2 4 | |
33 | #define LFR_MODE_NORMAL_CWF_F3 5 |
|
34 | #define LFR_MODE_NORMAL_CWF_F3 5 | |
34 |
|
35 | |||
35 | #define RTEMS_EVENT_MODE_STANDBY RTEMS_EVENT_0 |
|
36 | #define RTEMS_EVENT_MODE_STANDBY RTEMS_EVENT_0 | |
36 | #define RTEMS_EVENT_MODE_NORMAL RTEMS_EVENT_1 |
|
37 | #define RTEMS_EVENT_MODE_NORMAL RTEMS_EVENT_1 | |
37 | #define RTEMS_EVENT_MODE_BURST RTEMS_EVENT_2 |
|
38 | #define RTEMS_EVENT_MODE_BURST RTEMS_EVENT_2 | |
38 | #define RTEMS_EVENT_MODE_SBM1 RTEMS_EVENT_3 |
|
39 | #define RTEMS_EVENT_MODE_SBM1 RTEMS_EVENT_3 | |
39 | #define RTEMS_EVENT_MODE_SBM2 RTEMS_EVENT_4 |
|
40 | #define RTEMS_EVENT_MODE_SBM2 RTEMS_EVENT_4 | |
40 | #define RTEMS_EVENT_MODE_SBM2_WFRM RTEMS_EVENT_5 |
|
41 | #define RTEMS_EVENT_MODE_SBM2_WFRM RTEMS_EVENT_5 | |
41 |
|
42 | |||
42 | //**************************** |
|
43 | //**************************** | |
43 | // LFR DEFAULT MODE PARAMETERS |
|
44 | // LFR DEFAULT MODE PARAMETERS | |
44 | // COMMON |
|
45 | // COMMON | |
45 | #define DEFAULT_SY_LFR_COMMON0 0x00 |
|
46 | #define DEFAULT_SY_LFR_COMMON0 0x00 | |
46 | #define DEFAULT_SY_LFR_COMMON1 0x10 // default value 0 0 0 1 0 0 0 0 |
|
47 | #define DEFAULT_SY_LFR_COMMON1 0x10 // default value 0 0 0 1 0 0 0 0 | |
47 | // NORM |
|
48 | // NORM | |
48 | #define SY_LFR_N_SWF_L 2048 // nb sample |
|
49 | #define SY_LFR_N_SWF_L 2048 // nb sample | |
49 | #define SY_LFR_N_SWF_P 20 // sec |
|
50 | #define SY_LFR_N_SWF_P 20 // sec | |
50 | #define SY_LFR_N_ASM_P 3600 // sec |
|
51 | #define SY_LFR_N_ASM_P 3600 // sec | |
51 | #define SY_LFR_N_BP_P0 4 // sec |
|
52 | #define SY_LFR_N_BP_P0 4 // sec | |
52 | #define SY_LFR_N_BP_P1 20 // sec |
|
53 | #define SY_LFR_N_BP_P1 20 // sec | |
53 | #define MIN_DELTA_SNAPSHOT 16 // sec |
|
54 | #define MIN_DELTA_SNAPSHOT 16 // sec | |
54 | // BURST |
|
55 | // BURST | |
55 | #define DEFAULT_SY_LFR_B_BP_P0 1 // sec |
|
56 | #define DEFAULT_SY_LFR_B_BP_P0 1 // sec | |
56 | #define DEFAULT_SY_LFR_B_BP_P1 5 // sec |
|
57 | #define DEFAULT_SY_LFR_B_BP_P1 5 // sec | |
57 | // SBM1 |
|
58 | // SBM1 | |
58 | #define DEFAULT_SY_LFR_S1_BP_P0 1 // sec |
|
59 | #define DEFAULT_SY_LFR_S1_BP_P0 1 // sec | |
59 | #define DEFAULT_SY_LFR_S1_BP_P1 1 // sec |
|
60 | #define DEFAULT_SY_LFR_S1_BP_P1 1 // sec | |
60 | // SBM2 |
|
61 | // SBM2 | |
61 | #define DEFAULT_SY_LFR_S2_BP_P0 1 // sec |
|
62 | #define DEFAULT_SY_LFR_S2_BP_P0 1 // sec | |
62 | #define DEFAULT_SY_LFR_S2_BP_P1 5 // sec |
|
63 | #define DEFAULT_SY_LFR_S2_BP_P1 5 // sec | |
63 | // ADDITIONAL PARAMETERS |
|
64 | // ADDITIONAL PARAMETERS | |
64 | #define TIME_BETWEEN_TWO_SWF_PACKETS 30 // nb x 10 ms => 300 ms |
|
65 | #define TIME_BETWEEN_TWO_SWF_PACKETS 30 // nb x 10 ms => 300 ms | |
65 | #define TIME_BETWEEN_TWO_CWF3_PACKETS 1000 // nb x 10 ms => 10 s |
|
66 | #define TIME_BETWEEN_TWO_CWF3_PACKETS 1000 // nb x 10 ms => 10 s | |
66 | // STATUS WORD |
|
67 | // STATUS WORD | |
67 | #define DEFAULT_STATUS_WORD_BYTE0 0x0d // [0000] [1] [101] mode 4 bits / SPW enabled 1 bit / state is run 3 bits |
|
68 | #define DEFAULT_STATUS_WORD_BYTE0 0x0d // [0000] [1] [101] mode 4 bits / SPW enabled 1 bit / state is run 3 bits | |
68 | #define DEFAULT_STATUS_WORD_BYTE1 0x00 |
|
69 | #define DEFAULT_STATUS_WORD_BYTE1 0x00 | |
69 | // |
|
70 | // | |
70 | #define SY_LFR_DPU_CONNECT_TIMEOUT 100 // 100 * 10 ms = 1 s |
|
71 | #define SY_LFR_DPU_CONNECT_TIMEOUT 100 // 100 * 10 ms = 1 s | |
71 | #define SY_LFR_DPU_CONNECT_ATTEMPT 3 |
|
72 | #define SY_LFR_DPU_CONNECT_ATTEMPT 3 | |
72 | //**************************** |
|
73 | //**************************** | |
73 |
|
74 | |||
74 | //***************************** |
|
75 | //***************************** | |
75 | // APB REGISTERS BASE ADDRESSES |
|
76 | // APB REGISTERS BASE ADDRESSES | |
76 | #define REGS_ADDR_APBUART 0x80000100 |
|
77 | #define REGS_ADDR_APBUART 0x80000100 | |
77 | #define REGS_ADDR_GPTIMER 0x80000300 |
|
78 | #define REGS_ADDR_GPTIMER 0x80000300 | |
78 | #define REGS_ADDR_GRSPW 0x80000500 |
|
79 | #define REGS_ADDR_GRSPW 0x80000500 | |
79 | #define REGS_ADDR_TIME_MANAGEMENT 0x80000600 |
|
80 | #define REGS_ADDR_TIME_MANAGEMENT 0x80000600 | |
80 | #define REGS_ADDR_SPECTRAL_MATRIX 0x80000f00 |
|
81 | #define REGS_ADDR_SPECTRAL_MATRIX 0x80000f00 | |
81 |
|
82 | |||
82 | #ifdef GSA |
|
83 | #ifdef GSA | |
83 | #else |
|
84 | #else | |
84 | #define REGS_ADDR_WAVEFORM_PICKER 0x80000f20 |
|
85 | #define REGS_ADDR_WAVEFORM_PICKER 0x80000f20 | |
85 | #endif |
|
86 | #endif | |
86 |
|
87 | |||
87 | #define APBUART_CTRL_REG_MASK_DB 0xfffff7ff |
|
88 | #define APBUART_CTRL_REG_MASK_DB 0xfffff7ff | |
88 | #define APBUART_SCALER_RELOAD_VALUE 0x00000050 // 25 MHz => about 38400 (0x50) |
|
89 | #define APBUART_SCALER_RELOAD_VALUE 0x00000050 // 25 MHz => about 38400 (0x50) | |
89 |
|
90 | |||
90 | //********** |
|
91 | //********** | |
91 | // IRQ LINES |
|
92 | // IRQ LINES | |
92 | #define IRQ_SM 9 |
|
93 | #define IRQ_SM 9 | |
93 | #define IRQ_SPARC_SM 0x19 // see sparcv8.pdf p.76 for interrupt levels |
|
94 | #define IRQ_SPARC_SM 0x19 // see sparcv8.pdf p.76 for interrupt levels | |
94 | #define IRQ_WF 10 |
|
95 | #define IRQ_WF 10 | |
95 | #define IRQ_SPARC_WF 0x1a // see sparcv8.pdf p.76 for interrupt levels |
|
96 | #define IRQ_SPARC_WF 0x1a // see sparcv8.pdf p.76 for interrupt levels | |
96 | #define IRQ_TIME1 12 |
|
97 | #define IRQ_TIME1 12 | |
97 | #define IRQ_SPARC_TIME1 0x1c // see sparcv8.pdf p.76 for interrupt levels |
|
98 | #define IRQ_SPARC_TIME1 0x1c // see sparcv8.pdf p.76 for interrupt levels | |
98 | #define IRQ_TIME2 13 |
|
99 | #define IRQ_TIME2 13 | |
99 | #define IRQ_SPARC_TIME2 0x1d // see sparcv8.pdf p.76 for interrupt levels |
|
100 | #define IRQ_SPARC_TIME2 0x1d // see sparcv8.pdf p.76 for interrupt levels | |
100 | #define IRQ_WAVEFORM_PICKER 14 |
|
101 | #define IRQ_WAVEFORM_PICKER 14 | |
101 | #define IRQ_SPARC_WAVEFORM_PICKER 0x1e // see sparcv8.pdf p.76 for interrupt levels |
|
102 | #define IRQ_SPARC_WAVEFORM_PICKER 0x1e // see sparcv8.pdf p.76 for interrupt levels | |
102 | #define IRQ_SPECTRAL_MATRIX 6 |
|
103 | #define IRQ_SPECTRAL_MATRIX 6 | |
103 | #define IRQ_SPARC_SPECTRAL_MATRIX 0x16 // see sparcv8.pdf p.76 for interrupt levels |
|
104 | #define IRQ_SPARC_SPECTRAL_MATRIX 0x16 // see sparcv8.pdf p.76 for interrupt levels | |
104 |
|
105 | |||
105 | //***** |
|
106 | //***** | |
106 | // TIME |
|
107 | // TIME | |
107 | #define CLKDIV_SM_SIMULATOR (10000 - 1) // 10 ms |
|
108 | #define CLKDIV_SM_SIMULATOR (10000 - 1) // 10 ms | |
108 | #define CLKDIV_WF_SIMULATOR (10000000 - 1) // 10 000 000 * 1 us = 10 s |
|
109 | #define CLKDIV_WF_SIMULATOR (10000000 - 1) // 10 000 000 * 1 us = 10 s | |
109 | #define TIMER_SM_SIMULATOR 1 |
|
110 | #define TIMER_SM_SIMULATOR 1 | |
110 | #define TIMER_WF_SIMULATOR 2 |
|
111 | #define TIMER_WF_SIMULATOR 2 | |
111 | #define HK_PERIOD 100 // 100 * 10ms => 1sec |
|
112 | #define HK_PERIOD 100 // 100 * 10ms => 1sec | |
112 |
|
113 | |||
113 | //********** |
|
114 | //********** | |
114 | // LPP CODES |
|
115 | // LPP CODES | |
115 | #define LFR_SUCCESSFUL 0 |
|
116 | #define LFR_SUCCESSFUL 0 | |
116 | #define LFR_DEFAULT 1 |
|
117 | #define LFR_DEFAULT 1 | |
117 |
|
118 | |||
118 | //****** |
|
119 | //****** | |
119 | // RTEMS |
|
120 | // RTEMS | |
120 | #define TASKID_RECV 1 |
|
121 | #define TASKID_RECV 1 | |
121 | #define TASKID_ACTN 2 |
|
122 | #define TASKID_ACTN 2 | |
122 | #define TASKID_SPIQ 3 |
|
123 | #define TASKID_SPIQ 3 | |
123 | #define TASKID_SMIQ 4 |
|
124 | #define TASKID_SMIQ 4 | |
124 | #define TASKID_STAT 5 |
|
125 | #define TASKID_STAT 5 | |
125 | #define TASKID_AVF0 6 |
|
126 | #define TASKID_AVF0 6 | |
126 | #define TASKID_BPF0 7 |
|
127 | #define TASKID_BPF0 7 | |
127 | #define TASKID_WFRM 8 |
|
128 | #define TASKID_WFRM 8 | |
128 | #define TASKID_DUMB 9 |
|
129 | #define TASKID_DUMB 9 | |
129 | #define TASKID_HOUS 10 |
|
130 | #define TASKID_HOUS 10 | |
130 | #define TASKID_MATR 11 |
|
131 | #define TASKID_MATR 11 | |
131 | #define TASKID_CWF3 12 |
|
132 | #define TASKID_CWF3 12 | |
132 | #define TASKID_CWF2 13 |
|
133 | #define TASKID_CWF2 13 | |
133 | #define TASKID_CWF1 14 |
|
134 | #define TASKID_CWF1 14 | |
134 | #define TASKID_SEND 15 |
|
135 | #define TASKID_SEND 15 | |
135 | #define TASKID_WTDG 16 |
|
136 | #define TASKID_WTDG 16 | |
136 |
|
137 | |||
137 | #define TASK_PRIORITY_SPIQ 5 |
|
138 | #define TASK_PRIORITY_SPIQ 5 | |
138 | #define TASK_PRIORITY_SMIQ 10 |
|
139 | #define TASK_PRIORITY_SMIQ 10 | |
139 | #define TASK_PRIORITY_WTDG 20 |
|
140 | #define TASK_PRIORITY_WTDG 20 | |
140 | #define TASK_PRIORITY_HOUS 30 |
|
141 | #define TASK_PRIORITY_HOUS 30 | |
141 | #define TASK_PRIORITY_CWF1 35 // CWF1 and CWF2 are never running together |
|
142 | #define TASK_PRIORITY_CWF1 35 // CWF1 and CWF2 are never running together | |
142 | #define TASK_PRIORITY_CWF2 35 // |
|
143 | #define TASK_PRIORITY_CWF2 35 // | |
143 | #define TASK_PRIORITY_WFRM 40 |
|
144 | #define TASK_PRIORITY_WFRM 40 | |
144 | #define TASK_PRIORITY_CWF3 40 // there is a printf in this function, be careful with its priority wrt CWF1 |
|
145 | #define TASK_PRIORITY_CWF3 40 // there is a printf in this function, be careful with its priority wrt CWF1 | |
145 | #define TASK_PRIORITY_SEND 45 |
|
146 | #define TASK_PRIORITY_SEND 45 | |
146 | #define TASK_PRIORITY_RECV 50 |
|
147 | #define TASK_PRIORITY_RECV 50 | |
147 | #define TASK_PRIORITY_ACTN 50 |
|
148 | #define TASK_PRIORITY_ACTN 50 | |
148 | #define TASK_PRIORITY_AVF0 60 |
|
149 | #define TASK_PRIORITY_AVF0 60 | |
149 | #define TASK_PRIORITY_BPF0 60 |
|
150 | #define TASK_PRIORITY_BPF0 60 | |
150 | #define TASK_PRIORITY_MATR 100 |
|
151 | #define TASK_PRIORITY_MATR 100 | |
151 | #define TASK_PRIORITY_STAT 200 |
|
152 | #define TASK_PRIORITY_STAT 200 | |
152 | #define TASK_PRIORITY_DUMB 200 |
|
153 | #define TASK_PRIORITY_DUMB 200 | |
153 |
|
154 | |||
154 | #define ACTION_MSG_QUEUE_COUNT 10 |
|
155 | #define ACTION_MSG_QUEUE_COUNT 10 | |
155 | #define ACTION_MSG_PKTS_COUNT 50 |
|
156 | #define ACTION_MSG_PKTS_COUNT 50 | |
156 | #define ACTION_MSG_PKTS_MAX_SIZE (PACKET_LENGTH_HK + CCSDS_TC_TM_PACKET_OFFSET + CCSDS_PROTOCOLE_EXTRA_BYTES) |
|
157 | #define ACTION_MSG_PKTS_MAX_SIZE (PACKET_LENGTH_HK + CCSDS_TC_TM_PACKET_OFFSET + CCSDS_PROTOCOLE_EXTRA_BYTES) | |
157 | #define ACTION_MSG_SPW_IOCTL_SEND_SIZE 24 // hlen *hdr dlen *data sent options |
|
158 | #define ACTION_MSG_SPW_IOCTL_SEND_SIZE 24 // hlen *hdr dlen *data sent options | |
158 |
|
159 | |||
159 | #define QUEUE_RECV 0 |
|
160 | #define QUEUE_RECV 0 | |
160 | #define QUEUE_SEND 1 |
|
161 | #define QUEUE_SEND 1 | |
161 |
|
162 | |||
162 | //******* |
|
163 | //******* | |
163 | // MACROS |
|
164 | // MACROS | |
164 | #ifdef PRINT_MESSAGES_ON_CONSOLE |
|
165 | #ifdef PRINT_MESSAGES_ON_CONSOLE | |
165 | #define PRINTF(x) printf(x); |
|
166 | #define PRINTF(x) printf(x); | |
166 | #define PRINTF1(x,y) printf(x,y); |
|
167 | #define PRINTF1(x,y) printf(x,y); | |
167 | #define PRINTF2(x,y,z) printf(x,y,z); |
|
168 | #define PRINTF2(x,y,z) printf(x,y,z); | |
168 | #else |
|
169 | #else | |
169 | #define PRINTF(x) ; |
|
170 | #define PRINTF(x) ; | |
170 | #define PRINTF1(x,y) ; |
|
171 | #define PRINTF1(x,y) ; | |
171 | #define PRINTF2(x,y,z) ; |
|
172 | #define PRINTF2(x,y,z) ; | |
172 | #endif |
|
173 | #endif | |
173 |
|
174 | |||
174 | #ifdef BOOT_MESSAGES |
|
175 | #ifdef BOOT_MESSAGES | |
175 | #define BOOT_PRINTF(x) printf(x); |
|
176 | #define BOOT_PRINTF(x) printf(x); | |
176 | #define BOOT_PRINTF1(x,y) printf(x,y); |
|
177 | #define BOOT_PRINTF1(x,y) printf(x,y); | |
177 | #define BOOT_PRINTF2(x,y,z) printf(x,y,z); |
|
178 | #define BOOT_PRINTF2(x,y,z) printf(x,y,z); | |
178 | #else |
|
179 | #else | |
179 | #define BOOT_PRINTF(x) ; |
|
180 | #define BOOT_PRINTF(x) ; | |
180 | #define BOOT_PRINTF1(x,y) ; |
|
181 | #define BOOT_PRINTF1(x,y) ; | |
181 | #define BOOT_PRINTF2(x,y,z) ; |
|
182 | #define BOOT_PRINTF2(x,y,z) ; | |
182 | #endif |
|
183 | #endif | |
183 |
|
184 | |||
184 | #ifdef DEBUG_MESSAGES |
|
185 | #ifdef DEBUG_MESSAGES | |
185 | #define DEBUG_PRINTF(x) printf(x); |
|
186 | #define DEBUG_PRINTF(x) printf(x); | |
186 | #define DEBUG_PRINTF1(x,y) printf(x,y); |
|
187 | #define DEBUG_PRINTF1(x,y) printf(x,y); | |
187 | #define DEBUG_PRINTF2(x,y,z) printf(x,y,z); |
|
188 | #define DEBUG_PRINTF2(x,y,z) printf(x,y,z); | |
188 | #else |
|
189 | #else | |
189 | #define DEBUG_PRINTF(x) ; |
|
190 | #define DEBUG_PRINTF(x) ; | |
190 | #define DEBUG_PRINTF1(x,y) ; |
|
191 | #define DEBUG_PRINTF1(x,y) ; | |
191 | #define DEBUG_PRINTF2(x,y,z) ; |
|
192 | #define DEBUG_PRINTF2(x,y,z) ; | |
192 | #endif |
|
193 | #endif | |
193 |
|
194 | |||
194 | #define CPU_USAGE_REPORT_PERIOD 6 // * 10 s = period |
|
195 | #define CPU_USAGE_REPORT_PERIOD 6 // * 10 s = period | |
195 |
|
196 | |||
196 | struct param_local_str{ |
|
197 | struct param_local_str{ | |
197 | unsigned int local_sbm1_nb_cwf_sent; |
|
198 | unsigned int local_sbm1_nb_cwf_sent; | |
198 | unsigned int local_sbm1_nb_cwf_max; |
|
199 | unsigned int local_sbm1_nb_cwf_max; | |
199 | unsigned int local_sbm2_nb_cwf_sent; |
|
200 | unsigned int local_sbm2_nb_cwf_sent; | |
200 | unsigned int local_sbm2_nb_cwf_max; |
|
201 | unsigned int local_sbm2_nb_cwf_max; | |
201 | unsigned int local_nb_interrupt_f0_MAX; |
|
202 | unsigned int local_nb_interrupt_f0_MAX; | |
202 | }; |
|
203 | }; | |
203 |
|
204 | |||
204 | #endif // FSW_PARAMS_H_INCLUDED |
|
205 | #endif // FSW_PARAMS_H_INCLUDED |
@@ -1,1131 +1,1135 | |||||
1 | /** Functions and tasks related to waveform packet generation. |
|
1 | /** Functions and tasks related to waveform packet generation. | |
2 | * |
|
2 | * | |
3 | * @file |
|
3 | * @file | |
4 | * @author P. LEROY |
|
4 | * @author P. LEROY | |
5 | * |
|
5 | * | |
6 | * A group of functions to handle waveforms, in snapshot or continuous format.\n |
|
6 | * A group of functions to handle waveforms, in snapshot or continuous format.\n | |
7 | * |
|
7 | * | |
8 | */ |
|
8 | */ | |
9 |
|
9 | |||
10 | #include "wf_handler.h" |
|
10 | #include "wf_handler.h" | |
11 |
|
11 | |||
12 | //***************** |
|
12 | //***************** | |
13 | // waveform headers |
|
13 | // waveform headers | |
14 | // SWF |
|
14 | // SWF | |
15 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F0[7]; |
|
15 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F0[7]; | |
16 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F1[7]; |
|
16 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F1[7]; | |
17 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F2[7]; |
|
17 | Header_TM_LFR_SCIENCE_SWF_t headerSWF_F2[7]; | |
18 | // CWF |
|
18 | // CWF | |
19 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F1[7]; |
|
19 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F1[7]; | |
20 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F2_BURST[7]; |
|
20 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F2_BURST[7]; | |
21 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F2_SBM2[7]; |
|
21 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F2_SBM2[7]; | |
22 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F3[7]; |
|
22 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F3[7]; | |
23 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F3_light[7]; |
|
23 | Header_TM_LFR_SCIENCE_CWF_t headerCWF_F3_light[7]; | |
24 |
|
24 | |||
25 | //************** |
|
25 | //************** | |
26 | // waveform ring |
|
26 | // waveform ring | |
27 | ring_node waveform_ring_f1[NB_RING_NODES_F1]; |
|
27 | ring_node waveform_ring_f1[NB_RING_NODES_F1]; | |
28 | ring_node waveform_ring_f2[NB_RING_NODES_F2]; |
|
28 | ring_node waveform_ring_f2[NB_RING_NODES_F2]; | |
29 | ring_node *current_ring_node_f1; |
|
29 | ring_node *current_ring_node_f1; | |
30 | ring_node *ring_node_to_send_swf_f1; |
|
30 | ring_node *ring_node_to_send_swf_f1; | |
31 | ring_node *ring_node_to_send_cwf_f1; |
|
31 | ring_node *ring_node_to_send_cwf_f1; | |
32 | ring_node *current_ring_node_f2; |
|
32 | ring_node *current_ring_node_f2; | |
33 | ring_node *ring_node_to_send_swf_f2; |
|
33 | ring_node *ring_node_to_send_swf_f2; | |
34 | ring_node *ring_node_to_send_cwf_f2; |
|
34 | ring_node *ring_node_to_send_cwf_f2; | |
35 |
|
35 | |||
36 | unsigned char doubleSendCWF2 = 0; |
|
36 | unsigned char doubleSendCWF2 = 0; | |
37 |
|
37 | |||
38 | rtems_isr waveforms_isr( rtems_vector_number vector ) |
|
38 | rtems_isr waveforms_isr( rtems_vector_number vector ) | |
39 | { |
|
39 | { | |
40 | /** This is the interrupt sub routine called by the waveform picker core. |
|
40 | /** This is the interrupt sub routine called by the waveform picker core. | |
41 | * |
|
41 | * | |
42 | * This ISR launch different actions depending mainly on two pieces of information: |
|
42 | * This ISR launch different actions depending mainly on two pieces of information: | |
43 | * 1. the values read in the registers of the waveform picker. |
|
43 | * 1. the values read in the registers of the waveform picker. | |
44 | * 2. the current LFR mode. |
|
44 | * 2. the current LFR mode. | |
45 | * |
|
45 | * | |
46 | */ |
|
46 | */ | |
47 |
|
47 | |||
48 | #ifdef GSA |
|
48 | #ifdef GSA | |
49 | #else |
|
49 | #else | |
50 | if ( (lfrCurrentMode == LFR_MODE_NORMAL) |
|
50 | if ( (lfrCurrentMode == LFR_MODE_NORMAL) | |
51 | || (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode == LFR_MODE_SBM2) ) |
|
51 | || (lfrCurrentMode == LFR_MODE_SBM1) || (lfrCurrentMode == LFR_MODE_SBM2) ) | |
52 | { // in modes other than STANDBY and BURST, send the CWF_F3 data |
|
52 | { // in modes other than STANDBY and BURST, send the CWF_F3 data | |
53 | if ((waveform_picker_regs->status & 0x08) == 0x08){ // [1000] f3 is full |
|
53 | if ((waveform_picker_regs->status & 0x08) == 0x08){ // [1000] f3 is full | |
54 | // (1) change the receiving buffer for the waveform picker |
|
54 | // (1) change the receiving buffer for the waveform picker | |
55 | if (waveform_picker_regs->addr_data_f3 == (int) wf_cont_f3) { |
|
55 | if (waveform_picker_regs->addr_data_f3 == (int) wf_cont_f3) { | |
56 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3_bis); |
|
56 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3_bis); | |
57 | } |
|
57 | } | |
58 | else { |
|
58 | else { | |
59 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3); |
|
59 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3); | |
60 | } |
|
60 | } | |
61 | // (2) send an event for the waveforms transmission |
|
61 | // (2) send an event for the waveforms transmission | |
62 | if (rtems_event_send( Task_id[TASKID_CWF3], RTEMS_EVENT_0 ) != RTEMS_SUCCESSFUL) { |
|
62 | if (rtems_event_send( Task_id[TASKID_CWF3], RTEMS_EVENT_0 ) != RTEMS_SUCCESSFUL) { | |
63 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
63 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
64 | } |
|
64 | } | |
65 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffff777; // reset f3 bits to 0, [1111 0111 0111 0111] |
|
65 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffff777; // reset f3 bits to 0, [1111 0111 0111 0111] | |
66 | } |
|
66 | } | |
67 | } |
|
67 | } | |
68 | #endif |
|
68 | #endif | |
69 |
|
69 | |||
70 | switch(lfrCurrentMode) |
|
70 | switch(lfrCurrentMode) | |
71 | { |
|
71 | { | |
72 | //******** |
|
72 | //******** | |
73 | // STANDBY |
|
73 | // STANDBY | |
74 | case(LFR_MODE_STANDBY): |
|
74 | case(LFR_MODE_STANDBY): | |
75 | break; |
|
75 | break; | |
76 |
|
76 | |||
77 | //****** |
|
77 | //****** | |
78 | // NORMAL |
|
78 | // NORMAL | |
79 | case(LFR_MODE_NORMAL): |
|
79 | case(LFR_MODE_NORMAL): | |
80 | #ifdef GSA |
|
80 | #ifdef GSA | |
81 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") |
|
81 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") | |
82 | #else |
|
82 | #else | |
83 | if ( (waveform_picker_regs->burst_enable & 0x7) == 0x0 ){ // if no channel is enable |
|
83 | if ( (waveform_picker_regs->burst_enable & 0x7) == 0x0 ){ // if no channel is enable | |
84 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
84 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
85 | } |
|
85 | } | |
86 | else { |
|
86 | else { | |
87 | if ( (waveform_picker_regs->status & 0x7) == 0x7 ){ // f2 f1 and f0 are full |
|
87 | if ( (waveform_picker_regs->status & 0x7) == 0x7 ){ // f2 f1 and f0 are full | |
88 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable & 0x08; |
|
88 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable & 0x08; | |
89 |
|
89 | |||
90 | ring_node_to_send_swf_f1 = current_ring_node_f1; |
|
90 | ring_node_to_send_swf_f1 = current_ring_node_f1; | |
91 | current_ring_node_f1 = current_ring_node_f1->next; |
|
91 | current_ring_node_f1 = current_ring_node_f1->next; | |
92 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; |
|
92 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; | |
93 |
|
93 | |||
94 | ring_node_to_send_swf_f2 = current_ring_node_f2; |
|
94 | ring_node_to_send_swf_f2 = current_ring_node_f2; | |
95 | current_ring_node_f2 = current_ring_node_f2->next; |
|
95 | current_ring_node_f2 = current_ring_node_f2->next; | |
96 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; |
|
96 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; | |
97 |
|
97 | |||
98 | if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_NORMAL ) != RTEMS_SUCCESSFUL) { |
|
98 | if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_NORMAL ) != RTEMS_SUCCESSFUL) { | |
99 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
99 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
100 | } |
|
100 | } | |
101 |
|
101 | |||
102 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffff888; // [1000 1000 1000] |
|
102 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffff888; // [1000 1000 1000] | |
103 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x07; // [0111] enable f2 f1 f0 |
|
103 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x07; // [0111] enable f2 f1 f0 | |
104 | } |
|
104 | } | |
105 | } |
|
105 | } | |
106 | #endif |
|
106 | #endif | |
107 | break; |
|
107 | break; | |
108 |
|
108 | |||
109 | //****** |
|
109 | //****** | |
110 | // BURST |
|
110 | // BURST | |
111 | case(LFR_MODE_BURST): |
|
111 | case(LFR_MODE_BURST): | |
112 | #ifdef GSA |
|
112 | #ifdef GSA | |
113 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") |
|
113 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") | |
114 | #else |
|
114 | #else | |
115 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ){ // [0100] check the f2 full bit |
|
115 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ){ // [0100] check the f2 full bit | |
116 | // (1) change the receiving buffer for the waveform picker |
|
116 | // (1) change the receiving buffer for the waveform picker | |
117 | ring_node_to_send_cwf_f2 = current_ring_node_f2; |
|
117 | ring_node_to_send_cwf_f2 = current_ring_node_f2; | |
118 | current_ring_node_f2 = current_ring_node_f2->next; |
|
118 | current_ring_node_f2 = current_ring_node_f2->next; | |
119 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; |
|
119 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; | |
120 | // (2) send an event for the waveforms transmission |
|
120 | // (2) send an event for the waveforms transmission | |
121 | if (rtems_event_send( Task_id[TASKID_CWF1], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { |
|
121 | if (rtems_event_send( Task_id[TASKID_CWF1], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { | |
122 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
122 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
123 | } |
|
123 | } | |
124 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffbbb; // [1111 1011 1011 1011] f2 bit = 0 |
|
124 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffbbb; // [1111 1011 1011 1011] f2 bit = 0 | |
125 | } |
|
125 | } | |
126 | #endif |
|
126 | #endif | |
127 | break; |
|
127 | break; | |
128 |
|
128 | |||
129 | //***** |
|
129 | //***** | |
130 | // SBM1 |
|
130 | // SBM1 | |
131 | case(LFR_MODE_SBM1): |
|
131 | case(LFR_MODE_SBM1): | |
132 | #ifdef GSA |
|
132 | #ifdef GSA | |
133 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") |
|
133 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") | |
134 | #else |
|
134 | #else | |
135 | if ( (waveform_picker_regs->status & 0x02) == 0x02 ) { // [0010] check the f1 full bit |
|
135 | if ( (waveform_picker_regs->status & 0x02) == 0x02 ) { // [0010] check the f1 full bit | |
136 | // (1) change the receiving buffer for the waveform picker |
|
136 | // (1) change the receiving buffer for the waveform picker | |
137 | ring_node_to_send_cwf_f1 = current_ring_node_f1; |
|
137 | ring_node_to_send_cwf_f1 = current_ring_node_f1; | |
138 | current_ring_node_f1 = current_ring_node_f1->next; |
|
138 | current_ring_node_f1 = current_ring_node_f1->next; | |
139 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; |
|
139 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; | |
140 | // (2) send an event for the waveforms transmission |
|
140 | // (2) send an event for the waveforms transmission | |
141 | if (rtems_event_send( Task_id[TASKID_CWF1], RTEMS_EVENT_MODE_SBM1 ) != RTEMS_SUCCESSFUL) { |
|
141 | if (rtems_event_send( Task_id[TASKID_CWF1], RTEMS_EVENT_MODE_SBM1 ) != RTEMS_SUCCESSFUL) { | |
142 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
142 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
143 | } |
|
143 | } | |
144 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffddd; // [1111 1101 1101 1101] f1 bit = 0 |
|
144 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffddd; // [1111 1101 1101 1101] f1 bit = 0 | |
145 | } |
|
145 | } | |
146 | if ( (waveform_picker_regs->status & 0x01) == 0x01 ) { // [0001] check the f0 full bit |
|
146 | if ( (waveform_picker_regs->status & 0x01) == 0x01 ) { // [0001] check the f0 full bit | |
147 | ring_node_to_send_swf_f1 = current_ring_node_f1->previous; |
|
147 | ring_node_to_send_swf_f1 = current_ring_node_f1->previous; | |
148 | } |
|
148 | } | |
149 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ) { // [0100] check the f2 full bit |
|
149 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ) { // [0100] check the f2 full bit | |
150 | if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_NORMAL ) != RTEMS_SUCCESSFUL) { |
|
150 | if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_NORMAL ) != RTEMS_SUCCESSFUL) { | |
151 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
151 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
152 | } |
|
152 | } | |
153 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffaaa; // [1111 1010 1010 1010] f2 and f0 bits = 0 |
|
153 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffaaa; // [1111 1010 1010 1010] f2 and f0 bits = 0 | |
154 | } |
|
154 | } | |
155 |
|
155 | |||
156 | #endif |
|
156 | #endif | |
157 | break; |
|
157 | break; | |
158 |
|
158 | |||
159 | //***** |
|
159 | //***** | |
160 | // SBM2 |
|
160 | // SBM2 | |
161 | case(LFR_MODE_SBM2): |
|
161 | case(LFR_MODE_SBM2): | |
162 | #ifdef GSA |
|
162 | #ifdef GSA | |
163 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") |
|
163 | PRINTF("in waveform_isr *** unexpected waveform picker interruption\n") | |
164 | #else |
|
164 | #else | |
165 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ){ // [0100] check the f2 full bit |
|
165 | if ( (waveform_picker_regs->status & 0x04) == 0x04 ){ // [0100] check the f2 full bit | |
166 | // (1) change the receiving buffer for the waveform picker |
|
166 | // (1) change the receiving buffer for the waveform picker | |
167 | ring_node_to_send_cwf_f2 = current_ring_node_f2; |
|
167 | ring_node_to_send_cwf_f2 = current_ring_node_f2; | |
168 | current_ring_node_f2 = current_ring_node_f2->next; |
|
168 | current_ring_node_f2 = current_ring_node_f2->next; | |
169 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; |
|
169 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; | |
170 | // (2) send an event for the waveforms transmission |
|
170 | // (2) send an event for the waveforms transmission | |
171 | if (rtems_event_send( Task_id[TASKID_CWF2], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { |
|
171 | if (rtems_event_send( Task_id[TASKID_CWF2], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { | |
172 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
172 | rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
173 | } |
|
173 | } | |
174 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffbbb; // [1111 1011 1011 1011] f2 bit = 0 |
|
174 | waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffbbb; // [1111 1011 1011 1011] f2 bit = 0 | |
175 | } |
|
175 | } | |
176 | // if ( (waveform_picker_regs->status & 0x03) == 0x03 ) { // [0011] f3 f2 f1 f0, f1 and f0 are full |
|
176 | // if ( (waveform_picker_regs->status & 0x03) == 0x03 ) { // [0011] f3 f2 f1 f0, f1 and f0 are full | |
177 | // if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { |
|
177 | // if (rtems_event_send( Task_id[TASKID_WFRM], RTEMS_EVENT_MODE_SBM2 ) != RTEMS_SUCCESSFUL) { | |
178 | // rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); |
|
178 | // rtems_event_send( Task_id[TASKID_DUMB], RTEMS_EVENT_2 ); | |
179 | // } |
|
179 | // } | |
180 | // waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffccc; // [1111 1100 1100 1100] f1, f0 bits = 0 |
|
180 | // waveform_picker_regs->status = waveform_picker_regs->status & 0xfffffccc; // [1111 1100 1100 1100] f1, f0 bits = 0 | |
181 | // } |
|
181 | // } | |
182 | #endif |
|
182 | #endif | |
183 | break; |
|
183 | break; | |
184 |
|
184 | |||
185 | //******** |
|
185 | //******** | |
186 | // DEFAULT |
|
186 | // DEFAULT | |
187 | default: |
|
187 | default: | |
188 | break; |
|
188 | break; | |
189 | } |
|
189 | } | |
190 | } |
|
190 | } | |
191 |
|
191 | |||
192 | rtems_task wfrm_task(rtems_task_argument argument) //used with the waveform picker VHDL IP |
|
192 | rtems_task wfrm_task(rtems_task_argument argument) //used with the waveform picker VHDL IP | |
193 | { |
|
193 | { | |
194 | /** This RTEMS task is dedicated to the transmission of snapshots of the NORMAL mode. |
|
194 | /** This RTEMS task is dedicated to the transmission of snapshots of the NORMAL mode. | |
195 | * |
|
195 | * | |
196 | * @param unused is the starting argument of the RTEMS task |
|
196 | * @param unused is the starting argument of the RTEMS task | |
197 | * |
|
197 | * | |
198 | * The following data packets are sent by this task: |
|
198 | * The following data packets are sent by this task: | |
199 | * - TM_LFR_SCIENCE_NORMAL_SWF_F0 |
|
199 | * - TM_LFR_SCIENCE_NORMAL_SWF_F0 | |
200 | * - TM_LFR_SCIENCE_NORMAL_SWF_F1 |
|
200 | * - TM_LFR_SCIENCE_NORMAL_SWF_F1 | |
201 | * - TM_LFR_SCIENCE_NORMAL_SWF_F2 |
|
201 | * - TM_LFR_SCIENCE_NORMAL_SWF_F2 | |
202 | * |
|
202 | * | |
203 | */ |
|
203 | */ | |
204 |
|
204 | |||
205 | rtems_event_set event_out; |
|
205 | rtems_event_set event_out; | |
206 | rtems_id queue_id; |
|
206 | rtems_id queue_id; | |
207 | rtems_status_code status; |
|
207 | rtems_status_code status; | |
208 |
|
208 | |||
209 | init_header_snapshot_wf_table( SID_NORM_SWF_F0, headerSWF_F0 ); |
|
209 | init_header_snapshot_wf_table( SID_NORM_SWF_F0, headerSWF_F0 ); | |
210 | init_header_snapshot_wf_table( SID_NORM_SWF_F1, headerSWF_F1 ); |
|
210 | init_header_snapshot_wf_table( SID_NORM_SWF_F1, headerSWF_F1 ); | |
211 | init_header_snapshot_wf_table( SID_NORM_SWF_F2, headerSWF_F2 ); |
|
211 | init_header_snapshot_wf_table( SID_NORM_SWF_F2, headerSWF_F2 ); | |
212 |
|
212 | |||
213 | init_waveforms(); |
|
213 | init_waveforms(); | |
214 |
|
214 | |||
215 | status = get_message_queue_id_send( &queue_id ); |
|
215 | status = get_message_queue_id_send( &queue_id ); | |
216 | if (status != RTEMS_SUCCESSFUL) |
|
216 | if (status != RTEMS_SUCCESSFUL) | |
217 | { |
|
217 | { | |
218 | PRINTF1("in WFRM *** ERR get_message_queue_id_send %d\n", status) |
|
218 | PRINTF1("in WFRM *** ERR get_message_queue_id_send %d\n", status) | |
219 | } |
|
219 | } | |
220 |
|
220 | |||
221 | BOOT_PRINTF("in WFRM ***\n") |
|
221 | BOOT_PRINTF("in WFRM ***\n") | |
222 |
|
222 | |||
223 | while(1){ |
|
223 | while(1){ | |
224 | // wait for an RTEMS_EVENT |
|
224 | // wait for an RTEMS_EVENT | |
225 | rtems_event_receive(RTEMS_EVENT_MODE_NORMAL | RTEMS_EVENT_MODE_SBM1 |
|
225 | rtems_event_receive(RTEMS_EVENT_MODE_NORMAL | RTEMS_EVENT_MODE_SBM1 | |
226 | | RTEMS_EVENT_MODE_SBM2 | RTEMS_EVENT_MODE_SBM2_WFRM, |
|
226 | | RTEMS_EVENT_MODE_SBM2 | RTEMS_EVENT_MODE_SBM2_WFRM, | |
227 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); |
|
227 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); | |
228 | DEBUG_PRINTF("in WFRM *** 2\n") |
|
228 | DEBUG_PRINTF("in WFRM *** 2\n") | |
229 | if (event_out == RTEMS_EVENT_MODE_NORMAL) |
|
229 | if (event_out == RTEMS_EVENT_MODE_NORMAL) | |
230 | { |
|
230 | { | |
231 | send_waveform_SWF(wf_snap_f0, SID_NORM_SWF_F0, headerSWF_F0, queue_id); |
|
231 | send_waveform_SWF(wf_snap_f0, SID_NORM_SWF_F0, headerSWF_F0, queue_id); | |
232 | send_waveform_SWF((volatile int*) ring_node_to_send_swf_f1->buffer_address, SID_NORM_SWF_F1, headerSWF_F1, queue_id); |
|
232 | send_waveform_SWF((volatile int*) ring_node_to_send_swf_f1->buffer_address, SID_NORM_SWF_F1, headerSWF_F1, queue_id); | |
233 | send_waveform_SWF((volatile int*) ring_node_to_send_swf_f2->buffer_address, SID_NORM_SWF_F2, headerSWF_F2, queue_id); |
|
233 | send_waveform_SWF((volatile int*) ring_node_to_send_swf_f2->buffer_address, SID_NORM_SWF_F2, headerSWF_F2, queue_id); | |
234 | } |
|
234 | } | |
235 | else |
|
235 | else | |
236 | { |
|
236 | { | |
237 | PRINTF("in WFRM *** unexpected event") |
|
237 | PRINTF("in WFRM *** unexpected event") | |
238 | } |
|
238 | } | |
239 | } |
|
239 | } | |
240 | } |
|
240 | } | |
241 |
|
241 | |||
242 | rtems_task cwf3_task(rtems_task_argument argument) //used with the waveform picker VHDL IP |
|
242 | rtems_task cwf3_task(rtems_task_argument argument) //used with the waveform picker VHDL IP | |
243 | { |
|
243 | { | |
244 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f3. |
|
244 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f3. | |
245 | * |
|
245 | * | |
246 | * @param unused is the starting argument of the RTEMS task |
|
246 | * @param unused is the starting argument of the RTEMS task | |
247 | * |
|
247 | * | |
248 | * The following data packet is sent by this task: |
|
248 | * The following data packet is sent by this task: | |
249 | * - TM_LFR_SCIENCE_NORMAL_CWF_F3 |
|
249 | * - TM_LFR_SCIENCE_NORMAL_CWF_F3 | |
250 | * |
|
250 | * | |
251 | */ |
|
251 | */ | |
252 |
|
252 | |||
253 | rtems_event_set event_out; |
|
253 | rtems_event_set event_out; | |
254 | rtems_id queue_id; |
|
254 | rtems_id queue_id; | |
255 | rtems_status_code status; |
|
255 | rtems_status_code status; | |
256 |
|
256 | |||
257 | init_header_continuous_wf_table( SID_NORM_CWF_F3, headerCWF_F3 ); |
|
257 | init_header_continuous_wf_table( SID_NORM_CWF_F3, headerCWF_F3 ); | |
258 | init_header_continuous_wf3_light_table( headerCWF_F3_light ); |
|
258 | init_header_continuous_wf3_light_table( headerCWF_F3_light ); | |
259 |
|
259 | |||
260 | status = get_message_queue_id_send( &queue_id ); |
|
260 | status = get_message_queue_id_send( &queue_id ); | |
261 | if (status != RTEMS_SUCCESSFUL) |
|
261 | if (status != RTEMS_SUCCESSFUL) | |
262 | { |
|
262 | { | |
263 | PRINTF1("in CWF3 *** ERR get_message_queue_id_send %d\n", status) |
|
263 | PRINTF1("in CWF3 *** ERR get_message_queue_id_send %d\n", status) | |
264 | } |
|
264 | } | |
265 |
|
265 | |||
266 | BOOT_PRINTF("in CWF3 ***\n") |
|
266 | BOOT_PRINTF("in CWF3 ***\n") | |
267 |
|
267 | |||
268 | while(1){ |
|
268 | while(1){ | |
269 | // wait for an RTEMS_EVENT |
|
269 | // wait for an RTEMS_EVENT | |
270 | rtems_event_receive( RTEMS_EVENT_0, |
|
270 | rtems_event_receive( RTEMS_EVENT_0, | |
271 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); |
|
271 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); | |
272 | PRINTF("send CWF F3 \n") |
|
272 | PRINTF("send CWF F3 \n") | |
273 | #ifdef GSA |
|
273 | #ifdef GSA | |
274 | #else |
|
274 | #else | |
275 | if (waveform_picker_regs->addr_data_f3 == (int) wf_cont_f3) { |
|
275 | if (waveform_picker_regs->addr_data_f3 == (int) wf_cont_f3) { | |
276 | send_waveform_CWF3_light( wf_cont_f3_bis, headerCWF_F3_light, queue_id ); |
|
276 | send_waveform_CWF3_light( wf_cont_f3_bis, headerCWF_F3_light, queue_id ); | |
277 | } |
|
277 | } | |
278 | else { |
|
278 | else { | |
279 | send_waveform_CWF3_light( wf_cont_f3, headerCWF_F3_light, queue_id ); |
|
279 | send_waveform_CWF3_light( wf_cont_f3, headerCWF_F3_light, queue_id ); | |
280 | } |
|
280 | } | |
281 | #endif |
|
281 | #endif | |
282 | } |
|
282 | } | |
283 | } |
|
283 | } | |
284 |
|
284 | |||
285 | rtems_task cwf2_task(rtems_task_argument argument) // ONLY USED IN BURST AND SBM2 |
|
285 | rtems_task cwf2_task(rtems_task_argument argument) // ONLY USED IN BURST AND SBM2 | |
286 | { |
|
286 | { | |
287 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f2. |
|
287 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f2. | |
288 | * |
|
288 | * | |
289 | * @param unused is the starting argument of the RTEMS task |
|
289 | * @param unused is the starting argument of the RTEMS task | |
290 | * |
|
290 | * | |
291 | * The following data packet is sent by this function: |
|
291 | * The following data packet is sent by this function: | |
292 | * - TM_LFR_SCIENCE_BURST_CWF_F2 |
|
292 | * - TM_LFR_SCIENCE_BURST_CWF_F2 | |
293 | * - TM_LFR_SCIENCE_SBM2_CWF_F2 |
|
293 | * - TM_LFR_SCIENCE_SBM2_CWF_F2 | |
294 | * |
|
294 | * | |
295 | */ |
|
295 | */ | |
296 |
|
296 | |||
297 | rtems_event_set event_out; |
|
297 | rtems_event_set event_out; | |
298 | rtems_id queue_id; |
|
298 | rtems_id queue_id; | |
299 | rtems_status_code status; |
|
299 | rtems_status_code status; | |
300 |
|
300 | |||
301 | init_header_continuous_wf_table( SID_BURST_CWF_F2, headerCWF_F2_BURST ); |
|
301 | init_header_continuous_wf_table( SID_BURST_CWF_F2, headerCWF_F2_BURST ); | |
302 | init_header_continuous_wf_table( SID_SBM2_CWF_F2, headerCWF_F2_SBM2 ); |
|
302 | init_header_continuous_wf_table( SID_SBM2_CWF_F2, headerCWF_F2_SBM2 ); | |
303 |
|
303 | |||
304 | status = get_message_queue_id_send( &queue_id ); |
|
304 | status = get_message_queue_id_send( &queue_id ); | |
305 | if (status != RTEMS_SUCCESSFUL) |
|
305 | if (status != RTEMS_SUCCESSFUL) | |
306 | { |
|
306 | { | |
307 | PRINTF1("in CWF2 *** ERR get_message_queue_id_send %d\n", status) |
|
307 | PRINTF1("in CWF2 *** ERR get_message_queue_id_send %d\n", status) | |
308 | } |
|
308 | } | |
309 |
|
309 | |||
310 | BOOT_PRINTF("in CWF2 ***\n") |
|
310 | BOOT_PRINTF("in CWF2 ***\n") | |
311 |
|
311 | |||
312 | while(1){ |
|
312 | while(1){ | |
313 | // wait for an RTEMS_EVENT |
|
313 | // wait for an RTEMS_EVENT | |
314 | rtems_event_receive( RTEMS_EVENT_MODE_BURST | RTEMS_EVENT_MODE_SBM2, |
|
314 | rtems_event_receive( RTEMS_EVENT_MODE_BURST | RTEMS_EVENT_MODE_SBM2, | |
315 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); |
|
315 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); | |
316 |
|
316 | |||
317 | if (event_out == RTEMS_EVENT_MODE_BURST) |
|
317 | if (event_out == RTEMS_EVENT_MODE_BURST) | |
318 | { |
|
318 | { | |
319 | send_waveform_CWF( (volatile int *) ring_node_to_send_cwf_f2, SID_BURST_CWF_F2, headerCWF_F2_BURST, queue_id ); |
|
319 | send_waveform_CWF( (volatile int *) ring_node_to_send_cwf_f2, SID_BURST_CWF_F2, headerCWF_F2_BURST, queue_id ); | |
320 | } |
|
320 | } | |
321 | if (event_out == RTEMS_EVENT_MODE_SBM2) |
|
321 | if (event_out == RTEMS_EVENT_MODE_SBM2) | |
322 | { |
|
322 | { | |
323 | send_waveform_CWF( (volatile int *) ring_node_to_send_cwf_f2, SID_BURST_CWF_F2, headerCWF_F2_BURST, queue_id ); |
|
323 | send_waveform_CWF( (volatile int *) ring_node_to_send_cwf_f2, SID_BURST_CWF_F2, headerCWF_F2_BURST, queue_id ); | |
324 | } |
|
324 | } | |
325 | } |
|
325 | } | |
326 | } |
|
326 | } | |
327 |
|
327 | |||
328 | rtems_task cwf1_task(rtems_task_argument argument) // ONLY USED IN SBM1 |
|
328 | rtems_task cwf1_task(rtems_task_argument argument) // ONLY USED IN SBM1 | |
329 | { |
|
329 | { | |
330 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f1. |
|
330 | /** This RTEMS task is dedicated to the transmission of continuous waveforms at f1. | |
331 | * |
|
331 | * | |
332 | * @param unused is the starting argument of the RTEMS task |
|
332 | * @param unused is the starting argument of the RTEMS task | |
333 | * |
|
333 | * | |
334 | * The following data packet is sent by this function: |
|
334 | * The following data packet is sent by this function: | |
335 | * - TM_LFR_SCIENCE_SBM1_CWF_F1 |
|
335 | * - TM_LFR_SCIENCE_SBM1_CWF_F1 | |
336 | * |
|
336 | * | |
337 | */ |
|
337 | */ | |
338 |
|
338 | |||
339 | rtems_event_set event_out; |
|
339 | rtems_event_set event_out; | |
340 | rtems_id queue_id; |
|
340 | rtems_id queue_id; | |
341 | rtems_status_code status; |
|
341 | rtems_status_code status; | |
342 |
|
342 | |||
343 | init_header_continuous_wf_table( SID_SBM1_CWF_F1, headerCWF_F1 ); |
|
343 | init_header_continuous_wf_table( SID_SBM1_CWF_F1, headerCWF_F1 ); | |
344 |
|
344 | |||
345 | status = get_message_queue_id_send( &queue_id ); |
|
345 | status = get_message_queue_id_send( &queue_id ); | |
346 | if (status != RTEMS_SUCCESSFUL) |
|
346 | if (status != RTEMS_SUCCESSFUL) | |
347 | { |
|
347 | { | |
348 | PRINTF1("in CWF1 *** ERR get_message_queue_id_send %d\n", status) |
|
348 | PRINTF1("in CWF1 *** ERR get_message_queue_id_send %d\n", status) | |
349 | } |
|
349 | } | |
350 |
|
350 | |||
351 | BOOT_PRINTF("in CWF1 ***\n") |
|
351 | BOOT_PRINTF("in CWF1 ***\n") | |
352 |
|
352 | |||
353 | while(1){ |
|
353 | while(1){ | |
354 | // wait for an RTEMS_EVENT |
|
354 | // wait for an RTEMS_EVENT | |
355 | rtems_event_receive( RTEMS_EVENT_MODE_SBM1, |
|
355 | rtems_event_receive( RTEMS_EVENT_MODE_SBM1, | |
356 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); |
|
356 | RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); | |
357 | send_waveform_CWF((volatile int*) ring_node_to_send_cwf_f1->buffer_address, SID_SBM1_CWF_F1, headerCWF_F1, queue_id ); |
|
357 | send_waveform_CWF((volatile int*) ring_node_to_send_cwf_f1->buffer_address, SID_SBM1_CWF_F1, headerCWF_F1, queue_id ); | |
358 | } |
|
358 | } | |
359 | } |
|
359 | } | |
360 |
|
360 | |||
361 | //****************** |
|
361 | //****************** | |
362 | // general functions |
|
362 | // general functions | |
363 | void init_waveforms( void ) |
|
363 | void init_waveforms( void ) | |
364 | { |
|
364 | { | |
365 | int i = 0; |
|
365 | int i = 0; | |
366 |
|
366 | |||
367 | for (i=0; i< NB_SAMPLES_PER_SNAPSHOT; i++) |
|
367 | for (i=0; i< NB_SAMPLES_PER_SNAPSHOT; i++) | |
368 | { |
|
368 | { | |
369 | //*** |
|
369 | //*** | |
370 | // F0 |
|
370 | // F0 | |
371 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x88887777; // |
|
371 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x88887777; // | |
372 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x22221111; // |
|
372 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x22221111; // | |
373 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0x44443333; // |
|
373 | wf_snap_f0[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0x44443333; // | |
374 |
|
374 | |||
375 | //*** |
|
375 | //*** | |
376 | // F1 |
|
376 | // F1 | |
377 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x22221111; |
|
377 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x22221111; | |
378 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x44443333; |
|
378 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x44443333; | |
379 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0xaaaa0000; |
|
379 | // wf_snap_f1[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0xaaaa0000; | |
380 |
|
380 | |||
381 | //*** |
|
381 | //*** | |
382 | // F2 |
|
382 | // F2 | |
383 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x44443333; |
|
383 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 0 + TIME_OFFSET ] = 0x44443333; | |
384 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x22221111; |
|
384 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 1 + TIME_OFFSET ] = 0x22221111; | |
385 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0xaaaa0000; |
|
385 | // wf_snap_f2[ (i* NB_WORDS_SWF_BLK) + 2 + TIME_OFFSET ] = 0xaaaa0000; | |
386 |
|
386 | |||
387 | //*** |
|
387 | //*** | |
388 | // F3 |
|
388 | // F3 | |
389 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 0 ] = val1; |
|
389 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 0 ] = val1; | |
390 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 1 ] = val2; |
|
390 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 1 ] = val2; | |
391 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 2 ] = 0xaaaa0000; |
|
391 | // wf_cont_f3[ (i* NB_WORDS_SWF_BLK) + 2 ] = 0xaaaa0000; | |
392 | } |
|
392 | } | |
393 | } |
|
393 | } | |
394 |
|
394 | |||
395 | void init_waveform_rings( void ) |
|
395 | void init_waveform_rings( void ) | |
396 | { |
|
396 | { | |
397 | unsigned char i; |
|
397 | unsigned char i; | |
398 |
|
398 | |||
399 | // F1 RING |
|
399 | // F1 RING | |
400 | waveform_ring_f1[0].next = (ring_node*) &waveform_ring_f1[1]; |
|
400 | waveform_ring_f1[0].next = (ring_node*) &waveform_ring_f1[1]; | |
401 | waveform_ring_f1[0].previous = (ring_node*) &waveform_ring_f1[NB_RING_NODES_F1-1]; |
|
401 | waveform_ring_f1[0].previous = (ring_node*) &waveform_ring_f1[NB_RING_NODES_F1-1]; | |
402 | waveform_ring_f1[0].buffer_address = (int) &wf_snap_f1[0][0]; |
|
402 | waveform_ring_f1[0].buffer_address = (int) &wf_snap_f1[0][0]; | |
403 |
|
403 | |||
404 | waveform_ring_f1[NB_RING_NODES_F1-1].next = (ring_node*) &waveform_ring_f1[0]; |
|
404 | waveform_ring_f1[NB_RING_NODES_F1-1].next = (ring_node*) &waveform_ring_f1[0]; | |
405 | waveform_ring_f1[NB_RING_NODES_F1-1].previous = (ring_node*) &waveform_ring_f1[NB_RING_NODES_F1-2]; |
|
405 | waveform_ring_f1[NB_RING_NODES_F1-1].previous = (ring_node*) &waveform_ring_f1[NB_RING_NODES_F1-2]; | |
406 | waveform_ring_f1[NB_RING_NODES_F1-1].buffer_address = (int) &wf_snap_f1[NB_RING_NODES_F1-1][0]; |
|
406 | waveform_ring_f1[NB_RING_NODES_F1-1].buffer_address = (int) &wf_snap_f1[NB_RING_NODES_F1-1][0]; | |
407 |
|
407 | |||
408 | for(i=1; i<NB_RING_NODES_F1-1; i++) |
|
408 | for(i=1; i<NB_RING_NODES_F1-1; i++) | |
409 | { |
|
409 | { | |
410 | waveform_ring_f1[i].next = (ring_node*) &waveform_ring_f1[i+1]; |
|
410 | waveform_ring_f1[i].next = (ring_node*) &waveform_ring_f1[i+1]; | |
411 | waveform_ring_f1[i].previous = (ring_node*) &waveform_ring_f1[i-1]; |
|
411 | waveform_ring_f1[i].previous = (ring_node*) &waveform_ring_f1[i-1]; | |
412 | waveform_ring_f1[i].buffer_address = (int) &wf_snap_f1[i][0]; |
|
412 | waveform_ring_f1[i].buffer_address = (int) &wf_snap_f1[i][0]; | |
413 | } |
|
413 | } | |
414 |
|
414 | |||
415 | // F2 RING |
|
415 | // F2 RING | |
416 | waveform_ring_f2[0].next = (ring_node*) &waveform_ring_f2[1]; |
|
416 | waveform_ring_f2[0].next = (ring_node*) &waveform_ring_f2[1]; | |
417 | waveform_ring_f2[0].previous = (ring_node*) &waveform_ring_f2[NB_RING_NODES_F2-1]; |
|
417 | waveform_ring_f2[0].previous = (ring_node*) &waveform_ring_f2[NB_RING_NODES_F2-1]; | |
418 | waveform_ring_f2[0].buffer_address = (int) &wf_snap_f2[0][0]; |
|
418 | waveform_ring_f2[0].buffer_address = (int) &wf_snap_f2[0][0]; | |
419 |
|
419 | |||
420 | waveform_ring_f2[NB_RING_NODES_F2-1].next = (ring_node*) &waveform_ring_f2[0]; |
|
420 | waveform_ring_f2[NB_RING_NODES_F2-1].next = (ring_node*) &waveform_ring_f2[0]; | |
421 | waveform_ring_f2[NB_RING_NODES_F2-1].previous = (ring_node*) &waveform_ring_f2[NB_RING_NODES_F2-2]; |
|
421 | waveform_ring_f2[NB_RING_NODES_F2-1].previous = (ring_node*) &waveform_ring_f2[NB_RING_NODES_F2-2]; | |
422 | waveform_ring_f2[NB_RING_NODES_F2-1].buffer_address = (int) &wf_snap_f2[NB_RING_NODES_F2-1][0]; |
|
422 | waveform_ring_f2[NB_RING_NODES_F2-1].buffer_address = (int) &wf_snap_f2[NB_RING_NODES_F2-1][0]; | |
423 |
|
423 | |||
424 | for(i=1; i<NB_RING_NODES_F2-1; i++) |
|
424 | for(i=1; i<NB_RING_NODES_F2-1; i++) | |
425 | { |
|
425 | { | |
426 | waveform_ring_f2[i].next = (ring_node*) &waveform_ring_f2[i+1]; |
|
426 | waveform_ring_f2[i].next = (ring_node*) &waveform_ring_f2[i+1]; | |
427 | waveform_ring_f2[i].previous = (ring_node*) &waveform_ring_f2[i-1]; |
|
427 | waveform_ring_f2[i].previous = (ring_node*) &waveform_ring_f2[i-1]; | |
428 | waveform_ring_f2[i].buffer_address = (int) &wf_snap_f2[i][0]; |
|
428 | waveform_ring_f2[i].buffer_address = (int) &wf_snap_f2[i][0]; | |
429 | } |
|
429 | } | |
430 |
|
430 | |||
431 | DEBUG_PRINTF1("waveform_ring_f1 @%x\n", (unsigned int) waveform_ring_f1) |
|
431 | DEBUG_PRINTF1("waveform_ring_f1 @%x\n", (unsigned int) waveform_ring_f1) | |
432 | DEBUG_PRINTF1("waveform_ring_f2 @%x\n", (unsigned int) waveform_ring_f2) |
|
432 | DEBUG_PRINTF1("waveform_ring_f2 @%x\n", (unsigned int) waveform_ring_f2) | |
433 |
|
433 | |||
434 | } |
|
434 | } | |
435 |
|
435 | |||
436 | void reset_current_ring_nodes( void ) |
|
436 | void reset_current_ring_nodes( void ) | |
437 | { |
|
437 | { | |
438 | current_ring_node_f1 = waveform_ring_f1; |
|
438 | current_ring_node_f1 = waveform_ring_f1; | |
439 | ring_node_to_send_cwf_f1 = waveform_ring_f1; |
|
439 | ring_node_to_send_cwf_f1 = waveform_ring_f1; | |
440 | ring_node_to_send_swf_f1 = waveform_ring_f1; |
|
440 | ring_node_to_send_swf_f1 = waveform_ring_f1; | |
441 |
|
441 | |||
442 | current_ring_node_f2 = waveform_ring_f2; |
|
442 | current_ring_node_f2 = waveform_ring_f2; | |
443 | ring_node_to_send_cwf_f2 = waveform_ring_f2; |
|
443 | ring_node_to_send_cwf_f2 = waveform_ring_f2; | |
444 | ring_node_to_send_swf_f2 = waveform_ring_f2; |
|
444 | ring_node_to_send_swf_f2 = waveform_ring_f2; | |
445 | } |
|
445 | } | |
446 |
|
446 | |||
447 | int init_header_snapshot_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_SWF_t *headerSWF) |
|
447 | int init_header_snapshot_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_SWF_t *headerSWF) | |
448 | { |
|
448 | { | |
449 | unsigned char i; |
|
449 | unsigned char i; | |
450 |
|
450 | |||
451 | for (i=0; i<7; i++) |
|
451 | for (i=0; i<7; i++) | |
452 | { |
|
452 | { | |
453 | headerSWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; |
|
453 | headerSWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; | |
454 | headerSWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; |
|
454 | headerSWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; | |
455 | headerSWF[ i ].reserved = DEFAULT_RESERVED; |
|
455 | headerSWF[ i ].reserved = DEFAULT_RESERVED; | |
456 | headerSWF[ i ].userApplication = CCSDS_USER_APP; |
|
456 | headerSWF[ i ].userApplication = CCSDS_USER_APP; | |
457 | headerSWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); |
|
457 | headerSWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); | |
458 | headerSWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); |
|
458 | headerSWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); | |
459 | if (i == 0) |
|
459 | if (i == 0) | |
460 | { |
|
460 | { | |
461 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; |
|
461 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; | |
462 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_340 >> 8); |
|
462 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_340 >> 8); | |
463 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_340 ); |
|
463 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_340 ); | |
464 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
464 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
465 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
465 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
466 | } |
|
466 | } | |
467 | else if (i == 6) |
|
467 | else if (i == 6) | |
468 | { |
|
468 | { | |
469 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; |
|
469 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; | |
470 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_8 >> 8); |
|
470 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_8 >> 8); | |
471 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_8 ); |
|
471 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_8 ); | |
472 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); |
|
472 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); | |
473 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); |
|
473 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); | |
474 | } |
|
474 | } | |
475 | else |
|
475 | else | |
476 | { |
|
476 | { | |
477 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; |
|
477 | headerSWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; | |
478 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_340 >> 8); |
|
478 | headerSWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_SWF_340 >> 8); | |
479 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_340 ); |
|
479 | headerSWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_SWF_340 ); | |
480 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
480 | headerSWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
481 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
481 | headerSWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
482 | } |
|
482 | } | |
483 | headerSWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; |
|
483 | headerSWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; | |
484 | headerSWF[ i ].pktCnt = DEFAULT_PKTCNT; // PKT_CNT |
|
484 | headerSWF[ i ].pktCnt = DEFAULT_PKTCNT; // PKT_CNT | |
485 | headerSWF[ i ].pktNr = i+1; // PKT_NR |
|
485 | headerSWF[ i ].pktNr = i+1; // PKT_NR | |
486 | // DATA FIELD HEADER |
|
486 | // DATA FIELD HEADER | |
487 | headerSWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; |
|
487 | headerSWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; | |
488 | headerSWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type |
|
488 | headerSWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type | |
489 | headerSWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype |
|
489 | headerSWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype | |
490 | headerSWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; |
|
490 | headerSWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; | |
491 | // AUXILIARY DATA HEADER |
|
491 | // AUXILIARY DATA HEADER | |
492 | headerSWF[ i ].time[0] = 0x00; |
|
492 | headerSWF[ i ].time[0] = 0x00; | |
493 | headerSWF[ i ].time[0] = 0x00; |
|
493 | headerSWF[ i ].time[0] = 0x00; | |
494 | headerSWF[ i ].time[0] = 0x00; |
|
494 | headerSWF[ i ].time[0] = 0x00; | |
495 | headerSWF[ i ].time[0] = 0x00; |
|
495 | headerSWF[ i ].time[0] = 0x00; | |
496 | headerSWF[ i ].time[0] = 0x00; |
|
496 | headerSWF[ i ].time[0] = 0x00; | |
497 | headerSWF[ i ].time[0] = 0x00; |
|
497 | headerSWF[ i ].time[0] = 0x00; | |
498 | headerSWF[ i ].sid = sid; |
|
498 | headerSWF[ i ].sid = sid; | |
499 | headerSWF[ i ].hkBIA = DEFAULT_HKBIA; |
|
499 | headerSWF[ i ].hkBIA = DEFAULT_HKBIA; | |
500 | } |
|
500 | } | |
501 | return LFR_SUCCESSFUL; |
|
501 | return LFR_SUCCESSFUL; | |
502 | } |
|
502 | } | |
503 |
|
503 | |||
504 | int init_header_continuous_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_CWF_t *headerCWF ) |
|
504 | int init_header_continuous_wf_table( unsigned int sid, Header_TM_LFR_SCIENCE_CWF_t *headerCWF ) | |
505 | { |
|
505 | { | |
506 | unsigned int i; |
|
506 | unsigned int i; | |
507 |
|
507 | |||
508 | for (i=0; i<7; i++) |
|
508 | for (i=0; i<7; i++) | |
509 | { |
|
509 | { | |
510 | headerCWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; |
|
510 | headerCWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; | |
511 | headerCWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; |
|
511 | headerCWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; | |
512 | headerCWF[ i ].reserved = DEFAULT_RESERVED; |
|
512 | headerCWF[ i ].reserved = DEFAULT_RESERVED; | |
513 | headerCWF[ i ].userApplication = CCSDS_USER_APP; |
|
513 | headerCWF[ i ].userApplication = CCSDS_USER_APP; | |
514 | if ( (sid == SID_SBM1_CWF_F1) || (sid == SID_SBM2_CWF_F2) ) |
|
514 | if ( (sid == SID_SBM1_CWF_F1) || (sid == SID_SBM2_CWF_F2) ) | |
515 | { |
|
515 | { | |
516 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_SBM1_SBM2 >> 8); |
|
516 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_SBM1_SBM2 >> 8); | |
517 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_SBM1_SBM2); |
|
517 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_SBM1_SBM2); | |
518 | } |
|
518 | } | |
519 | else |
|
519 | else | |
520 | { |
|
520 | { | |
521 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); |
|
521 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); | |
522 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); |
|
522 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); | |
523 | } |
|
523 | } | |
524 | if (i == 0) |
|
524 | if (i == 0) | |
525 | { |
|
525 | { | |
526 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; |
|
526 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; | |
527 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_340 >> 8); |
|
527 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_340 >> 8); | |
528 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_340 ); |
|
528 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_340 ); | |
529 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
529 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
530 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
530 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
531 | } |
|
531 | } | |
532 | else if (i == 6) |
|
532 | else if (i == 6) | |
533 | { |
|
533 | { | |
534 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; |
|
534 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; | |
535 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_8 >> 8); |
|
535 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_8 >> 8); | |
536 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_8 ); |
|
536 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_8 ); | |
537 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); |
|
537 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); | |
538 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); |
|
538 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); | |
539 | } |
|
539 | } | |
540 | else |
|
540 | else | |
541 | { |
|
541 | { | |
542 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; |
|
542 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; | |
543 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_340 >> 8); |
|
543 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF_340 >> 8); | |
544 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_340 ); |
|
544 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF_340 ); | |
545 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
545 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
546 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
546 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
547 | } |
|
547 | } | |
548 | headerCWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; |
|
548 | headerCWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; | |
549 | // PKT_CNT |
|
549 | // PKT_CNT | |
550 | // PKT_NR |
|
550 | // PKT_NR | |
551 | // DATA FIELD HEADER |
|
551 | // DATA FIELD HEADER | |
552 | headerCWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; |
|
552 | headerCWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; | |
553 | headerCWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type |
|
553 | headerCWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type | |
554 | headerCWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype |
|
554 | headerCWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype | |
555 | headerCWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; |
|
555 | headerCWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; | |
556 | // AUXILIARY DATA HEADER |
|
556 | // AUXILIARY DATA HEADER | |
557 | headerCWF[ i ].sid = sid; |
|
557 | headerCWF[ i ].sid = sid; | |
558 | headerCWF[ i ].hkBIA = DEFAULT_HKBIA; |
|
558 | headerCWF[ i ].hkBIA = DEFAULT_HKBIA; | |
559 | headerCWF[ i ].time[0] = 0x00; |
|
559 | headerCWF[ i ].time[0] = 0x00; | |
560 | headerCWF[ i ].time[0] = 0x00; |
|
560 | headerCWF[ i ].time[0] = 0x00; | |
561 | headerCWF[ i ].time[0] = 0x00; |
|
561 | headerCWF[ i ].time[0] = 0x00; | |
562 | headerCWF[ i ].time[0] = 0x00; |
|
562 | headerCWF[ i ].time[0] = 0x00; | |
563 | headerCWF[ i ].time[0] = 0x00; |
|
563 | headerCWF[ i ].time[0] = 0x00; | |
564 | headerCWF[ i ].time[0] = 0x00; |
|
564 | headerCWF[ i ].time[0] = 0x00; | |
565 | } |
|
565 | } | |
566 | return LFR_SUCCESSFUL; |
|
566 | return LFR_SUCCESSFUL; | |
567 | } |
|
567 | } | |
568 |
|
568 | |||
569 | int init_header_continuous_wf3_light_table( Header_TM_LFR_SCIENCE_CWF_t *headerCWF ) |
|
569 | int init_header_continuous_wf3_light_table( Header_TM_LFR_SCIENCE_CWF_t *headerCWF ) | |
570 | { |
|
570 | { | |
571 | unsigned int i; |
|
571 | unsigned int i; | |
572 |
|
572 | |||
573 | for (i=0; i<7; i++) |
|
573 | for (i=0; i<7; i++) | |
574 | { |
|
574 | { | |
575 | headerCWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; |
|
575 | headerCWF[ i ].targetLogicalAddress = CCSDS_DESTINATION_ID; | |
576 | headerCWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; |
|
576 | headerCWF[ i ].protocolIdentifier = CCSDS_PROTOCOLE_ID; | |
577 | headerCWF[ i ].reserved = DEFAULT_RESERVED; |
|
577 | headerCWF[ i ].reserved = DEFAULT_RESERVED; | |
578 | headerCWF[ i ].userApplication = CCSDS_USER_APP; |
|
578 | headerCWF[ i ].userApplication = CCSDS_USER_APP; | |
579 |
|
579 | |||
580 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); |
|
580 | headerCWF[ i ].packetID[0] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST >> 8); | |
581 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); |
|
581 | headerCWF[ i ].packetID[1] = (unsigned char) (TM_PACKET_ID_SCIENCE_NORMAL_BURST); | |
582 | if (i == 0) |
|
582 | if (i == 0) | |
583 | { |
|
583 | { | |
584 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; |
|
584 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_FIRST; | |
585 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 >> 8); |
|
585 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 >> 8); | |
586 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 ); |
|
586 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 ); | |
587 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
587 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
588 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
588 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
589 | } |
|
589 | } | |
590 | else if (i == 6) |
|
590 | else if (i == 6) | |
591 | { |
|
591 | { | |
592 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; |
|
592 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_LAST; | |
593 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_8 >> 8); |
|
593 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_8 >> 8); | |
594 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_8 ); |
|
594 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_8 ); | |
595 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); |
|
595 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_8 >> 8); | |
596 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); |
|
596 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_8 ); | |
597 | } |
|
597 | } | |
598 | else |
|
598 | else | |
599 | { |
|
599 | { | |
600 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; |
|
600 | headerCWF[ i ].packetSequenceControl[0] = TM_PACKET_SEQ_CTRL_CONTINUATION; | |
601 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 >> 8); |
|
601 | headerCWF[ i ].packetLength[0] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 >> 8); | |
602 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 ); |
|
602 | headerCWF[ i ].packetLength[1] = (unsigned char) (TM_LEN_SCI_CWF3_LIGHT_340 ); | |
603 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); |
|
603 | headerCWF[ i ].blkNr[0] = (unsigned char) (BLK_NR_340 >> 8); | |
604 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); |
|
604 | headerCWF[ i ].blkNr[1] = (unsigned char) (BLK_NR_340 ); | |
605 | } |
|
605 | } | |
606 | headerCWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; |
|
606 | headerCWF[ i ].packetSequenceControl[1] = TM_PACKET_SEQ_CNT_DEFAULT; | |
607 | // DATA FIELD HEADER |
|
607 | // DATA FIELD HEADER | |
608 | headerCWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; |
|
608 | headerCWF[ i ].spare1_pusVersion_spare2 = DEFAULT_SPARE1_PUSVERSION_SPARE2; | |
609 | headerCWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type |
|
609 | headerCWF[ i ].serviceType = TM_TYPE_LFR_SCIENCE; // service type | |
610 | headerCWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype |
|
610 | headerCWF[ i ].serviceSubType = TM_SUBTYPE_LFR_SCIENCE; // service subtype | |
611 | headerCWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; |
|
611 | headerCWF[ i ].destinationID = TM_DESTINATION_ID_GROUND; | |
612 | // AUXILIARY DATA HEADER |
|
612 | // AUXILIARY DATA HEADER | |
613 | headerCWF[ i ].sid = SID_NORM_CWF_F3; |
|
613 | headerCWF[ i ].sid = SID_NORM_CWF_F3; | |
614 | headerCWF[ i ].hkBIA = DEFAULT_HKBIA; |
|
614 | headerCWF[ i ].hkBIA = DEFAULT_HKBIA; | |
615 | headerCWF[ i ].time[0] = 0x00; |
|
615 | headerCWF[ i ].time[0] = 0x00; | |
616 | headerCWF[ i ].time[0] = 0x00; |
|
616 | headerCWF[ i ].time[0] = 0x00; | |
617 | headerCWF[ i ].time[0] = 0x00; |
|
617 | headerCWF[ i ].time[0] = 0x00; | |
618 | headerCWF[ i ].time[0] = 0x00; |
|
618 | headerCWF[ i ].time[0] = 0x00; | |
619 | headerCWF[ i ].time[0] = 0x00; |
|
619 | headerCWF[ i ].time[0] = 0x00; | |
620 | headerCWF[ i ].time[0] = 0x00; |
|
620 | headerCWF[ i ].time[0] = 0x00; | |
621 | } |
|
621 | } | |
622 | return LFR_SUCCESSFUL; |
|
622 | return LFR_SUCCESSFUL; | |
623 | } |
|
623 | } | |
624 |
|
624 | |||
625 | int send_waveform_SWF( volatile int *waveform, unsigned int sid, |
|
625 | int send_waveform_SWF( volatile int *waveform, unsigned int sid, | |
626 | Header_TM_LFR_SCIENCE_SWF_t *headerSWF, rtems_id queue_id ) |
|
626 | Header_TM_LFR_SCIENCE_SWF_t *headerSWF, rtems_id queue_id ) | |
627 | { |
|
627 | { | |
628 | /** This function sends SWF CCSDS packets (F2, F1 or F0). |
|
628 | /** This function sends SWF CCSDS packets (F2, F1 or F0). | |
629 | * |
|
629 | * | |
630 | * @param waveform points to the buffer containing the data that will be send. |
|
630 | * @param waveform points to the buffer containing the data that will be send. | |
631 | * @param sid is the source identifier of the data that will be sent. |
|
631 | * @param sid is the source identifier of the data that will be sent. | |
632 | * @param headerSWF points to a table of headers that have been prepared for the data transmission. |
|
632 | * @param headerSWF points to a table of headers that have been prepared for the data transmission. | |
633 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures |
|
633 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures | |
634 | * contain information to setup the transmission of the data packets. |
|
634 | * contain information to setup the transmission of the data packets. | |
635 | * |
|
635 | * | |
636 | * One group of 2048 samples is sent as 7 consecutive packets, 6 packets containing 340 blocks and 8 packets containing 8 blocks. |
|
636 | * One group of 2048 samples is sent as 7 consecutive packets, 6 packets containing 340 blocks and 8 packets containing 8 blocks. | |
637 | * |
|
637 | * | |
638 | */ |
|
638 | */ | |
639 |
|
639 | |||
640 | unsigned int i; |
|
640 | unsigned int i; | |
641 | int ret; |
|
641 | int ret; | |
642 | rtems_status_code status; |
|
642 | rtems_status_code status; | |
643 | spw_ioctl_pkt_send spw_ioctl_send_SWF; |
|
643 | spw_ioctl_pkt_send spw_ioctl_send_SWF; | |
644 |
|
644 | |||
645 | spw_ioctl_send_SWF.hlen = TM_HEADER_LEN + 4 + 12; // + 4 is for the protocole extra header, + 12 is for the auxiliary header |
|
645 | spw_ioctl_send_SWF.hlen = TM_HEADER_LEN + 4 + 12; // + 4 is for the protocole extra header, + 12 is for the auxiliary header | |
646 | spw_ioctl_send_SWF.options = 0; |
|
646 | spw_ioctl_send_SWF.options = 0; | |
647 |
|
647 | |||
648 | ret = LFR_DEFAULT; |
|
648 | ret = LFR_DEFAULT; | |
649 |
|
649 | |||
650 | for (i=0; i<7; i++) // send waveform |
|
650 | for (i=0; i<7; i++) // send waveform | |
651 | { |
|
651 | { | |
652 | spw_ioctl_send_SWF.data = (char*) &waveform[ (i * 340 * NB_WORDS_SWF_BLK) ]; |
|
652 | spw_ioctl_send_SWF.data = (char*) &waveform[ (i * 340 * NB_WORDS_SWF_BLK) ]; | |
653 | spw_ioctl_send_SWF.hdr = (char*) &headerSWF[ i ]; |
|
653 | spw_ioctl_send_SWF.hdr = (char*) &headerSWF[ i ]; | |
654 | // BUILD THE DATA |
|
654 | // BUILD THE DATA | |
655 | if (i==6) { |
|
655 | if (i==6) { | |
656 | spw_ioctl_send_SWF.dlen = 8 * NB_BYTES_SWF_BLK; |
|
656 | spw_ioctl_send_SWF.dlen = 8 * NB_BYTES_SWF_BLK; | |
657 | } |
|
657 | } | |
658 | else { |
|
658 | else { | |
659 | spw_ioctl_send_SWF.dlen = 340 * NB_BYTES_SWF_BLK; |
|
659 | spw_ioctl_send_SWF.dlen = 340 * NB_BYTES_SWF_BLK; | |
660 | } |
|
660 | } | |
661 | // SET PACKET SEQUENCE COUNTER |
|
661 | // SET PACKET SEQUENCE COUNTER | |
662 | increment_seq_counter_source_id( headerSWF[ i ].packetSequenceControl, sid ); |
|
662 | increment_seq_counter_source_id( headerSWF[ i ].packetSequenceControl, sid ); | |
663 | // SET PACKET TIME |
|
663 | // SET PACKET TIME | |
664 | headerSWF[ i ].acquisitionTime[0] = (unsigned char) (time_management_regs->coarse_time>>24); |
|
664 | headerSWF[ i ].acquisitionTime[0] = (unsigned char) (time_management_regs->coarse_time>>24); | |
665 | headerSWF[ i ].acquisitionTime[1] = (unsigned char) (time_management_regs->coarse_time>>16); |
|
665 | headerSWF[ i ].acquisitionTime[1] = (unsigned char) (time_management_regs->coarse_time>>16); | |
666 | headerSWF[ i ].acquisitionTime[2] = (unsigned char) (time_management_regs->coarse_time>>8); |
|
666 | headerSWF[ i ].acquisitionTime[2] = (unsigned char) (time_management_regs->coarse_time>>8); | |
667 | headerSWF[ i ].acquisitionTime[3] = (unsigned char) (time_management_regs->coarse_time); |
|
667 | headerSWF[ i ].acquisitionTime[3] = (unsigned char) (time_management_regs->coarse_time); | |
668 | headerSWF[ i ].acquisitionTime[4] = (unsigned char) (time_management_regs->fine_time>>8); |
|
668 | headerSWF[ i ].acquisitionTime[4] = (unsigned char) (time_management_regs->fine_time>>8); | |
669 | headerSWF[ i ].acquisitionTime[5] = (unsigned char) (time_management_regs->fine_time); |
|
669 | headerSWF[ i ].acquisitionTime[5] = (unsigned char) (time_management_regs->fine_time); | |
670 | headerSWF[ i ].time[0] = (unsigned char) (time_management_regs->coarse_time>>24); |
|
670 | headerSWF[ i ].time[0] = (unsigned char) (time_management_regs->coarse_time>>24); | |
671 | headerSWF[ i ].time[1] = (unsigned char) (time_management_regs->coarse_time>>16); |
|
671 | headerSWF[ i ].time[1] = (unsigned char) (time_management_regs->coarse_time>>16); | |
672 | headerSWF[ i ].time[2] = (unsigned char) (time_management_regs->coarse_time>>8); |
|
672 | headerSWF[ i ].time[2] = (unsigned char) (time_management_regs->coarse_time>>8); | |
673 | headerSWF[ i ].time[3] = (unsigned char) (time_management_regs->coarse_time); |
|
673 | headerSWF[ i ].time[3] = (unsigned char) (time_management_regs->coarse_time); | |
674 | headerSWF[ i ].time[4] = (unsigned char) (time_management_regs->fine_time>>8); |
|
674 | headerSWF[ i ].time[4] = (unsigned char) (time_management_regs->fine_time>>8); | |
675 | headerSWF[ i ].time[5] = (unsigned char) (time_management_regs->fine_time); |
|
675 | headerSWF[ i ].time[5] = (unsigned char) (time_management_regs->fine_time); | |
676 | // SEND PACKET |
|
676 | // SEND PACKET | |
677 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_SWF, ACTION_MSG_SPW_IOCTL_SEND_SIZE); |
|
677 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_SWF, ACTION_MSG_SPW_IOCTL_SEND_SIZE); | |
678 | if (status != RTEMS_SUCCESSFUL) { |
|
678 | if (status != RTEMS_SUCCESSFUL) { | |
679 | printf("%d-%d, ERR %d\n", sid, i, (int) status); |
|
679 | printf("%d-%d, ERR %d\n", sid, i, (int) status); | |
680 | ret = LFR_DEFAULT; |
|
680 | ret = LFR_DEFAULT; | |
681 | } |
|
681 | } | |
682 | rtems_task_wake_after(TIME_BETWEEN_TWO_SWF_PACKETS); // 300 ms between each packet => 7 * 3 = 21 packets => 6.3 seconds |
|
682 | rtems_task_wake_after(TIME_BETWEEN_TWO_SWF_PACKETS); // 300 ms between each packet => 7 * 3 = 21 packets => 6.3 seconds | |
683 | } |
|
683 | } | |
684 |
|
684 | |||
685 | return ret; |
|
685 | return ret; | |
686 | } |
|
686 | } | |
687 |
|
687 | |||
688 | int send_waveform_CWF(volatile int *waveform, unsigned int sid, |
|
688 | int send_waveform_CWF(volatile int *waveform, unsigned int sid, | |
689 | Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id) |
|
689 | Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id) | |
690 | { |
|
690 | { | |
691 | /** This function sends CWF CCSDS packets (F2, F1 or F0). |
|
691 | /** This function sends CWF CCSDS packets (F2, F1 or F0). | |
692 | * |
|
692 | * | |
693 | * @param waveform points to the buffer containing the data that will be send. |
|
693 | * @param waveform points to the buffer containing the data that will be send. | |
694 | * @param sid is the source identifier of the data that will be sent. |
|
694 | * @param sid is the source identifier of the data that will be sent. | |
695 | * @param headerCWF points to a table of headers that have been prepared for the data transmission. |
|
695 | * @param headerCWF points to a table of headers that have been prepared for the data transmission. | |
696 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures |
|
696 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures | |
697 | * contain information to setup the transmission of the data packets. |
|
697 | * contain information to setup the transmission of the data packets. | |
698 | * |
|
698 | * | |
699 | * One group of 2048 samples is sent as 7 consecutive packets, 6 packets containing 340 blocks and 8 packets containing 8 blocks. |
|
699 | * One group of 2048 samples is sent as 7 consecutive packets, 6 packets containing 340 blocks and 8 packets containing 8 blocks. | |
700 | * |
|
700 | * | |
701 | */ |
|
701 | */ | |
702 |
|
702 | |||
703 | unsigned int i; |
|
703 | unsigned int i; | |
704 | int ret; |
|
704 | int ret; | |
705 | rtems_status_code status; |
|
705 | rtems_status_code status; | |
706 | spw_ioctl_pkt_send spw_ioctl_send_CWF; |
|
706 | spw_ioctl_pkt_send spw_ioctl_send_CWF; | |
707 |
|
707 | |||
708 | spw_ioctl_send_CWF.hlen = TM_HEADER_LEN + 4 + 10; // + 4 is for the protocole extra header, + 10 is for the auxiliary header |
|
708 | spw_ioctl_send_CWF.hlen = TM_HEADER_LEN + 4 + 10; // + 4 is for the protocole extra header, + 10 is for the auxiliary header | |
709 | spw_ioctl_send_CWF.options = 0; |
|
709 | spw_ioctl_send_CWF.options = 0; | |
710 |
|
710 | |||
711 | ret = LFR_DEFAULT; |
|
711 | ret = LFR_DEFAULT; | |
712 |
|
712 | |||
713 | for (i=0; i<7; i++) // send waveform |
|
713 | for (i=0; i<7; i++) // send waveform | |
714 | { |
|
714 | { | |
715 | int coarseTime = 0x00; |
|
715 | int coarseTime = 0x00; | |
716 | int fineTime = 0x00; |
|
716 | int fineTime = 0x00; | |
717 | spw_ioctl_send_CWF.data = (char*) &waveform[ (i * 340 * NB_WORDS_SWF_BLK) ]; |
|
717 | spw_ioctl_send_CWF.data = (char*) &waveform[ (i * 340 * NB_WORDS_SWF_BLK) ]; | |
718 | spw_ioctl_send_CWF.hdr = (char*) &headerCWF[ i ]; |
|
718 | spw_ioctl_send_CWF.hdr = (char*) &headerCWF[ i ]; | |
719 | // BUILD THE DATA |
|
719 | // BUILD THE DATA | |
720 | if (i==6) { |
|
720 | if (i==6) { | |
721 | spw_ioctl_send_CWF.dlen = 8 * NB_BYTES_SWF_BLK; |
|
721 | spw_ioctl_send_CWF.dlen = 8 * NB_BYTES_SWF_BLK; | |
722 | } |
|
722 | } | |
723 | else { |
|
723 | else { | |
724 | spw_ioctl_send_CWF.dlen = 340 * NB_BYTES_SWF_BLK; |
|
724 | spw_ioctl_send_CWF.dlen = 340 * NB_BYTES_SWF_BLK; | |
725 | } |
|
725 | } | |
726 | // SET PACKET SEQUENCE COUNTER |
|
726 | // SET PACKET SEQUENCE COUNTER | |
727 | increment_seq_counter_source_id( headerCWF[ i ].packetSequenceControl, sid ); |
|
727 | increment_seq_counter_source_id( headerCWF[ i ].packetSequenceControl, sid ); | |
728 | // SET PACKET TIME |
|
728 | // SET PACKET TIME | |
729 | coarseTime = time_management_regs->coarse_time; |
|
729 | coarseTime = time_management_regs->coarse_time; | |
730 | fineTime = time_management_regs->fine_time; |
|
730 | fineTime = time_management_regs->fine_time; | |
731 | headerCWF[ i ].acquisitionTime[0] = (unsigned char) (coarseTime>>24); |
|
731 | headerCWF[ i ].acquisitionTime[0] = (unsigned char) (coarseTime>>24); | |
732 | headerCWF[ i ].acquisitionTime[1] = (unsigned char) (coarseTime>>16); |
|
732 | headerCWF[ i ].acquisitionTime[1] = (unsigned char) (coarseTime>>16); | |
733 | headerCWF[ i ].acquisitionTime[2] = (unsigned char) (coarseTime>>8); |
|
733 | headerCWF[ i ].acquisitionTime[2] = (unsigned char) (coarseTime>>8); | |
734 | headerCWF[ i ].acquisitionTime[3] = (unsigned char) (coarseTime); |
|
734 | headerCWF[ i ].acquisitionTime[3] = (unsigned char) (coarseTime); | |
735 | headerCWF[ i ].acquisitionTime[4] = (unsigned char) (fineTime>>8); |
|
735 | headerCWF[ i ].acquisitionTime[4] = (unsigned char) (fineTime>>8); | |
736 | headerCWF[ i ].acquisitionTime[5] = (unsigned char) (fineTime); |
|
736 | headerCWF[ i ].acquisitionTime[5] = (unsigned char) (fineTime); | |
737 | headerCWF[ i ].time[0] = (unsigned char) (coarseTime>>24); |
|
737 | headerCWF[ i ].time[0] = (unsigned char) (coarseTime>>24); | |
738 | headerCWF[ i ].time[1] = (unsigned char) (coarseTime>>16); |
|
738 | headerCWF[ i ].time[1] = (unsigned char) (coarseTime>>16); | |
739 | headerCWF[ i ].time[2] = (unsigned char) (coarseTime>>8); |
|
739 | headerCWF[ i ].time[2] = (unsigned char) (coarseTime>>8); | |
740 | headerCWF[ i ].time[3] = (unsigned char) (coarseTime); |
|
740 | headerCWF[ i ].time[3] = (unsigned char) (coarseTime); | |
741 | headerCWF[ i ].time[4] = (unsigned char) (fineTime>>8); |
|
741 | headerCWF[ i ].time[4] = (unsigned char) (fineTime>>8); | |
742 | headerCWF[ i ].time[5] = (unsigned char) (fineTime); |
|
742 | headerCWF[ i ].time[5] = (unsigned char) (fineTime); | |
743 | // SEND PACKET |
|
743 | // SEND PACKET | |
744 | if (sid == SID_NORM_CWF_F3) |
|
744 | if (sid == SID_NORM_CWF_F3) | |
745 | { |
|
745 | { | |
746 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); |
|
746 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); | |
747 | if (status != RTEMS_SUCCESSFUL) { |
|
747 | if (status != RTEMS_SUCCESSFUL) { | |
748 | printf("%d-%d, ERR %d\n", sid, i, (int) status); |
|
748 | printf("%d-%d, ERR %d\n", sid, i, (int) status); | |
749 | ret = LFR_DEFAULT; |
|
749 | ret = LFR_DEFAULT; | |
750 | } |
|
750 | } | |
751 | rtems_task_wake_after(TIME_BETWEEN_TWO_CWF3_PACKETS); |
|
751 | rtems_task_wake_after(TIME_BETWEEN_TWO_CWF3_PACKETS); | |
752 | } |
|
752 | } | |
753 | else |
|
753 | else | |
754 | { |
|
754 | { | |
755 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); |
|
755 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); | |
756 | if (status != RTEMS_SUCCESSFUL) { |
|
756 | if (status != RTEMS_SUCCESSFUL) { | |
757 | printf("%d-%d, ERR %d\n", sid, i, (int) status); |
|
757 | printf("%d-%d, ERR %d\n", sid, i, (int) status); | |
758 | ret = LFR_DEFAULT; |
|
758 | ret = LFR_DEFAULT; | |
759 | } |
|
759 | } | |
760 | } |
|
760 | } | |
761 | } |
|
761 | } | |
762 |
|
762 | |||
763 | return ret; |
|
763 | return ret; | |
764 | } |
|
764 | } | |
765 |
|
765 | |||
766 | int send_waveform_CWF3_light(volatile int *waveform, Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id) |
|
766 | int send_waveform_CWF3_light(volatile int *waveform, Header_TM_LFR_SCIENCE_CWF_t *headerCWF, rtems_id queue_id) | |
767 | { |
|
767 | { | |
768 | /** This function sends CWF_F3 CCSDS packets without the b1, b2 and b3 data. |
|
768 | /** This function sends CWF_F3 CCSDS packets without the b1, b2 and b3 data. | |
769 | * |
|
769 | * | |
770 | * @param waveform points to the buffer containing the data that will be send. |
|
770 | * @param waveform points to the buffer containing the data that will be send. | |
771 | * @param headerCWF points to a table of headers that have been prepared for the data transmission. |
|
771 | * @param headerCWF points to a table of headers that have been prepared for the data transmission. | |
772 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures |
|
772 | * @param queue_id is the id of the rtems queue to which spw_ioctl_pkt_send structures will be send. The structures | |
773 | * contain information to setup the transmission of the data packets. |
|
773 | * contain information to setup the transmission of the data packets. | |
774 | * |
|
774 | * | |
775 | * By default, CWF_F3 packet are send without the b1, b2 and b3 data. This function rebuilds a data buffer |
|
775 | * By default, CWF_F3 packet are send without the b1, b2 and b3 data. This function rebuilds a data buffer | |
776 | * from the incoming data and sends it in 7 packets, 6 containing 340 blocks and 1 one containing 8 blocks. |
|
776 | * from the incoming data and sends it in 7 packets, 6 containing 340 blocks and 1 one containing 8 blocks. | |
777 | * |
|
777 | * | |
778 | */ |
|
778 | */ | |
779 |
|
779 | |||
780 | unsigned int i; |
|
780 | unsigned int i; | |
781 | int ret; |
|
781 | int ret; | |
782 | rtems_status_code status; |
|
782 | rtems_status_code status; | |
783 | spw_ioctl_pkt_send spw_ioctl_send_CWF; |
|
783 | spw_ioctl_pkt_send spw_ioctl_send_CWF; | |
784 | char *sample; |
|
784 | char *sample; | |
785 |
|
785 | |||
786 | spw_ioctl_send_CWF.hlen = TM_HEADER_LEN + 4 + 10; // + 4 is for the protocole extra header, + 10 is for the auxiliary header |
|
786 | spw_ioctl_send_CWF.hlen = TM_HEADER_LEN + 4 + 10; // + 4 is for the protocole extra header, + 10 is for the auxiliary header | |
787 | spw_ioctl_send_CWF.options = 0; |
|
787 | spw_ioctl_send_CWF.options = 0; | |
788 |
|
788 | |||
789 | ret = LFR_DEFAULT; |
|
789 | ret = LFR_DEFAULT; | |
790 |
|
790 | |||
791 | //********************** |
|
791 | //********************** | |
792 | // BUILD CWF3_light DATA |
|
792 | // BUILD CWF3_light DATA | |
793 | for ( i=0; i< 2048; i++) |
|
793 | for ( i=0; i< 2048; i++) | |
794 | { |
|
794 | { | |
795 | sample = (char*) &waveform[ i * NB_WORDS_SWF_BLK ]; |
|
795 | sample = (char*) &waveform[ i * NB_WORDS_SWF_BLK ]; | |
796 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) ] = sample[ 0 ]; |
|
796 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) ] = sample[ 0 ]; | |
797 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 1 ] = sample[ 1 ]; |
|
797 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 1 ] = sample[ 1 ]; | |
798 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 2 ] = sample[ 2 ]; |
|
798 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 2 ] = sample[ 2 ]; | |
799 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 3 ] = sample[ 3 ]; |
|
799 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 3 ] = sample[ 3 ]; | |
800 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 4 ] = sample[ 4 ]; |
|
800 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 4 ] = sample[ 4 ]; | |
801 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 5 ] = sample[ 5 ]; |
|
801 | wf_cont_f3_light[ (i * NB_BYTES_CWF3_LIGHT_BLK) + 5 ] = sample[ 5 ]; | |
802 | } |
|
802 | } | |
803 |
|
803 | |||
804 | //********************* |
|
804 | //********************* | |
805 | // SEND CWF3_light DATA |
|
805 | // SEND CWF3_light DATA | |
806 |
|
806 | |||
807 | for (i=0; i<7; i++) // send waveform |
|
807 | for (i=0; i<7; i++) // send waveform | |
808 | { |
|
808 | { | |
809 | int coarseTime = 0x00; |
|
809 | int coarseTime = 0x00; | |
810 | int fineTime = 0x00; |
|
810 | int fineTime = 0x00; | |
811 | spw_ioctl_send_CWF.data = (char*) &wf_cont_f3_light[ (i * 340 * NB_BYTES_CWF3_LIGHT_BLK) ]; |
|
811 | spw_ioctl_send_CWF.data = (char*) &wf_cont_f3_light[ (i * 340 * NB_BYTES_CWF3_LIGHT_BLK) ]; | |
812 | spw_ioctl_send_CWF.hdr = (char*) &headerCWF[ i ]; |
|
812 | spw_ioctl_send_CWF.hdr = (char*) &headerCWF[ i ]; | |
813 | // BUILD THE DATA |
|
813 | // BUILD THE DATA | |
814 | if ( i == WFRM_INDEX_OF_LAST_PACKET ) { |
|
814 | if ( i == WFRM_INDEX_OF_LAST_PACKET ) { | |
815 | spw_ioctl_send_CWF.dlen = 8 * NB_BYTES_CWF3_LIGHT_BLK; |
|
815 | spw_ioctl_send_CWF.dlen = 8 * NB_BYTES_CWF3_LIGHT_BLK; | |
816 | } |
|
816 | } | |
817 | else { |
|
817 | else { | |
818 | spw_ioctl_send_CWF.dlen = 340 * NB_BYTES_CWF3_LIGHT_BLK; |
|
818 | spw_ioctl_send_CWF.dlen = 340 * NB_BYTES_CWF3_LIGHT_BLK; | |
819 | } |
|
819 | } | |
820 | // SET PACKET SEQUENCE COUNTER |
|
820 | // SET PACKET SEQUENCE COUNTER | |
821 | increment_seq_counter_source_id( headerCWF[ i ].packetSequenceControl, SID_NORM_CWF_F3 ); |
|
821 | increment_seq_counter_source_id( headerCWF[ i ].packetSequenceControl, SID_NORM_CWF_F3 ); | |
822 | // SET PACKET TIME |
|
822 | // SET PACKET TIME | |
823 | coarseTime = time_management_regs->coarse_time; |
|
823 | coarseTime = time_management_regs->coarse_time; | |
824 | fineTime = time_management_regs->fine_time; |
|
824 | fineTime = time_management_regs->fine_time; | |
825 | headerCWF[ i ].acquisitionTime[0] = (unsigned char) (coarseTime>>24); |
|
825 | headerCWF[ i ].acquisitionTime[0] = (unsigned char) (coarseTime>>24); | |
826 | headerCWF[ i ].acquisitionTime[1] = (unsigned char) (coarseTime>>16); |
|
826 | headerCWF[ i ].acquisitionTime[1] = (unsigned char) (coarseTime>>16); | |
827 | headerCWF[ i ].acquisitionTime[2] = (unsigned char) (coarseTime>>8); |
|
827 | headerCWF[ i ].acquisitionTime[2] = (unsigned char) (coarseTime>>8); | |
828 | headerCWF[ i ].acquisitionTime[3] = (unsigned char) (coarseTime); |
|
828 | headerCWF[ i ].acquisitionTime[3] = (unsigned char) (coarseTime); | |
829 | headerCWF[ i ].acquisitionTime[4] = (unsigned char) (fineTime>>8); |
|
829 | headerCWF[ i ].acquisitionTime[4] = (unsigned char) (fineTime>>8); | |
830 | headerCWF[ i ].acquisitionTime[5] = (unsigned char) (fineTime); |
|
830 | headerCWF[ i ].acquisitionTime[5] = (unsigned char) (fineTime); | |
831 | headerCWF[ i ].time[0] = (unsigned char) (coarseTime>>24); |
|
831 | headerCWF[ i ].time[0] = (unsigned char) (coarseTime>>24); | |
832 | headerCWF[ i ].time[1] = (unsigned char) (coarseTime>>16); |
|
832 | headerCWF[ i ].time[1] = (unsigned char) (coarseTime>>16); | |
833 | headerCWF[ i ].time[2] = (unsigned char) (coarseTime>>8); |
|
833 | headerCWF[ i ].time[2] = (unsigned char) (coarseTime>>8); | |
834 | headerCWF[ i ].time[3] = (unsigned char) (coarseTime); |
|
834 | headerCWF[ i ].time[3] = (unsigned char) (coarseTime); | |
835 | headerCWF[ i ].time[4] = (unsigned char) (fineTime>>8); |
|
835 | headerCWF[ i ].time[4] = (unsigned char) (fineTime>>8); | |
836 | headerCWF[ i ].time[5] = (unsigned char) (fineTime); |
|
836 | headerCWF[ i ].time[5] = (unsigned char) (fineTime); | |
837 | // SEND PACKET |
|
837 | // SEND PACKET | |
838 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); |
|
838 | status = rtems_message_queue_send( queue_id, &spw_ioctl_send_CWF, sizeof(spw_ioctl_send_CWF)); | |
839 | if (status != RTEMS_SUCCESSFUL) { |
|
839 | if (status != RTEMS_SUCCESSFUL) { | |
840 | printf("%d-%d, ERR %d\n", SID_NORM_CWF_F3, i, (int) status); |
|
840 | printf("%d-%d, ERR %d\n", SID_NORM_CWF_F3, i, (int) status); | |
841 | ret = LFR_DEFAULT; |
|
841 | ret = LFR_DEFAULT; | |
842 | } |
|
842 | } | |
843 | rtems_task_wake_after(TIME_BETWEEN_TWO_CWF3_PACKETS); |
|
843 | rtems_task_wake_after(TIME_BETWEEN_TWO_CWF3_PACKETS); | |
844 | } |
|
844 | } | |
845 |
|
845 | |||
846 | return ret; |
|
846 | return ret; | |
847 | } |
|
847 | } | |
848 |
|
848 | |||
849 |
|
849 | |||
850 | //************** |
|
850 | //************** | |
851 | // wfp registers |
|
851 | // wfp registers | |
852 | void set_wfp_data_shaping() |
|
852 | void set_wfp_data_shaping() | |
853 | { |
|
853 | { | |
854 | /** This function sets the data_shaping register of the waveform picker module. |
|
854 | /** This function sets the data_shaping register of the waveform picker module. | |
855 | * |
|
855 | * | |
856 | * The value is read from one field of the parameter_dump_packet structure:\n |
|
856 | * The value is read from one field of the parameter_dump_packet structure:\n | |
857 | * bw_sp0_sp1_r0_r1 |
|
857 | * bw_sp0_sp1_r0_r1 | |
858 | * |
|
858 | * | |
859 | */ |
|
859 | */ | |
860 |
|
860 | |||
861 | unsigned char data_shaping; |
|
861 | unsigned char data_shaping; | |
862 |
|
862 | |||
863 | // get the parameters for the data shaping [BW SP0 SP1 R0 R1] in sy_lfr_common1 and configure the register |
|
863 | // get the parameters for the data shaping [BW SP0 SP1 R0 R1] in sy_lfr_common1 and configure the register | |
864 | // waveform picker : [R1 R0 SP1 SP0 BW] |
|
864 | // waveform picker : [R1 R0 SP1 SP0 BW] | |
865 |
|
865 | |||
866 | data_shaping = parameter_dump_packet.bw_sp0_sp1_r0_r1; |
|
866 | data_shaping = parameter_dump_packet.bw_sp0_sp1_r0_r1; | |
867 |
|
867 | |||
868 | #ifdef GSA |
|
868 | #ifdef GSA | |
869 | #else |
|
869 | #else | |
870 | waveform_picker_regs->data_shaping = |
|
870 | waveform_picker_regs->data_shaping = | |
871 | ( (data_shaping & 0x10) >> 4 ) // BW |
|
871 | ( (data_shaping & 0x10) >> 4 ) // BW | |
872 | + ( (data_shaping & 0x08) >> 2 ) // SP0 |
|
872 | + ( (data_shaping & 0x08) >> 2 ) // SP0 | |
873 | + ( (data_shaping & 0x04) ) // SP1 |
|
873 | + ( (data_shaping & 0x04) ) // SP1 | |
874 | + ( (data_shaping & 0x02) << 2 ) // R0 |
|
874 | + ( (data_shaping & 0x02) << 2 ) // R0 | |
875 | + ( (data_shaping & 0x01) << 4 ); // R1 |
|
875 | + ( (data_shaping & 0x01) << 4 ); // R1 | |
876 | #endif |
|
876 | #endif | |
877 | } |
|
877 | } | |
878 |
|
878 | |||
879 | char set_wfp_delta_snapshot() |
|
879 | char set_wfp_delta_snapshot() | |
880 | { |
|
880 | { | |
881 | /** This function sets the delta_snapshot register of the waveform picker module. |
|
881 | /** This function sets the delta_snapshot register of the waveform picker module. | |
882 | * |
|
882 | * | |
883 | * The value is read from two (unsigned char) of the parameter_dump_packet structure: |
|
883 | * The value is read from two (unsigned char) of the parameter_dump_packet structure: | |
884 | * - sy_lfr_n_swf_p[0] |
|
884 | * - sy_lfr_n_swf_p[0] | |
885 | * - sy_lfr_n_swf_p[1] |
|
885 | * - sy_lfr_n_swf_p[1] | |
886 | * |
|
886 | * | |
887 | */ |
|
887 | */ | |
888 |
|
888 | |||
889 | char ret; |
|
889 | char ret; | |
890 | unsigned int delta_snapshot; |
|
890 | unsigned int delta_snapshot; | |
891 | unsigned int aux; |
|
891 | unsigned int aux; | |
892 |
|
892 | |||
893 | aux = 0; |
|
893 | aux = 0; | |
894 | ret = LFR_DEFAULT; |
|
894 | ret = LFR_DEFAULT; | |
895 |
|
895 | |||
896 | delta_snapshot = parameter_dump_packet.sy_lfr_n_swf_p[0]*256 |
|
896 | delta_snapshot = parameter_dump_packet.sy_lfr_n_swf_p[0]*256 | |
897 | + parameter_dump_packet.sy_lfr_n_swf_p[1]; |
|
897 | + parameter_dump_packet.sy_lfr_n_swf_p[1]; | |
898 |
|
898 | |||
899 | #ifdef GSA |
|
899 | #ifdef GSA | |
900 | #else |
|
900 | #else | |
901 | if ( delta_snapshot < MIN_DELTA_SNAPSHOT ) |
|
901 | if ( delta_snapshot < MIN_DELTA_SNAPSHOT ) | |
902 | { |
|
902 | { | |
903 | aux = MIN_DELTA_SNAPSHOT; |
|
903 | aux = MIN_DELTA_SNAPSHOT; | |
904 | ret = LFR_DEFAULT; |
|
904 | ret = LFR_DEFAULT; | |
905 | } |
|
905 | } | |
906 | else |
|
906 | else | |
907 | { |
|
907 | { | |
908 | aux = delta_snapshot ; |
|
908 | aux = delta_snapshot ; | |
909 | ret = LFR_SUCCESSFUL; |
|
909 | ret = LFR_SUCCESSFUL; | |
910 | } |
|
910 | } | |
911 | waveform_picker_regs->delta_snapshot = aux - 1; // max 2 bytes |
|
911 | waveform_picker_regs->delta_snapshot = aux - 1; // max 2 bytes | |
912 | #endif |
|
912 | #endif | |
913 |
|
913 | |||
914 | return ret; |
|
914 | return ret; | |
915 | } |
|
915 | } | |
916 |
|
916 | |||
917 | void set_wfp_burst_enable_register( unsigned char mode) |
|
917 | void set_wfp_burst_enable_register( unsigned char mode) | |
918 | { |
|
918 | { | |
919 | /** This function sets the waveform picker burst_enable register depending on the mode. |
|
919 | /** This function sets the waveform picker burst_enable register depending on the mode. | |
920 | * |
|
920 | * | |
921 | * @param mode is the LFR mode to launch. |
|
921 | * @param mode is the LFR mode to launch. | |
922 | * |
|
922 | * | |
923 | * The burst bits shall be before the enable bits. |
|
923 | * The burst bits shall be before the enable bits. | |
924 | * |
|
924 | * | |
925 | */ |
|
925 | */ | |
926 |
|
926 | |||
927 | #ifdef GSA |
|
927 | #ifdef GSA | |
928 | #else |
|
928 | #else | |
929 | // [0000 0000] burst f2, f1, f0 enable f3 f2 f1 f0 |
|
929 | // [0000 0000] burst f2, f1, f0 enable f3 f2 f1 f0 | |
930 | // the burst bits shall be set first, before the enable bits |
|
930 | // the burst bits shall be set first, before the enable bits | |
931 | switch(mode) { |
|
931 | switch(mode) { | |
932 | case(LFR_MODE_NORMAL): |
|
932 | case(LFR_MODE_NORMAL): | |
933 | waveform_picker_regs->burst_enable = 0x00; // [0000 0000] no burst enable |
|
933 | waveform_picker_regs->burst_enable = 0x00; // [0000 0000] no burst enable | |
934 | waveform_picker_regs->burst_enable = 0x0f; // [0000 1111] enable f3 f2 f1 f0 |
|
934 | waveform_picker_regs->burst_enable = 0x0f; // [0000 1111] enable f3 f2 f1 f0 | |
935 | break; |
|
935 | break; | |
936 | case(LFR_MODE_BURST): |
|
936 | case(LFR_MODE_BURST): | |
937 | waveform_picker_regs->burst_enable = 0x40; // [0100 0000] f2 burst enabled |
|
937 | waveform_picker_regs->burst_enable = 0x40; // [0100 0000] f2 burst enabled | |
938 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x04; // [0100] enable f2 |
|
938 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x04; // [0100] enable f2 | |
939 | break; |
|
939 | break; | |
940 | case(LFR_MODE_SBM1): |
|
940 | case(LFR_MODE_SBM1): | |
941 | waveform_picker_regs->burst_enable = 0x20; // [0010 0000] f1 burst enabled |
|
941 | waveform_picker_regs->burst_enable = 0x20; // [0010 0000] f1 burst enabled | |
942 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x0f; // [1111] enable f3 f2 f1 f0 |
|
942 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x0f; // [1111] enable f3 f2 f1 f0 | |
943 | break; |
|
943 | break; | |
944 | case(LFR_MODE_SBM2): |
|
944 | case(LFR_MODE_SBM2): | |
945 | waveform_picker_regs->burst_enable = 0x40; // [0100 0000] f2 burst enabled |
|
945 | waveform_picker_regs->burst_enable = 0x40; // [0100 0000] f2 burst enabled | |
946 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x0f; // [1111] enable f3 f2 f1 f0 |
|
946 | waveform_picker_regs->burst_enable = waveform_picker_regs->burst_enable | 0x0f; // [1111] enable f3 f2 f1 f0 | |
947 | break; |
|
947 | break; | |
948 | default: |
|
948 | default: | |
949 | waveform_picker_regs->burst_enable = 0x00; // [0000 0000] no burst enabled, no waveform enabled |
|
949 | waveform_picker_regs->burst_enable = 0x00; // [0000 0000] no burst enabled, no waveform enabled | |
950 | break; |
|
950 | break; | |
951 | } |
|
951 | } | |
952 | #endif |
|
952 | #endif | |
953 | } |
|
953 | } | |
954 |
|
954 | |||
955 | void reset_wfp_burst_enable() |
|
955 | void reset_wfp_burst_enable() | |
956 | { |
|
956 | { | |
957 | /** This function resets the waveform picker burst_enable register. |
|
957 | /** This function resets the waveform picker burst_enable register. | |
958 | * |
|
958 | * | |
959 | * The burst bits [f2 f1 f0] and the enable bits [f3 f2 f1 f0] are set to 0. |
|
959 | * The burst bits [f2 f1 f0] and the enable bits [f3 f2 f1 f0] are set to 0. | |
960 | * |
|
960 | * | |
961 | */ |
|
961 | */ | |
962 |
|
962 | |||
963 | #ifdef GSA |
|
963 | #ifdef GSA | |
964 | #else |
|
964 | #else | |
965 | waveform_picker_regs->burst_enable = 0x00; // burst f2, f1, f0 enable f3, f2, f1, f0 |
|
965 | waveform_picker_regs->burst_enable = 0x00; // burst f2, f1, f0 enable f3, f2, f1, f0 | |
966 | #endif |
|
966 | #endif | |
967 | } |
|
967 | } | |
968 |
|
968 | |||
969 | void reset_wfp_status() |
|
969 | void reset_wfp_status() | |
970 | { |
|
970 | { | |
971 | /** This function resets the waveform picker status register. |
|
971 | /** This function resets the waveform picker status register. | |
972 | * |
|
972 | * | |
973 | * All status bits are set to 0 [new_err full_err full]. |
|
973 | * All status bits are set to 0 [new_err full_err full]. | |
974 | * |
|
974 | * | |
975 | */ |
|
975 | */ | |
976 |
|
976 | |||
977 | #ifdef GSA |
|
977 | #ifdef GSA | |
978 | #else |
|
978 | #else | |
979 | waveform_picker_regs->status = 0x00; // burst f2, f1, f0 enable f3, f2, f1, f0 |
|
979 | waveform_picker_regs->status = 0x00; // burst f2, f1, f0 enable f3, f2, f1, f0 | |
980 | #endif |
|
980 | #endif | |
981 | } |
|
981 | } | |
982 |
|
982 | |||
983 | void reset_waveform_picker_regs() |
|
983 | void reset_waveform_picker_regs() | |
984 | { |
|
984 | { | |
985 | /** This function resets the waveform picker module registers. |
|
985 | /** This function resets the waveform picker module registers. | |
986 | * |
|
986 | * | |
987 | * The registers affected by this function are located at the following offset addresses: |
|
987 | * The registers affected by this function are located at the following offset addresses: | |
988 | * - 0x00 data_shaping |
|
988 | * - 0x00 data_shaping | |
989 | * - 0x04 burst_enable |
|
989 | * - 0x04 burst_enable | |
990 | * - 0x08 addr_data_f0 |
|
990 | * - 0x08 addr_data_f0 | |
991 | * - 0x0C addr_data_f1 |
|
991 | * - 0x0C addr_data_f1 | |
992 | * - 0x10 addr_data_f2 |
|
992 | * - 0x10 addr_data_f2 | |
993 | * - 0x14 addr_data_f3 |
|
993 | * - 0x14 addr_data_f3 | |
994 | * - 0x18 status |
|
994 | * - 0x18 status | |
995 | * - 0x1C delta_snapshot |
|
995 | * - 0x1C delta_snapshot | |
996 | * - 0x20 delta_f2_f1 |
|
996 | * - 0x20 delta_f2_f1 | |
997 | * - 0x24 delta_f2_f0 |
|
997 | * - 0x24 delta_f2_f0 | |
998 | * - 0x28 nb_burst |
|
998 | * - 0x28 nb_burst | |
999 | * - 0x2C nb_snapshot |
|
999 | * - 0x2C nb_snapshot | |
1000 | * |
|
1000 | * | |
1001 | */ |
|
1001 | */ | |
1002 |
|
1002 | |||
1003 | #ifdef GSA |
|
1003 | #ifdef GSA | |
1004 | #else |
|
1004 | #else | |
1005 | reset_wfp_burst_enable(); |
|
1005 | reset_wfp_burst_enable(); | |
1006 | reset_wfp_status(); |
|
1006 | reset_wfp_status(); | |
1007 | // set buffer addresses |
|
1007 | // set buffer addresses | |
1008 | waveform_picker_regs->addr_data_f0 = (int) (wf_snap_f0); |
|
1008 | waveform_picker_regs->addr_data_f0 = (int) (wf_snap_f0); | |
1009 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; |
|
1009 | waveform_picker_regs->addr_data_f1 = current_ring_node_f1->buffer_address; | |
1010 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; |
|
1010 | waveform_picker_regs->addr_data_f2 = current_ring_node_f2->buffer_address; | |
1011 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3); |
|
1011 | waveform_picker_regs->addr_data_f3 = (int) (wf_cont_f3); | |
1012 | // set other parameters |
|
1012 | // set other parameters | |
1013 | set_wfp_data_shaping(); |
|
1013 | set_wfp_data_shaping(); | |
1014 | set_wfp_delta_snapshot(); // time in seconds between two snapshots |
|
1014 | set_wfp_delta_snapshot(); // time in seconds between two snapshots | |
1015 | waveform_picker_regs->delta_f2_f1 = 0xffff; // 0x16800 => 92160 (max 4 bytes) |
|
1015 | waveform_picker_regs->delta_f2_f1 = 0xffff; // 0x16800 => 92160 (max 4 bytes) | |
1016 | waveform_picker_regs->delta_f2_f0 = 0x17c00; // 97 280 (max 5 bytes) |
|
1016 | waveform_picker_regs->delta_f2_f0 = 0x17c00; // 97 280 (max 5 bytes) | |
1017 | waveform_picker_regs->nb_burst_available = 0x180; // max 3 bytes, size of the buffer in burst (1 burst = 16 x 4 octets) |
|
1017 | // waveform_picker_regs->nb_burst_available = 0x180; // max 3 bytes, size of the buffer in burst (1 burst = 16 x 4 octets) | |
1018 | waveform_picker_regs->nb_snapshot_param = 0x7ff; // max 3 octets, 2048 - 1 |
|
1018 | // // 3 * 2048 / 16 = 384 | |
|
1019 | // waveform_picker_regs->nb_snapshot_param = 0x7ff; // max 3 octets, 2048 - 1 | |||
|
1020 | waveform_picker_regs->nb_burst_available = 0x1b9; // max 3 bytes, size of the buffer in burst (1 burst = 16 x 4 octets) | |||
|
1021 | // 3 * 2352 / 16 = 441 | |||
|
1022 | waveform_picker_regs->nb_snapshot_param = 0x944; // max 3 octets, 2372 - 1 | |||
1019 | #endif |
|
1023 | #endif | |
1020 | } |
|
1024 | } | |
1021 |
|
1025 | |||
1022 | //***************** |
|
1026 | //***************** | |
1023 | // local parameters |
|
1027 | // local parameters | |
1024 | void set_local_sbm1_nb_cwf_max( void ) |
|
1028 | void set_local_sbm1_nb_cwf_max( void ) | |
1025 | { |
|
1029 | { | |
1026 | /** This function sets the value of the sbm1_nb_cwf_max local parameter. |
|
1030 | /** This function sets the value of the sbm1_nb_cwf_max local parameter. | |
1027 | * |
|
1031 | * | |
1028 | * The sbm1_nb_cwf_max parameter counts the number of CWF_F1 records that have been sent.\n |
|
1032 | * The sbm1_nb_cwf_max parameter counts the number of CWF_F1 records that have been sent.\n | |
1029 | * This parameter is used to send CWF_F1 data as normal data when the SBM1 is active.\n\n |
|
1033 | * This parameter is used to send CWF_F1 data as normal data when the SBM1 is active.\n\n | |
1030 | * (2 snapshots of 2048 points per seconds) * (period of the NORM snashots) - 8 s (duration of the f2 snapshot) |
|
1034 | * (2 snapshots of 2048 points per seconds) * (period of the NORM snashots) - 8 s (duration of the f2 snapshot) | |
1031 | * |
|
1035 | * | |
1032 | */ |
|
1036 | */ | |
1033 | param_local.local_sbm1_nb_cwf_max = 2 * |
|
1037 | param_local.local_sbm1_nb_cwf_max = 2 * | |
1034 | (parameter_dump_packet.sy_lfr_n_swf_p[0] * 256 |
|
1038 | (parameter_dump_packet.sy_lfr_n_swf_p[0] * 256 | |
1035 | + parameter_dump_packet.sy_lfr_n_swf_p[1]) - 8; // 16 CWF1 parts during 1 SWF2 |
|
1039 | + parameter_dump_packet.sy_lfr_n_swf_p[1]) - 8; // 16 CWF1 parts during 1 SWF2 | |
1036 | } |
|
1040 | } | |
1037 |
|
1041 | |||
1038 | void set_local_sbm2_nb_cwf_max(void) |
|
1042 | void set_local_sbm2_nb_cwf_max(void) | |
1039 | { |
|
1043 | { | |
1040 | /** This function sets the value of the sbm1_nb_cwf_max local parameter. |
|
1044 | /** This function sets the value of the sbm1_nb_cwf_max local parameter. | |
1041 | * |
|
1045 | * | |
1042 | * The sbm1_nb_cwf_max parameter counts the number of CWF_F1 records that have been sent.\n |
|
1046 | * The sbm1_nb_cwf_max parameter counts the number of CWF_F1 records that have been sent.\n | |
1043 | * This parameter is used to send CWF_F2 data as normal data when the SBM2 is active.\n\n |
|
1047 | * This parameter is used to send CWF_F2 data as normal data when the SBM2 is active.\n\n | |
1044 | * (period of the NORM snashots) / (8 seconds per snapshot at f2 = 256 Hz) |
|
1048 | * (period of the NORM snashots) / (8 seconds per snapshot at f2 = 256 Hz) | |
1045 | * |
|
1049 | * | |
1046 | */ |
|
1050 | */ | |
1047 |
|
1051 | |||
1048 | param_local.local_sbm2_nb_cwf_max = (parameter_dump_packet.sy_lfr_n_swf_p[0] * 256 |
|
1052 | param_local.local_sbm2_nb_cwf_max = (parameter_dump_packet.sy_lfr_n_swf_p[0] * 256 | |
1049 | + parameter_dump_packet.sy_lfr_n_swf_p[1]) / 8; |
|
1053 | + parameter_dump_packet.sy_lfr_n_swf_p[1]) / 8; | |
1050 | } |
|
1054 | } | |
1051 |
|
1055 | |||
1052 | void set_local_nb_interrupt_f0_MAX( void ) |
|
1056 | void set_local_nb_interrupt_f0_MAX( void ) | |
1053 | { |
|
1057 | { | |
1054 | /** This function sets the value of the nb_interrupt_f0_MAX local parameter. |
|
1058 | /** This function sets the value of the nb_interrupt_f0_MAX local parameter. | |
1055 | * |
|
1059 | * | |
1056 | * This parameter is used for the SM validation only.\n |
|
1060 | * This parameter is used for the SM validation only.\n | |
1057 | * The software waits param_local.local_nb_interrupt_f0_MAX interruptions from the spectral matrices |
|
1061 | * The software waits param_local.local_nb_interrupt_f0_MAX interruptions from the spectral matrices | |
1058 | * module before launching a basic processing. |
|
1062 | * module before launching a basic processing. | |
1059 | * |
|
1063 | * | |
1060 | */ |
|
1064 | */ | |
1061 |
|
1065 | |||
1062 | param_local.local_nb_interrupt_f0_MAX = ( (parameter_dump_packet.sy_lfr_n_asm_p[0]) * 256 |
|
1066 | param_local.local_nb_interrupt_f0_MAX = ( (parameter_dump_packet.sy_lfr_n_asm_p[0]) * 256 | |
1063 | + parameter_dump_packet.sy_lfr_n_asm_p[1] ) * 100; |
|
1067 | + parameter_dump_packet.sy_lfr_n_asm_p[1] ) * 100; | |
1064 | } |
|
1068 | } | |
1065 |
|
1069 | |||
1066 | void reset_local_sbm1_nb_cwf_sent( void ) |
|
1070 | void reset_local_sbm1_nb_cwf_sent( void ) | |
1067 | { |
|
1071 | { | |
1068 | /** This function resets the value of the sbm1_nb_cwf_sent local parameter. |
|
1072 | /** This function resets the value of the sbm1_nb_cwf_sent local parameter. | |
1069 | * |
|
1073 | * | |
1070 | * The sbm1_nb_cwf_sent parameter counts the number of CWF_F1 records that have been sent.\n |
|
1074 | * The sbm1_nb_cwf_sent parameter counts the number of CWF_F1 records that have been sent.\n | |
1071 | * This parameter is used to send CWF_F1 data as normal data when the SBM1 is active. |
|
1075 | * This parameter is used to send CWF_F1 data as normal data when the SBM1 is active. | |
1072 | * |
|
1076 | * | |
1073 | */ |
|
1077 | */ | |
1074 |
|
1078 | |||
1075 | param_local.local_sbm1_nb_cwf_sent = 0; |
|
1079 | param_local.local_sbm1_nb_cwf_sent = 0; | |
1076 | } |
|
1080 | } | |
1077 |
|
1081 | |||
1078 | void reset_local_sbm2_nb_cwf_sent( void ) |
|
1082 | void reset_local_sbm2_nb_cwf_sent( void ) | |
1079 | { |
|
1083 | { | |
1080 | /** This function resets the value of the sbm2_nb_cwf_sent local parameter. |
|
1084 | /** This function resets the value of the sbm2_nb_cwf_sent local parameter. | |
1081 | * |
|
1085 | * | |
1082 | * The sbm2_nb_cwf_sent parameter counts the number of CWF_F2 records that have been sent.\n |
|
1086 | * The sbm2_nb_cwf_sent parameter counts the number of CWF_F2 records that have been sent.\n | |
1083 | * This parameter is used to send CWF_F2 data as normal data when the SBM2 mode is active. |
|
1087 | * This parameter is used to send CWF_F2 data as normal data when the SBM2 mode is active. | |
1084 | * |
|
1088 | * | |
1085 | */ |
|
1089 | */ | |
1086 |
|
1090 | |||
1087 | param_local.local_sbm2_nb_cwf_sent = 0; |
|
1091 | param_local.local_sbm2_nb_cwf_sent = 0; | |
1088 | } |
|
1092 | } | |
1089 |
|
1093 | |||
1090 | void increment_seq_counter_source_id( unsigned char *packet_sequence_control, unsigned int sid ) |
|
1094 | void increment_seq_counter_source_id( unsigned char *packet_sequence_control, unsigned int sid ) | |
1091 | { |
|
1095 | { | |
1092 | unsigned short *sequence_cnt; |
|
1096 | unsigned short *sequence_cnt; | |
1093 | unsigned short segmentation_grouping_flag; |
|
1097 | unsigned short segmentation_grouping_flag; | |
1094 | unsigned short new_packet_sequence_control; |
|
1098 | unsigned short new_packet_sequence_control; | |
1095 |
|
1099 | |||
1096 | if ( (sid ==SID_NORM_SWF_F0) || (sid ==SID_NORM_SWF_F1) || (sid ==SID_NORM_SWF_F2) |
|
1100 | if ( (sid ==SID_NORM_SWF_F0) || (sid ==SID_NORM_SWF_F1) || (sid ==SID_NORM_SWF_F2) | |
1097 | || (sid ==SID_NORM_CWF_F3) || (sid ==SID_BURST_CWF_F2) ) |
|
1101 | || (sid ==SID_NORM_CWF_F3) || (sid ==SID_BURST_CWF_F2) ) | |
1098 | { |
|
1102 | { | |
1099 | sequence_cnt = &sequenceCounters_SCIENCE_NORMAL_BURST; |
|
1103 | sequence_cnt = &sequenceCounters_SCIENCE_NORMAL_BURST; | |
1100 | } |
|
1104 | } | |
1101 | else if ( (sid ==SID_SBM1_CWF_F1) || (sid ==SID_SBM2_CWF_F2) ) |
|
1105 | else if ( (sid ==SID_SBM1_CWF_F1) || (sid ==SID_SBM2_CWF_F2) ) | |
1102 | { |
|
1106 | { | |
1103 | sequence_cnt = &sequenceCounters_SCIENCE_SBM1_SBM2; |
|
1107 | sequence_cnt = &sequenceCounters_SCIENCE_SBM1_SBM2; | |
1104 | } |
|
1108 | } | |
1105 | else |
|
1109 | else | |
1106 | { |
|
1110 | { | |
1107 | sequence_cnt = NULL; |
|
1111 | sequence_cnt = NULL; | |
1108 | PRINTF1("in increment_seq_counter_source_id *** ERR apid_destid %d not known\n", sid) |
|
1112 | PRINTF1("in increment_seq_counter_source_id *** ERR apid_destid %d not known\n", sid) | |
1109 | } |
|
1113 | } | |
1110 |
|
1114 | |||
1111 | if (sequence_cnt != NULL) |
|
1115 | if (sequence_cnt != NULL) | |
1112 | { |
|
1116 | { | |
1113 | segmentation_grouping_flag = (packet_sequence_control[ 0 ] & 0xc0) << 8; |
|
1117 | segmentation_grouping_flag = (packet_sequence_control[ 0 ] & 0xc0) << 8; | |
1114 | *sequence_cnt = (*sequence_cnt) & 0x3fff; |
|
1118 | *sequence_cnt = (*sequence_cnt) & 0x3fff; | |
1115 |
|
1119 | |||
1116 | new_packet_sequence_control = segmentation_grouping_flag | *sequence_cnt ; |
|
1120 | new_packet_sequence_control = segmentation_grouping_flag | *sequence_cnt ; | |
1117 |
|
1121 | |||
1118 | packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8); |
|
1122 | packet_sequence_control[0] = (unsigned char) (new_packet_sequence_control >> 8); | |
1119 | packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control ); |
|
1123 | packet_sequence_control[1] = (unsigned char) (new_packet_sequence_control ); | |
1120 |
|
1124 | |||
1121 | // increment the sequence counter for the next packet |
|
1125 | // increment the sequence counter for the next packet | |
1122 | if ( *sequence_cnt < SEQ_CNT_MAX) |
|
1126 | if ( *sequence_cnt < SEQ_CNT_MAX) | |
1123 | { |
|
1127 | { | |
1124 | *sequence_cnt = *sequence_cnt + 1; |
|
1128 | *sequence_cnt = *sequence_cnt + 1; | |
1125 | } |
|
1129 | } | |
1126 | else |
|
1130 | else | |
1127 | { |
|
1131 | { | |
1128 | *sequence_cnt = 0; |
|
1132 | *sequence_cnt = 0; | |
1129 | } |
|
1133 | } | |
1130 | } |
|
1134 | } | |
1131 | } |
|
1135 | } |
General Comments 0
You need to be logged in to leave comments.
Login now