diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-17 16:37:40 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-17 16:37:40 +0200 |
commit | 681107dde23e19b0a14e09a59f687cf9978b50ed (patch) | |
tree | 645094964efce51f073d5b31ca2bb085d5509168 | |
parent | a3fba8221cb26ce43958f42dd1f58cc049c3bba6 (diff) |
use arduino mega for dummy sketch
-rw-r--r-- | puzzle/dummy/CMakeLists.txt | 6 | ||||
-rw-r--r-- | puzzle/dummy/FreeRTOSConfig.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/puzzle/dummy/CMakeLists.txt b/puzzle/dummy/CMakeLists.txt index f80d18c..bcbab88 100644 --- a/puzzle/dummy/CMakeLists.txt +++ b/puzzle/dummy/CMakeLists.txt @@ -10,12 +10,14 @@ add_compile_definitions(DEBUG) # arduino set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/lib/Arduino-CMake-Toolchain/Arduino-toolchain.cmake) -set(ARDUINO_BOARD "Arduino Uno [avr.uno]") +# set(ARDUINO_BOARD "Arduino Uno [avr.uno]") +set(ARDUINO_BOARD "Arduino Mega or Mega 2560 [avr.mega]") # freertos add_library(freertos_config INTERFACE) target_include_directories(freertos_config SYSTEM INTERFACE .) -set(FREERTOS_PORT GCC_ATMEGA) +# set(FREERTOS_PORT GCC_ATMEGA) # Arduino Uno +set(FREERTOS_PORT GCC_ATMEGA) # Arduino Uno set(FREERTOS_HEAP 4) # used for testing diff --git a/puzzle/dummy/FreeRTOSConfig.h b/puzzle/dummy/FreeRTOSConfig.h index ab6bd7f..1cfdd71 100644 --- a/puzzle/dummy/FreeRTOSConfig.h +++ b/puzzle/dummy/FreeRTOSConfig.h @@ -17,7 +17,8 @@ #define configSTACK_DEPTH_TYPE uint16_t #define configSUPPORT_STATIC_ALLOCATION 0 #define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE (1024) +// #define configTOTAL_HEAP_SIZE (1024) +#define configTOTAL_HEAP_SIZE (7 * 1024) #define configCHECK_FOR_STACK_OVERFLOW 0 #define configUSE_MALLOC_FAILED_HOOK 0 #define configUSE_DAEMON_TASK_STARTUP_HOOK 0 |