From 9a445f3b312036b0be81478718df2c38fd189cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Sat, 29 Jul 2023 13:55:27 +0200 Subject: [PATCH] Enable malloc on ESP32 BSP, specify ttwrplus battery type. Mallocs now are working. This radio sports a single cell Li-Po battery. TG-553 --- platform/targets/ttwrplus/hwconfig.h | 3 +-- platform/targets/ttwrplus/ttwrplus_defconfig | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/targets/ttwrplus/hwconfig.h b/platform/targets/ttwrplus/hwconfig.h index 0fd7622d..d12e51b7 100644 --- a/platform/targets/ttwrplus/hwconfig.h +++ b/platform/targets/ttwrplus/hwconfig.h @@ -30,7 +30,6 @@ #define SCREEN_HEIGHT DT_PROP(DISPLAY, height) #define PIX_FMT_BW -/* TODO: battery type */ -#define BAT_NONE +#define BAT_LIPO_1S #endif /* HWCONFIG_H */ diff --git a/platform/targets/ttwrplus/ttwrplus_defconfig b/platform/targets/ttwrplus/ttwrplus_defconfig index 5a2d2530..74021a02 100644 --- a/platform/targets/ttwrplus/ttwrplus_defconfig +++ b/platform/targets/ttwrplus/ttwrplus_defconfig @@ -8,3 +8,5 @@ CONFIG_DYNAMIC_THREAD=y CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096 CONFIG_DYNAMIC_THREAD_PREFER_POOL=y CONFIG_DYNAMIC_THREAD_POOL_SIZE=4 +CONFIG_COMMON_LIBC_MALLOC=y +CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=131072