diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-15 13:30:45 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-15 13:30:45 +0200 |
commit | 20f442e5f5aa6a4fcf07f65e2f446a3c0ff8e4f2 (patch) | |
tree | 99f2422681eaa34a6f21b54d86e67115c291d5ce /puzzle/dummy/CMakeLists.txt | |
parent | dbe08a8cd3d29cee7ba1adae4841c0a831784f31 (diff) |
WIP freertos + Arduino workaround
Diffstat (limited to 'puzzle/dummy/CMakeLists.txt')
-rw-r--r-- | puzzle/dummy/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/puzzle/dummy/CMakeLists.txt b/puzzle/dummy/CMakeLists.txt index c485e74..f80d18c 100644 --- a/puzzle/dummy/CMakeLists.txt +++ b/puzzle/dummy/CMakeLists.txt @@ -12,6 +12,12 @@ add_compile_definitions(DEBUG) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/lib/Arduino-CMake-Toolchain/Arduino-toolchain.cmake) set(ARDUINO_BOARD "Arduino Uno [avr.uno]") +# freertos +add_library(freertos_config INTERFACE) +target_include_directories(freertos_config SYSTEM INTERFACE .) +set(FREERTOS_PORT GCC_ATMEGA) +set(FREERTOS_HEAP 4) + # used for testing # set(ARDUINO_BOARD "Raspberry Pi Pico W [rp2040.rpipicow]") # add_compile_definitions(USE_TINYUSB) @@ -20,6 +26,7 @@ set(ARDUINO_BOARD "Arduino Uno [avr.uno]") project(pb_mod_dummy C CXX) add_subdirectory(lib/pbdrv) +add_subdirectory(lib/FreeRTOS-Kernel) add_executable(main main.cpp |