From a3b7ffed438b616fdddac69b76f5cac0c4329b79 Mon Sep 17 00:00:00 2001 From: Sergei Date: Fri, 14 Feb 2025 17:36:22 +0200 Subject: [PATCH] Rpi32: increase a bit footprints (#35) - now builds and runs on RPi 4, Raspean bookworm - latest libcypal --- libcyphal_demo/CMakeLists.txt | 4 ++++ libcyphal_demo/src/application.hpp | 4 ++-- submodules/libcyphal | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libcyphal_demo/CMakeLists.txt b/libcyphal_demo/CMakeLists.txt index cd35298..e5fa206 100644 --- a/libcyphal_demo/CMakeLists.txt +++ b/libcyphal_demo/CMakeLists.txt @@ -21,6 +21,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN list(APPEND CXX_FLAG_SET "-fno-exceptions") endif() endif() +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + # Disable PSABI warnings in GCC (on RPi). + list(APPEND CXX_FLAG_SET "-Wno-psabi") +endif() add_compile_options("$<$:${CXX_FLAG_SET}>") diff --git a/libcyphal_demo/src/application.hpp b/libcyphal_demo/src/application.hpp index 1fd459c..0909412 100644 --- a/libcyphal_demo/src/application.hpp +++ b/libcyphal_demo/src/application.hpp @@ -44,10 +44,10 @@ class Application final /// Defines the footprint size of the type-erased register. /// The Footprint size is passed to internal unbounded variant /// which in turn should be big enough to store any register implementation. - /// `12`-pointer size is a trade-off between memory usage and flexibility of what could be stored. + /// 128 bytes size is a trade-off between memory usage and flexibility of what could be stored. /// Increase this value if you need to store more complex data (like more "big" register's lambdas). /// - static constexpr std::size_t RegisterFootprint = sizeof(void*) * 12; + static constexpr std::size_t RegisterFootprint = 128; /// Defines general purpose string parameter exposed as mutable register. /// diff --git a/submodules/libcyphal b/submodules/libcyphal index a3be9d3..c26d86e 160000 --- a/submodules/libcyphal +++ b/submodules/libcyphal @@ -1 +1 @@ -Subproject commit a3be9d3eef99c64d31adf23955ca2046c9a79f3b +Subproject commit c26d86e2ab44a13fe5aa6066717a34abe1a9a6af