Skip to content

Commit

Permalink
Rpi32: increase a bit footprints (#35)
Browse files Browse the repository at this point in the history
- now builds and runs on RPi 4, Raspean bookworm
- latest libcypal
  • Loading branch information
serges147 authored Feb 14, 2025
1 parent 287cbdf commit a3b7ffe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions libcyphal_demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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("$<$<COMPILE_LANGUAGE:CXX>:${CXX_FLAG_SET}>")

Expand Down
4 changes: 2 additions & 2 deletions libcyphal_demo/src/application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion submodules/libcyphal

0 comments on commit a3b7ffe

Please sign in to comment.