##// END OF EJS Templates
added prefix to FSW and timegen options
jeandet -
r302:04c5ed6433df R3_plus draft
parent child
Show More
@@ -27,51 +27,56 set(SOURCES wf_handler.c
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 (verbose)
46 if(FSW_verbose)
42 47 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
43 48 endif()
44 if (boot_messages)
49 if(FSW_boot_messages)
45 50 add_definitions(-DBOOT_MESSAGES)
46 51 endif()
47 if (debug_messages)
52 if(FSW_debug_messages)
48 53 add_definitions(-DDEBUG_MESSAGES)
49 54 endif()
50 if (cpu_usage_report)
55 if(FSW_cpu_usage_report)
51 56 add_definitions(-DPRINT_TASK_STATISTICS)
52 57 endif()
53 if (stack_report)
58 if(FSW_stack_report)
54 59 add_definitions(-DPRINT_STACK_REPORT)
55 60 endif()
56 if (vhdl_dev)
61 if(FSW_vhdl_dev)
57 62 add_definitions(-DVHDL_DEV)
58 63 endif()
59 if (lpp_dpu_destid)
64 if(FSW_lpp_dpu_destid)
60 65 add_definitions(-DLPP_DPU_DESTID)
61 66 endif()
62 if (debug_watchdog)
67 if(FSW_debug_watchdog)
63 68 add_definitions(-DDEBUG_WATCHDOG)
64 69 endif()
65 if (debug_tch)
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=3)
73 add_definitions(-DSW_VERSION_N2=1)
74 add_definitions(-DSW_VERSION_N3=0)
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})
@@ -17,51 +17,56 set(SOURCES src/tc_handler.c
17 17 ../LFR_basic-parameters/basic_parameters.c)
18 18
19 19
20 option(verbose "Enable verbose LFR" ON)
21 option(boot_messages "Enable LFR boot messages" ON)
22 option(debug_messages "Enable LFR debug messages" ON)
23 option(cpu_usage_report "Enable LFR cpu usage report" OFF)
24 option(stack_report "Enable LFR stack report" OFF)
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=3)
63 add_definitions(-DSW_VERSION_N2=1)
64 add_definitions(-DSW_VERSION_N3=0)
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 7
Under Review
author

Auto status change to "Under Review"

Changed commits:
  * 1 added
  * 0 removed

Changed files:
  * M src/CMakeLists.txt
  * M timegen/CMakeLists.txt
Approved

Status change > Approved

Approved

Closing with Status change > Approved

You need to be logged in to leave comments. Login now