##// END OF EJS Templates
Beginning of the message queue implementation for the actions handler
admin@pc-p-leroy3.LAB-LPP.LOCAL -
r8:ab2dbbe22332 default
parent child
Show More
@@ -4,13 +4,13
4 <Project>
4 <Project>
5 <Option title="FSW-rtems" />
5 <Option title="FSW-rtems" />
6 <Option pch_mode="2" />
6 <Option pch_mode="2" />
7 <Option compiler="sparc_rtems_gcc" />
7 <Option compiler="sparcrtemsgcc446" />
8 <Build>
8 <Build>
9 <Target title="Debug">
9 <Target title="Debug">
10 <Option output="bin/Debug/fsw" prefix_auto="1" extension_auto="1" />
10 <Option output="bin/Debug/fsw" prefix_auto="1" extension_auto="1" />
11 <Option object_output="obj/Debug/" />
11 <Option object_output="obj/Debug/" />
12 <Option type="1" />
12 <Option type="1" />
13 <Option compiler="sparc_rtems_gcc_compiler" />
13 <Option compiler="sparcrtems446" />
14 <Compiler>
14 <Compiler>
15 <Add option="-fexpensive-optimizations" />
15 <Add option="-fexpensive-optimizations" />
16 <Add option="-O3" />
16 <Add option="-O3" />
@@ -23,7 +23,7
23 <Option output="bin/Release/FSW-rtems" prefix_auto="1" extension_auto="1" />
23 <Option output="bin/Release/FSW-rtems" prefix_auto="1" extension_auto="1" />
24 <Option object_output="obj/Release/" />
24 <Option object_output="obj/Release/" />
25 <Option type="1" />
25 <Option type="1" />
26 <Option compiler="sparc_rtems_gcc" />
26 <Option compiler="sparcrtemsgcc446" />
27 <Compiler>
27 <Compiler>
28 <Add option="-O2" />
28 <Add option="-O2" />
29 </Compiler>
29 </Compiler>
@@ -1,11 +1,11
1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2 <CodeBlocks_layout_file>
2 <CodeBlocks_layout_file>
3 <ActiveTarget name="Debug" />
3 <ActiveTarget name="Debug" />
4 <File name="../header/ccsds_types.h" open="1" top="0" tabpos="5">
4 <File name="../header/ccsds_types.h" open="0" top="0" tabpos="5">
5 <Cursor position="1172" topLine="24" />
5 <Cursor position="1172" topLine="24" />
6 </File>
6 </File>
7 <File name="../header/fsw_init.h" open="0" top="0" tabpos="0">
7 <File name="../header/fsw_init.h" open="1" top="0" tabpos="3">
8 <Cursor position="307" topLine="0" />
8 <Cursor position="410" topLine="16" />
9 </File>
9 </File>
10 <File name="../header/fsw_misc.h" open="0" top="0" tabpos="0">
10 <File name="../header/fsw_misc.h" open="0" top="0" tabpos="0">
11 <Cursor position="114" topLine="0" />
11 <Cursor position="114" topLine="0" />
@@ -14,28 +14,28
14 <Cursor position="1320" topLine="8" />
14 <Cursor position="1320" topLine="8" />
15 </File>
15 </File>
16 <File name="../header/fsw_processing.h" open="0" top="0" tabpos="0">
16 <File name="../header/fsw_processing.h" open="0" top="0" tabpos="0">
17 <Cursor position="175" topLine="1" />
17 <Cursor position="510" topLine="0" />
18 </File>
18 </File>
19 <File name="../header/tc_handler.h" open="1" top="0" tabpos="4">
19 <File name="../header/tc_handler.h" open="0" top="0" tabpos="4">
20 <Cursor position="634" topLine="0" />
20 <Cursor position="634" topLine="0" />
21 </File>
21 </File>
22 <File name="../header/wf_handler.h" open="0" top="0" tabpos="0">
22 <File name="../header/wf_handler.h" open="0" top="0" tabpos="0">
23 <Cursor position="212" topLine="0" />
23 <Cursor position="212" topLine="0" />
24 </File>
24 </File>
25 <File name="../src/fsw_globals.c" open="0" top="0" tabpos="0">
25 <File name="../src/fsw_globals.c" open="1" top="0" tabpos="4">
26 <Cursor position="908" topLine="0" />
26 <Cursor position="46" topLine="0" />
27 </File>
27 </File>
28 <File name="../src/fsw_init.c" open="1" top="0" tabpos="1">
28 <File name="../src/fsw_init.c" open="1" top="1" tabpos="2">
29 <Cursor position="1703" topLine="42" />
29 <Cursor position="3361" topLine="60" />
30 </File>
30 </File>
31 <File name="../src/fsw_misc.c" open="0" top="0" tabpos="0">
31 <File name="../src/fsw_misc.c" open="0" top="0" tabpos="0">
32 <Cursor position="20" topLine="0" />
32 <Cursor position="20" topLine="0" />
33 </File>
33 </File>
34 <File name="../src/fsw_processing.c" open="1" top="0" tabpos="2">
34 <File name="../src/fsw_processing.c" open="0" top="0" tabpos="2">
35 <Cursor position="1175" topLine="46" />
35 <Cursor position="1175" topLine="46" />
36 </File>
36 </File>
37 <File name="../src/tc_handler.c" open="1" top="1" tabpos="3">
37 <File name="../src/tc_handler.c" open="1" top="0" tabpos="1">
38 <Cursor position="2672" topLine="26" />
38 <Cursor position="11070" topLine="270" />
39 </File>
39 </File>
40 <File name="../src/wf_handler.c" open="0" top="0" tabpos="0">
40 <File name="../src/wf_handler.c" open="0" top="0" tabpos="0">
41 <Cursor position="3936" topLine="62" />
41 <Cursor position="3936" topLine="62" />
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -18,6 +18,7
18
18
19 extern int sched_yield();
19 extern int sched_yield();
20 extern int errno;
20 extern int errno;
21 extern rtems_name misc_names[ ];
21
22
22 // RTEMS TASKS
23 // RTEMS TASKS
23 rtems_task Init( rtems_task_argument argument); /* forward declaration needed */
24 rtems_task Init( rtems_task_argument argument); /* forward declaration needed */
@@ -27,6 +28,7 rtems_task spw_stat_task(rtems_task_argu
27 rtems_task spw_wfrm_task(rtems_task_argument argument);
28 rtems_task spw_wfrm_task(rtems_task_argument argument);
28 int create_all_tasks();
29 int create_all_tasks();
29 int start_all_tasks();
30 int start_all_tasks();
31 int create_message_queue();
30
32
31 // OTHER functions
33 // OTHER functions
32 int configure_spw_link();
34 int configure_spw_link();
@@ -1,4 +1,8
1 #include <fsw_processing.h>
1 #include <fsw_processing.h>
2 #include <rtems.h>
3
4 // RTEMS GLOBAL VARIABLES
5 rtems_name misc_names[5];
2
6
3 // WAVEFORMS GLOBAL VARIABLES
7 // WAVEFORMS GLOBAL VARIABLES
4 volatile int wf_snap_f0[ NB_SAMPLES_PER_SNAPSHOT * NB_BYTES_SWF_BLK ]; // 24576 bytes
8 volatile int wf_snap_f0[ NB_SAMPLES_PER_SNAPSHOT * NB_BYTES_SWF_BLK ]; // 24576 bytes
@@ -66,7 +66,8 rtems_task Init( rtems_task_argument ign
66 //send_console_outputs_on_serial_port();
66 //send_console_outputs_on_serial_port();
67
67
68 InitLookUpTableForCRC(); // in tc_handler.h
68 InitLookUpTableForCRC(); // in tc_handler.h
69
69
70 create_message_queue();
70 create_all_tasks();
71 create_all_tasks();
71 start_all_tasks();
72 start_all_tasks();
72
73
@@ -104,6 +105,12 rtems_task spw_spiq_task(rtems_task_argu
104 }
105 }
105 }
106 }
106
107
108 int create_message_queue()
109 {
110 misc_names[0] = rtems_build_name( 'D', 'O', 'I', 'T' );
111 return 0;
112 }
113
107 int create_all_tasks()
114 int create_all_tasks()
108 {
115 {
109 rtems_status_code status;
116 rtems_status_code status;
@@ -278,7 +278,7 unsigned char TM_build_data(ccsdsTelecom
278
278
279 unsigned char actionLauncher(unsigned int sid)
279 unsigned char actionLauncher(unsigned int sid)
280 {
280 {
281
281 return 0;
282 }
282 }
283
283
284 //***********
284 //***********
General Comments 0
You need to be logged in to leave comments. Login now