@@ -1,77 +1,82 | |||
|
1 | 1 | cmake_minimum_required (VERSION 2.6) |
|
2 | 2 | project (FSW) |
|
3 | 3 | |
|
4 | 4 | include(sparc-rtems) |
|
5 | 5 | |
|
6 | 6 | include_directories("../header" |
|
7 | 7 | "../header/lfr_common_headers" |
|
8 | 8 | "../header/processing" |
|
9 | 9 | "../LFR_basic-parameters" |
|
10 | 10 | "../src") |
|
11 | 11 | |
|
12 | 12 | set(SOURCES wf_handler.c |
|
13 | 13 | tc_handler.c |
|
14 | 14 | fsw_misc.c |
|
15 | 15 | fsw_init.c |
|
16 | 16 | fsw_globals.c |
|
17 | 17 | fsw_spacewire.c |
|
18 | 18 | tc_load_dump_parameters.c |
|
19 | 19 | tm_lfr_tc_exe.c |
|
20 | 20 | tc_acceptance.c |
|
21 | 21 | processing/fsw_processing.c |
|
22 | 22 | processing/avf0_prc0.c |
|
23 | 23 | processing/avf1_prc1.c |
|
24 | 24 | processing/avf2_prc2.c |
|
25 | 25 | lfr_cpu_usage_report.c |
|
26 | 26 | ${LFR_BP_SRC} |
|
27 | 27 | ) |
|
28 | 28 | |
|
29 | 29 | |
|
30 | option(verbose "Enable verbose LFR" ON) | |
|
31 | option(boot_messages "Enable LFR boot messages" ON) | |
|
32 | option(debug_messages "Enable LFR debug messages" ON) | |
|
33 | option(cpu_usage_report "Enable LFR cpu usage report" OFF) | |
|
34 | option(stack_report "Enable LFR stack report" OFF) | |
|
35 | option(vhdl_dev "?" OFF) | |
|
36 | option(lpp_dpu_destid "Set to debug at LPP" ON) | |
|
37 | option(debug_watchdog "Enable debug watchdog" OFF) | |
|
38 | option(debug_tch "?" OFF) | |
|
30 | option(FSW_verbose "Enable verbose LFR" ON) | |
|
31 | option(FSW_boot_messages "Enable LFR boot messages" ON) | |
|
32 | option(FSW_debug_messages "Enable LFR debug messages" ON) | |
|
33 | option(FSW_cpu_usage_report "Enable LFR cpu usage report" OFF) | |
|
34 | option(FSW_stack_report "Enable LFR stack report" OFF) | |
|
35 | option(FSW_vhdl_dev "?" OFF) | |
|
36 | option(FSW_lpp_dpu_destid "Set to debug at LPP" ON) | |
|
37 | option(FSW_debug_watchdog "Enable debug watchdog" OFF) | |
|
38 | option(FSW_debug_tch "?" OFF) | |
|
39 | ||
|
40 | set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE) | |
|
41 | set(SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE) | |
|
42 | set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE) | |
|
43 | set(SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE) | |
|
39 | 44 | |
|
40 | 45 | |
|
41 |
if |
|
|
46 | if(FSW_verbose) | |
|
42 | 47 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
|
43 | 48 | endif() |
|
44 |
if |
|
|
49 | if(FSW_boot_messages) | |
|
45 | 50 | add_definitions(-DBOOT_MESSAGES) |
|
46 | 51 | endif() |
|
47 |
if |
|
|
52 | if(FSW_debug_messages) | |
|
48 | 53 | add_definitions(-DDEBUG_MESSAGES) |
|
49 | 54 | endif() |
|
50 |
if |
|
|
55 | if(FSW_cpu_usage_report) | |
|
51 | 56 | add_definitions(-DPRINT_TASK_STATISTICS) |
|
52 | 57 | endif() |
|
53 |
if |
|
|
58 | if(FSW_stack_report) | |
|
54 | 59 | add_definitions(-DPRINT_STACK_REPORT) |
|
55 | 60 | endif() |
|
56 |
if |
|
|
61 | if(FSW_vhdl_dev) | |
|
57 | 62 | add_definitions(-DVHDL_DEV) |
|
58 | 63 | endif() |
|
59 |
if |
|
|
64 | if(FSW_lpp_dpu_destid) | |
|
60 | 65 | add_definitions(-DLPP_DPU_DESTID) |
|
61 | 66 | endif() |
|
62 |
if |
|
|
67 | if(FSW_debug_watchdog) | |
|
63 | 68 | add_definitions(-DDEBUG_WATCHDOG) |
|
64 | 69 | endif() |
|
65 |
if |
|
|
70 | if(FSW_debug_tch) | |
|
66 | 71 | add_definitions(-DDEBUG_TCH) |
|
67 | 72 | endif() |
|
68 | 73 | |
|
69 | 74 | add_definitions(-DMSB_FIRST_TCH) |
|
70 | 75 | |
|
71 | 76 | add_definitions(-DSWVERSION=-1-0) |
|
72 |
add_definitions(-DSW_VERSION_N1= |
|
|
73 |
add_definitions(-DSW_VERSION_N2= |
|
|
74 |
add_definitions(-DSW_VERSION_N3= |
|
|
75 | add_definitions(-DSW_VERSION_N4=4) | |
|
77 | add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1}) | |
|
78 | add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2}) | |
|
79 | add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3}) | |
|
80 | add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4}) | |
|
76 | 81 | |
|
77 | 82 | add_executable(FSW ${SOURCES}) |
@@ -1,67 +1,72 | |||
|
1 | 1 | cmake_minimum_required (VERSION 2.6) |
|
2 | 2 | project (timegen) |
|
3 | 3 | |
|
4 | 4 | include(sparc-rtems) |
|
5 | 5 | |
|
6 | 6 | include_directories("./src" |
|
7 | 7 | "./header" |
|
8 | 8 | "./header/processing" |
|
9 | 9 | "./src/LFR_basic-parameters") |
|
10 | 10 | |
|
11 | 11 | set(SOURCES src/tc_handler.c |
|
12 | 12 | src/fsw_misc.c |
|
13 | 13 | src/fsw_init.c |
|
14 | 14 | src/fsw_globals.c |
|
15 | 15 | src/fsw_spacewire.c |
|
16 | 16 | src/tc_acceptance.c |
|
17 | 17 | ../LFR_basic-parameters/basic_parameters.c) |
|
18 | 18 | |
|
19 | 19 | |
|
20 |
option(verbose "Enable verbose |
|
|
21 |
option(boot_messages "Enable |
|
|
22 |
option(debug_messages "Enable |
|
|
23 |
option(cpu_usage_report "Enable |
|
|
24 |
option(stack_report "Enable |
|
|
25 | option(vhdl_dev "?" OFF) | |
|
26 | option(lpp_dpu_destid "Set to debug at LPP" ON) | |
|
27 | option(debug_watchdog "Enable debug watchdog" OFF) | |
|
28 | option(debug_tch "?" OFF) | |
|
20 | option(timegen_verbose "Enable verbose Timegen" ON) | |
|
21 | option(timegen_boot_messages "Enable Timegen boot messages" ON) | |
|
22 | option(timegen_debug_messages "Enable Timegen debug messages" ON) | |
|
23 | option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF) | |
|
24 | option(timegen_stack_report "Enable Timegen stack report" OFF) | |
|
25 | option(timegen_vhdl_dev "?" OFF) | |
|
26 | option(timegen_lpp_dpu_destid "Set to debug at LPP" ON) | |
|
27 | option(timegen_debug_watchdog "Enable debug watchdog" OFF) | |
|
28 | option(timegen_debug_tch "?" OFF) | |
|
29 | ||
|
30 | set(TIMEGEN_SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE) | |
|
31 | set(TIMEGEN_SW_VERSION_N2 "1" CACHE STRING "Choose N2 FSW Version." FORCE) | |
|
32 | set(TIMEGEN_SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE) | |
|
33 | set(TIMEGEN_SW_VERSION_N4 "4" CACHE STRING "Choose N4 FSW Version." FORCE) | |
|
29 | 34 | |
|
30 | 35 | |
|
31 | if (verbose) | |
|
36 | if (timegen_verbose) | |
|
32 | 37 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
|
33 | 38 | endif() |
|
34 | if (boot_messages) | |
|
39 | if (timegen_boot_messages) | |
|
35 | 40 | add_definitions(-DBOOT_MESSAGES) |
|
36 | 41 | endif() |
|
37 | if (debug_messages) | |
|
42 | if (timegen_debug_messages) | |
|
38 | 43 | add_definitions(-DDEBUG_MESSAGES) |
|
39 | 44 | endif() |
|
40 | if (cpu_usage_report) | |
|
45 | if (timegen_cpu_usage_report) | |
|
41 | 46 | add_definitions(-DPRINT_TASK_STATISTICS) |
|
42 | 47 | endif() |
|
43 | if (stack_report) | |
|
48 | if (timegen_stack_report) | |
|
44 | 49 | add_definitions(-DPRINT_STACK_REPORT) |
|
45 | 50 | endif() |
|
46 | if (vhdl_dev) | |
|
51 | if (timegen_vhdl_dev) | |
|
47 | 52 | add_definitions(-DVHDL_DEV) |
|
48 | 53 | endif() |
|
49 | if (lpp_dpu_destid) | |
|
54 | if (timegen_lpp_dpu_destid) | |
|
50 | 55 | add_definitions(-DLPP_DPU_DESTID) |
|
51 | 56 | endif() |
|
52 | if (debug_watchdog) | |
|
57 | if (timegen_debug_watchdog) | |
|
53 | 58 | add_definitions(-DDEBUG_WATCHDOG) |
|
54 | 59 | endif() |
|
55 | if (debug_tch) | |
|
60 | if (timegen_debug_tch) | |
|
56 | 61 | add_definitions(-DDEBUG_TCH) |
|
57 | 62 | endif() |
|
58 | 63 | |
|
59 | 64 | add_definitions(-DMSB_FIRST_TCH) |
|
60 | 65 | |
|
61 | 66 | add_definitions(-DSWVERSION=-1-0) |
|
62 |
add_definitions(-DSW_VERSION_N1= |
|
|
63 |
add_definitions(-DSW_VERSION_N2= |
|
|
64 |
add_definitions(-DSW_VERSION_N3= |
|
|
65 | add_definitions(-DSW_VERSION_N4=4) | |
|
67 | add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1}) | |
|
68 | add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2}) | |
|
69 | add_definitions(-DSW_VERSION_N3=${TIMEGEN_SW_VERSION_N3}) | |
|
70 | add_definitions(-DSW_VERSION_N4=${TIMEGEN_SW_VERSION_N4}) | |
|
66 | 71 | |
|
67 | 72 | add_executable(timegen ${SOURCES}) |
General Comments 0
You need to be logged in to leave comments.
Login now