Skip to content

Commit a3b7ffe

Browse files
authored
Rpi32: increase a bit footprints (#35)
- now builds and runs on RPi 4, Raspean bookworm - latest libcypal
1 parent 287cbdf commit a3b7ffe

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

libcyphal_demo/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN
2121
list(APPEND CXX_FLAG_SET "-fno-exceptions")
2222
endif()
2323
endif()
24+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
25+
# Disable PSABI warnings in GCC (on RPi).
26+
list(APPEND CXX_FLAG_SET "-Wno-psabi")
27+
endif()
2428

2529
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_FLAG_SET}>")
2630

libcyphal_demo/src/application.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class Application final
4444
/// Defines the footprint size of the type-erased register.
4545
/// The Footprint size is passed to internal unbounded variant
4646
/// which in turn should be big enough to store any register implementation.
47-
/// `12`-pointer size is a trade-off between memory usage and flexibility of what could be stored.
47+
/// 128 bytes size is a trade-off between memory usage and flexibility of what could be stored.
4848
/// Increase this value if you need to store more complex data (like more "big" register's lambdas).
4949
///
50-
static constexpr std::size_t RegisterFootprint = sizeof(void*) * 12;
50+
static constexpr std::size_t RegisterFootprint = 128;
5151

5252
/// Defines general purpose string parameter exposed as mutable register.
5353
///

0 commit comments

Comments
 (0)