diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-16 13:28:00 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-16 13:28:00 +0200 |
commit | a3fba8221cb26ce43958f42dd1f58cc049c3bba6 (patch) | |
tree | 2afca47358d1e7d4f425c3944285d36231f8711d /lib/pbdrv/CMakeLists.txt | |
parent | 30171b5c84dd90ee9de9f3efc395766497a86c85 (diff) |
WIP fixing memory handling
Diffstat (limited to 'lib/pbdrv/CMakeLists.txt')
-rw-r--r-- | lib/pbdrv/CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/pbdrv/CMakeLists.txt b/lib/pbdrv/CMakeLists.txt index 59a1f25..0c09e67 100644 --- a/lib/pbdrv/CMakeLists.txt +++ b/lib/pbdrv/CMakeLists.txt @@ -11,6 +11,8 @@ add_compile_definitions(DEBUG) project(pbdrv C CXX) add_subdirectory(lib/mpack) +add_compile_definitions(MPACK_HAS_CONFIG=1) +target_include_directories(mpack INTERFACE .) # mpack-config.h # generic puzzle bus message handling library functions add_library(pbdrv STATIC @@ -18,25 +20,29 @@ add_library(pbdrv STATIC pb-serial.c pb-buf.c ) -target_link_libraries(pbdrv mpack) target_include_directories(pbdrv SYSTEM INTERFACE .) +target_compile_definitions(pbdrv PRIVATE PB_TARGET_STDLIB) +target_link_libraries(pbdrv mpack) # puzzle bus *module* specific code add_library(pbdrv-mod STATIC + pb-msg.c + pb-serial.c + pb-buf.c pb-mod.c pb-send.c pb-route.c ) +target_include_directories(pbdrv-mod SYSTEM INTERFACE .) +target_compile_definitions(pbdrv-mod PRIVATE PB_TARGET_FREERTOS) target_link_libraries(pbdrv-mod + mpack # freertos is used to defer the handling of i2c messages outside the receive # interrupt service routine freertos_kernel freertos_kernel_include freertos_config - # pbdrv-mod is a superset of pbdrv - pbdrv ) -target_include_directories(pbdrv-mod SYSTEM INTERFACE .) # supported puzzle bus drivers include(drv/arduino/cfg.cmake) |