Auto status change to "Under Review"
@@ -27,51 +27,56 set(SOURCES wf_handler.c | |||||
27 | ) |
|
27 | ) | |
28 |
|
28 | |||
29 |
|
29 | |||
30 | option(verbose "Enable verbose LFR" ON) |
|
30 | option(FSW_verbose "Enable verbose LFR" ON) | |
31 | option(boot_messages "Enable LFR boot messages" ON) |
|
31 | option(FSW_boot_messages "Enable LFR boot messages" ON) | |
32 | option(debug_messages "Enable LFR debug messages" ON) |
|
32 | option(FSW_debug_messages "Enable LFR debug messages" ON) | |
33 | option(cpu_usage_report "Enable LFR cpu usage report" OFF) |
|
33 | option(FSW_cpu_usage_report "Enable LFR cpu usage report" OFF) | |
34 | option(stack_report "Enable LFR stack report" OFF) |
|
34 | option(FSW_stack_report "Enable LFR stack report" OFF) | |
35 | option(vhdl_dev "?" OFF) |
|
35 | option(FSW_vhdl_dev "?" OFF) | |
36 | option(lpp_dpu_destid "Set to debug at LPP" ON) |
|
36 | option(FSW_lpp_dpu_destid "Set to debug at LPP" ON) | |
37 | option(debug_watchdog "Enable debug watchdog" OFF) |
|
37 | option(FSW_debug_watchdog "Enable debug watchdog" OFF) | |
38 | option(debug_tch "?" 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 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
|
47 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) | |
43 | endif() |
|
48 | endif() | |
44 |
if |
|
49 | if(FSW_boot_messages) | |
45 | add_definitions(-DBOOT_MESSAGES) |
|
50 | add_definitions(-DBOOT_MESSAGES) | |
46 | endif() |
|
51 | endif() | |
47 |
if |
|
52 | if(FSW_debug_messages) | |
48 | add_definitions(-DDEBUG_MESSAGES) |
|
53 | add_definitions(-DDEBUG_MESSAGES) | |
49 | endif() |
|
54 | endif() | |
50 |
if |
|
55 | if(FSW_cpu_usage_report) | |
51 | add_definitions(-DPRINT_TASK_STATISTICS) |
|
56 | add_definitions(-DPRINT_TASK_STATISTICS) | |
52 | endif() |
|
57 | endif() | |
53 |
if |
|
58 | if(FSW_stack_report) | |
54 | add_definitions(-DPRINT_STACK_REPORT) |
|
59 | add_definitions(-DPRINT_STACK_REPORT) | |
55 | endif() |
|
60 | endif() | |
56 |
if |
|
61 | if(FSW_vhdl_dev) | |
57 | add_definitions(-DVHDL_DEV) |
|
62 | add_definitions(-DVHDL_DEV) | |
58 | endif() |
|
63 | endif() | |
59 |
if |
|
64 | if(FSW_lpp_dpu_destid) | |
60 | add_definitions(-DLPP_DPU_DESTID) |
|
65 | add_definitions(-DLPP_DPU_DESTID) | |
61 | endif() |
|
66 | endif() | |
62 |
if |
|
67 | if(FSW_debug_watchdog) | |
63 | add_definitions(-DDEBUG_WATCHDOG) |
|
68 | add_definitions(-DDEBUG_WATCHDOG) | |
64 | endif() |
|
69 | endif() | |
65 |
if |
|
70 | if(FSW_debug_tch) | |
66 | add_definitions(-DDEBUG_TCH) |
|
71 | add_definitions(-DDEBUG_TCH) | |
67 | endif() |
|
72 | endif() | |
68 |
|
73 | |||
69 | add_definitions(-DMSB_FIRST_TCH) |
|
74 | add_definitions(-DMSB_FIRST_TCH) | |
70 |
|
75 | |||
71 | add_definitions(-DSWVERSION=-1-0) |
|
76 | add_definitions(-DSWVERSION=-1-0) | |
72 |
add_definitions(-DSW_VERSION_N1= |
|
77 | add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1}) | |
73 |
add_definitions(-DSW_VERSION_N2= |
|
78 | add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2}) | |
74 |
add_definitions(-DSW_VERSION_N3= |
|
79 | add_definitions(-DSW_VERSION_N3=${SW_VERSION_N3}) | |
75 | add_definitions(-DSW_VERSION_N4=4) |
|
80 | add_definitions(-DSW_VERSION_N4=${SW_VERSION_N4}) | |
76 |
|
81 | |||
77 | add_executable(FSW ${SOURCES}) |
|
82 | add_executable(FSW ${SOURCES}) |
@@ -17,51 +17,56 set(SOURCES src/tc_handler.c | |||||
17 | ../LFR_basic-parameters/basic_parameters.c) |
|
17 | ../LFR_basic-parameters/basic_parameters.c) | |
18 |
|
18 | |||
19 |
|
19 | |||
20 |
option(verbose "Enable verbose |
|
20 | option(timegen_verbose "Enable verbose Timegen" ON) | |
21 |
option(boot_messages "Enable |
|
21 | option(timegen_boot_messages "Enable Timegen boot messages" ON) | |
22 |
option(debug_messages "Enable |
|
22 | option(timegen_debug_messages "Enable Timegen debug messages" ON) | |
23 |
option(cpu_usage_report "Enable |
|
23 | option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF) | |
24 |
option(stack_report "Enable |
|
24 | option(timegen_stack_report "Enable Timegen stack report" OFF) | |
25 | option(vhdl_dev "?" OFF) |
|
25 | option(timegen_vhdl_dev "?" OFF) | |
26 | option(lpp_dpu_destid "Set to debug at LPP" ON) |
|
26 | option(timegen_lpp_dpu_destid "Set to debug at LPP" ON) | |
27 | option(debug_watchdog "Enable debug watchdog" OFF) |
|
27 | option(timegen_debug_watchdog "Enable debug watchdog" OFF) | |
28 | option(debug_tch "?" 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 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) |
|
37 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) | |
33 | endif() |
|
38 | endif() | |
34 | if (boot_messages) |
|
39 | if (timegen_boot_messages) | |
35 | add_definitions(-DBOOT_MESSAGES) |
|
40 | add_definitions(-DBOOT_MESSAGES) | |
36 | endif() |
|
41 | endif() | |
37 | if (debug_messages) |
|
42 | if (timegen_debug_messages) | |
38 | add_definitions(-DDEBUG_MESSAGES) |
|
43 | add_definitions(-DDEBUG_MESSAGES) | |
39 | endif() |
|
44 | endif() | |
40 | if (cpu_usage_report) |
|
45 | if (timegen_cpu_usage_report) | |
41 | add_definitions(-DPRINT_TASK_STATISTICS) |
|
46 | add_definitions(-DPRINT_TASK_STATISTICS) | |
42 | endif() |
|
47 | endif() | |
43 | if (stack_report) |
|
48 | if (timegen_stack_report) | |
44 | add_definitions(-DPRINT_STACK_REPORT) |
|
49 | add_definitions(-DPRINT_STACK_REPORT) | |
45 | endif() |
|
50 | endif() | |
46 | if (vhdl_dev) |
|
51 | if (timegen_vhdl_dev) | |
47 | add_definitions(-DVHDL_DEV) |
|
52 | add_definitions(-DVHDL_DEV) | |
48 | endif() |
|
53 | endif() | |
49 | if (lpp_dpu_destid) |
|
54 | if (timegen_lpp_dpu_destid) | |
50 | add_definitions(-DLPP_DPU_DESTID) |
|
55 | add_definitions(-DLPP_DPU_DESTID) | |
51 | endif() |
|
56 | endif() | |
52 | if (debug_watchdog) |
|
57 | if (timegen_debug_watchdog) | |
53 | add_definitions(-DDEBUG_WATCHDOG) |
|
58 | add_definitions(-DDEBUG_WATCHDOG) | |
54 | endif() |
|
59 | endif() | |
55 | if (debug_tch) |
|
60 | if (timegen_debug_tch) | |
56 | add_definitions(-DDEBUG_TCH) |
|
61 | add_definitions(-DDEBUG_TCH) | |
57 | endif() |
|
62 | endif() | |
58 |
|
63 | |||
59 | add_definitions(-DMSB_FIRST_TCH) |
|
64 | add_definitions(-DMSB_FIRST_TCH) | |
60 |
|
65 | |||
61 | add_definitions(-DSWVERSION=-1-0) |
|
66 | add_definitions(-DSWVERSION=-1-0) | |
62 |
add_definitions(-DSW_VERSION_N1= |
|
67 | add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1}) | |
63 |
add_definitions(-DSW_VERSION_N2= |
|
68 | add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2}) | |
64 |
add_definitions(-DSW_VERSION_N3= |
|
69 | add_definitions(-DSW_VERSION_N3=${TIMEGEN_SW_VERSION_N3}) | |
65 | add_definitions(-DSW_VERSION_N4=4) |
|
70 | add_definitions(-DSW_VERSION_N4=${TIMEGEN_SW_VERSION_N4}) | |
66 |
|
71 | |||
67 | add_executable(timegen ${SOURCES}) |
|
72 | add_executable(timegen ${SOURCES}) |
General Comments 7
Auto status change to "Under Review"
Changed commits: * 1 added * 0 removed Changed files: * M src/CMakeLists.txt * M timegen/CMakeLists.txt
Status change > Approved
Closing with Status change > Approved
You need to be logged in to leave comments.
Login now