mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
POSIX config: param shem define was lost
This commit is contained in:
@@ -4,8 +4,6 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linu
|
|||||||
|
|
||||||
set(CONFIG_SHMEM "1")
|
set(CONFIG_SHMEM "1")
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_SHMEM")
|
|
||||||
|
|
||||||
include(${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon/qurt_app.cmake)
|
include(${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon/qurt_app.cmake)
|
||||||
|
|
||||||
set(config_module_list
|
set(config_module_list
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ if("${CONFIG_SHMEM}" STREQUAL "1")
|
|||||||
list(APPEND SHMEM_SRCS
|
list(APPEND SHMEM_SRCS
|
||||||
shmem_posix.c
|
shmem_posix.c
|
||||||
)
|
)
|
||||||
|
# TODO: This didn't seem to be tracked correctly from posix_eagle_release.cmake
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCONFIG_SHMEM")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
px4_add_module(
|
px4_add_module(
|
||||||
@@ -52,4 +54,4 @@ px4_add_module(
|
|||||||
DEPENDS
|
DEPENDS
|
||||||
platforms__common
|
platforms__common
|
||||||
)
|
)
|
||||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
long PX4_TICKS_PER_SEC = sysconf(_SC_CLK_TCK);
|
long PX4_TICKS_PER_SEC = sysconf(_SC_CLK_TCK);
|
||||||
|
|
||||||
#ifdef ENABLE_SHMEM
|
#ifdef CONFIG_SHMEM
|
||||||
extern void init_params(void);
|
extern void init_params(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ void init_once(void)
|
|||||||
hrt_work_queue_init();
|
hrt_work_queue_init();
|
||||||
hrt_init();
|
hrt_init();
|
||||||
|
|
||||||
#ifdef ENABLE_SHMEM
|
#ifdef CONFIG_SHMEM
|
||||||
PX4_INFO("Syncing params to shared memory\n");
|
PX4_INFO("Syncing params to shared memory\n");
|
||||||
init_params();
|
init_params();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user