Enable malloc on ESP32 BSP, specify ttwrplus battery type.

Mallocs now are working.
This radio sports a single cell Li-Po battery.

TG-553
This commit is contained in:
Niccolò Izzo 2023-07-29 13:55:27 +02:00 committed by Silvano Seva
parent 0c27c9ce28
commit 9a445f3b31
2 changed files with 3 additions and 2 deletions

View File

@ -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 */

View File

@ -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