##// END OF EJS Templates
added prefix to FSW and timegen options
jeandet -
r304:04c5ed6433df R3_plus draft
parent child
Show More
@@ -1,77 +1,82
1 cmake_minimum_required (VERSION 2.6)
1 cmake_minimum_required (VERSION 2.6)
2 project (FSW)
2 project (FSW)
3
3
4 include(sparc-rtems)
4 include(sparc-rtems)
5
5
6 include_directories("../header"
6 include_directories("../header"
7 "../header/lfr_common_headers"
7 "../header/lfr_common_headers"
8 "../header/processing"
8 "../header/processing"
9 "../LFR_basic-parameters"
9 "../LFR_basic-parameters"
10 "../src")
10 "../src")
11
11
12 set(SOURCES wf_handler.c
12 set(SOURCES wf_handler.c
13 tc_handler.c
13 tc_handler.c
14 fsw_misc.c
14 fsw_misc.c
15 fsw_init.c
15 fsw_init.c
16 fsw_globals.c
16 fsw_globals.c
17 fsw_spacewire.c
17 fsw_spacewire.c
18 tc_load_dump_parameters.c
18 tc_load_dump_parameters.c
19 tm_lfr_tc_exe.c
19 tm_lfr_tc_exe.c
20 tc_acceptance.c
20 tc_acceptance.c
21 processing/fsw_processing.c
21 processing/fsw_processing.c
22 processing/avf0_prc0.c
22 processing/avf0_prc0.c
23 processing/avf1_prc1.c
23 processing/avf1_prc1.c
24 processing/avf2_prc2.c
24 processing/avf2_prc2.c
25 lfr_cpu_usage_report.c
25 lfr_cpu_usage_report.c
26 ${LFR_BP_SRC}
26 ${LFR_BP_SRC}
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 (verbose)
46 if(FSW_verbose)
42 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
47 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
43 endif()
48 endif()
44 if (boot_messages)
49 if(FSW_boot_messages)
45 add_definitions(-DBOOT_MESSAGES)
50 add_definitions(-DBOOT_MESSAGES)
46 endif()
51 endif()
47 if (debug_messages)
52 if(FSW_debug_messages)
48 add_definitions(-DDEBUG_MESSAGES)
53 add_definitions(-DDEBUG_MESSAGES)
49 endif()
54 endif()
50 if (cpu_usage_report)
55 if(FSW_cpu_usage_report)
51 add_definitions(-DPRINT_TASK_STATISTICS)
56 add_definitions(-DPRINT_TASK_STATISTICS)
52 endif()
57 endif()
53 if (stack_report)
58 if(FSW_stack_report)
54 add_definitions(-DPRINT_STACK_REPORT)
59 add_definitions(-DPRINT_STACK_REPORT)
55 endif()
60 endif()
56 if (vhdl_dev)
61 if(FSW_vhdl_dev)
57 add_definitions(-DVHDL_DEV)
62 add_definitions(-DVHDL_DEV)
58 endif()
63 endif()
59 if (lpp_dpu_destid)
64 if(FSW_lpp_dpu_destid)
60 add_definitions(-DLPP_DPU_DESTID)
65 add_definitions(-DLPP_DPU_DESTID)
61 endif()
66 endif()
62 if (debug_watchdog)
67 if(FSW_debug_watchdog)
63 add_definitions(-DDEBUG_WATCHDOG)
68 add_definitions(-DDEBUG_WATCHDOG)
64 endif()
69 endif()
65 if (debug_tch)
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=3)
77 add_definitions(-DSW_VERSION_N1=${SW_VERSION_N1})
73 add_definitions(-DSW_VERSION_N2=1)
78 add_definitions(-DSW_VERSION_N2=${SW_VERSION_N2})
74 add_definitions(-DSW_VERSION_N3=0)
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})
@@ -1,67 +1,72
1 cmake_minimum_required (VERSION 2.6)
1 cmake_minimum_required (VERSION 2.6)
2 project (timegen)
2 project (timegen)
3
3
4 include(sparc-rtems)
4 include(sparc-rtems)
5
5
6 include_directories("./src"
6 include_directories("./src"
7 "./header"
7 "./header"
8 "./header/processing"
8 "./header/processing"
9 "./src/LFR_basic-parameters")
9 "./src/LFR_basic-parameters")
10
10
11 set(SOURCES src/tc_handler.c
11 set(SOURCES src/tc_handler.c
12 src/fsw_misc.c
12 src/fsw_misc.c
13 src/fsw_init.c
13 src/fsw_init.c
14 src/fsw_globals.c
14 src/fsw_globals.c
15 src/fsw_spacewire.c
15 src/fsw_spacewire.c
16 src/tc_acceptance.c
16 src/tc_acceptance.c
17 ../LFR_basic-parameters/basic_parameters.c)
17 ../LFR_basic-parameters/basic_parameters.c)
18
18
19
19
20 option(verbose "Enable verbose LFR" ON)
20 option(timegen_verbose "Enable verbose Timegen" ON)
21 option(boot_messages "Enable LFR boot messages" ON)
21 option(timegen_boot_messages "Enable Timegen boot messages" ON)
22 option(debug_messages "Enable LFR debug messages" ON)
22 option(timegen_debug_messages "Enable Timegen debug messages" ON)
23 option(cpu_usage_report "Enable LFR cpu usage report" OFF)
23 option(timegen_cpu_usage_report "Enable Timegen cpu usage report" OFF)
24 option(stack_report "Enable LFR stack report" OFF)
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=3)
67 add_definitions(-DSW_VERSION_N1=${TIMEGEN_SW_VERSION_N1})
63 add_definitions(-DSW_VERSION_N2=1)
68 add_definitions(-DSW_VERSION_N2=${TIMEGEN_SW_VERSION_N2})
64 add_definitions(-DSW_VERSION_N3=0)
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 0
You need to be logged in to leave comments. Login now