@@ -0,0 +1,29 | |||||
|
1 | cmake_minimum_required (VERSION 2.6) | |||
|
2 | project (LFR_FSW) | |||
|
3 | ||||
|
4 | if(NOT CMAKE_BUILD_TYPE) | |||
|
5 | set(CMAKE_BUILD_TYPE "Release" CACHE STRING | |||
|
6 | "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE) | |||
|
7 | endif(NOT CMAKE_BUILD_TYPE) | |||
|
8 | ||||
|
9 | set(LFR_BP_SRC ${CMAKE_CURRENT_SOURCE_DIR}/LFR_basic-parameters/basic_parameters.c) | |||
|
10 | ||||
|
11 | SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/sparc/") | |||
|
12 | ||||
|
13 | include_directories("header" | |||
|
14 | "header/lfr_common_headers" | |||
|
15 | "header/processing" | |||
|
16 | "LFR_basic-parameters" | |||
|
17 | "src") | |||
|
18 | ||||
|
19 | add_subdirectory(src) | |||
|
20 | ||||
|
21 | ||||
|
22 | ||||
|
23 | option(test "Build all tests." ON) # Makes boolean 'test' available. | |||
|
24 | ||||
|
25 | ||||
|
26 | if (test) | |||
|
27 | ||||
|
28 | ||||
|
29 | endif() |
@@ -0,0 +1,8 | |||||
|
1 | set(CMAKE_SYSTEM_NAME rtems) | |||
|
2 | ||||
|
3 | set(CMAKE_C_COMPILER /opt/rtems-4.10/bin/sparc-rtems-gcc) | |||
|
4 | set(CMAKE_CXX_COMPILER /opt/rtems-4.10/bin/sparc-rtems-g++) | |||
|
5 | set(CMAKE_LINKER /opt/rtems-4.10/bin/sparc-rtems-g++) | |||
|
6 | SET(CMAKE_EXE_LINKER_FLAGS "-static") | |||
|
7 | set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_LINKER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>") | |||
|
8 | include_directories("/opt/rtems-4.10/sparc-rtems/leon3/lib/include") |
@@ -0,0 +1,72 | |||||
|
1 | cmake_minimum_required (VERSION 2.6) | |||
|
2 | project (FSW) | |||
|
3 | ||||
|
4 | include(sparc-rtems) | |||
|
5 | ||||
|
6 | ||||
|
7 | set(SOURCES wf_handler.c | |||
|
8 | tc_handler.c | |||
|
9 | fsw_misc.c | |||
|
10 | fsw_init.c | |||
|
11 | fsw_globals.c | |||
|
12 | fsw_spacewire.c | |||
|
13 | tc_load_dump_parameters.c | |||
|
14 | tm_lfr_tc_exe.c | |||
|
15 | tc_acceptance.c | |||
|
16 | processing/fsw_processing.c | |||
|
17 | processing/avf0_prc0.c | |||
|
18 | processing/avf1_prc1.c | |||
|
19 | processing/avf2_prc2.c | |||
|
20 | lfr_cpu_usage_report.c | |||
|
21 | ${LFR_BP_SRC} | |||
|
22 | ) | |||
|
23 | ||||
|
24 | ||||
|
25 | option(verbose "Enable verbose LFR" ON) | |||
|
26 | option(boot_messages "Enable LFR boot messages" ON) | |||
|
27 | option(debug_messages "Enable LFR debug messages" ON) | |||
|
28 | option(cpu_usage_report "Enable LFR cpu usage report" OFF) | |||
|
29 | option(stack_report "Enable LFR stack report" OFF) | |||
|
30 | option(vhdl_dev "?" OFF) | |||
|
31 | option(lpp_dpu_destid "Set to debug at LPP" ON) | |||
|
32 | option(debug_watchdog "Enable debug watchdog" OFF) | |||
|
33 | option(debug_tch "?" OFF) | |||
|
34 | ||||
|
35 | ||||
|
36 | if (verbose) | |||
|
37 | add_definitions(-DPRINT_MESSAGES_ON_CONSOLE) | |||
|
38 | endif() | |||
|
39 | if (boot_messages) | |||
|
40 | add_definitions(-DBOOT_MESSAGES) | |||
|
41 | endif() | |||
|
42 | if (debug_messages) | |||
|
43 | add_definitions(-DDEBUG_MESSAGES) | |||
|
44 | endif() | |||
|
45 | if (cpu_usage_report) | |||
|
46 | add_definitions(-DPRINT_TASK_STATISTICS) | |||
|
47 | endif() | |||
|
48 | if (stack_report) | |||
|
49 | add_definitions(-DPRINT_STACK_REPORT) | |||
|
50 | endif() | |||
|
51 | if (vhdl_dev) | |||
|
52 | add_definitions(-DVHDL_DEV) | |||
|
53 | endif() | |||
|
54 | if (lpp_dpu_destid) | |||
|
55 | add_definitions(-DLPP_DPU_DESTID) | |||
|
56 | endif() | |||
|
57 | if (debug_watchdog) | |||
|
58 | add_definitions(-DDEBUG_WATCHDOG) | |||
|
59 | endif() | |||
|
60 | if (debug_tch) | |||
|
61 | add_definitions(-DDEBUG_TCH) | |||
|
62 | endif() | |||
|
63 | ||||
|
64 | add_definitions(-DMSB_FIRST_TCH) | |||
|
65 | ||||
|
66 | add_definitions(-DSWVERSION=-1-0) | |||
|
67 | add_definitions(-DSW_VERSION_N1=3) | |||
|
68 | add_definitions(-DSW_VERSION_N2=1) | |||
|
69 | add_definitions(-DSW_VERSION_N3=0) | |||
|
70 | add_definitions(-DSW_VERSION_N4=4) | |||
|
71 | ||||
|
72 | add_executable(FSW ${SOURCES}) |
@@ -20,3 +20,4 run2/src | |||||
20 | run2/trace |
|
20 | run2/trace | |
21 | run3/src |
|
21 | run3/src | |
22 | run3/trace |
|
22 | run3/trace | |
|
23 | *CMakeLists.txt.user |
@@ -313,7 +313,7 void init_local_mode_parameters( void ) | |||||
313 |
|
313 | |||
314 | BOOT_PRINTF1("local_sbm1_nb_cwf_max %d \n", param_local.local_sbm1_nb_cwf_max) |
|
314 | BOOT_PRINTF1("local_sbm1_nb_cwf_max %d \n", param_local.local_sbm1_nb_cwf_max) | |
315 | BOOT_PRINTF1("local_sbm2_nb_cwf_max %d \n", param_local.local_sbm2_nb_cwf_max) |
|
315 | BOOT_PRINTF1("local_sbm2_nb_cwf_max %d \n", param_local.local_sbm2_nb_cwf_max) | |
316 | BOOT_PRINTF1("nb_interrupt_f0_MAX = %d\n", param_local.local_nb_interrupt_f0_MAX) |
|
316 | //BOOT_PRINTF1("nb_interrupt_f0_MAX = %d\n", param_local.local_nb_interrupt_f0_MAX) | |
317 |
|
317 | |||
318 | // init sequence counters |
|
318 | // init sequence counters | |
319 |
|
319 |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now