Skip to content

Commit

Permalink
boards: esp32: revert HEAP size to integer number
Browse files Browse the repository at this point in the history
The commit ad63ca2 replaced
default value of 65535 to UINT16_MAX. That change might cause
confusion as it suggests that the HEAP size is limited to UINT16_MAX.

For this particular scenario, 65535 bytes is a resonable amount of
HEAP to allow both Wi-Fi and BT working in coexistance, which could be
increased as per application.

Signed-off-by: Sylvio Alves <[email protected]>
  • Loading branch information
sylvioalves authored and nashif committed Aug 15, 2024
1 parent a923a4a commit d3541fe
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion boards/espressif/esp32_devkitc_wroom/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_ESP32_DEVKITC_WROOM_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/espressif/esp32_devkitc_wrover/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if BOARD_ESP32_DEVKITC_WROVER_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/espressif/esp32_ethernet_kit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endchoice

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/espressif/esp32c3_devkitm/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/espressif/esp32c6_devkitc/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/espressif/esp32s3_devkitc/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITC_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/espressif/esp32s3_devkitm/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/espressif/esp_wrover_kit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_ESP_WROVER_KIT_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/hardkernel/odroid_go/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endchoice

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if BOARD_HELTEC_WIRELESS_STICK_LITE_V3_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/kincony/kincony_kc868_a32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if BOARD_KINCONY_KC868_A32_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/lilygo/ttgo_lora32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config ENTROPY_GENERATOR

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/lilygo/ttgo_t8c3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/luatos/esp32c3_luatos_core/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/luatos/esp32s3_luatos_core/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_ESP32S3_LUATOS_CORE_ESP32S3_PROCPU || BOARD_ESP32S3_LUATOS_CORE_ESP32S3

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stack_atom_lite/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_M5STACK_ATOM_LITE_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stack_atoms3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config LV_COLOR_16_SWAP

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stack_atoms3_lite/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if BOARD_M5STACK_ATOMS3_LITE_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stack_core2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_M5STACK_CORE2_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 65536 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stack_stamps3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/m5stickc_plus/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_M5STICKC_PLUS_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/m5stack/stamp_c3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/olimex/olimex_esp32_evb/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_OLIMEX_ESP32_EVB_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/others/icev_wireless/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/seeed/xiao_esp32c3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
2 changes: 1 addition & 1 deletion boards/seeed/xiao_esp32s3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if BOARD_XIAO_ESP32S3_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/vcc-gnd/yd_esp32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if BOARD_YD_ESP32_ESP32_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down
2 changes: 1 addition & 1 deletion boards/waveshare/esp32s3_touch_lcd_1_28/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if BOARD_ESP32S3_TOUCH_LCD_1_28_ESP32S3_PROCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default $(UINT16_MAX) if WIFI && BT
default 65535 if WIFI && BT
default 51200 if WIFI
default 40960 if BT
default 4096
Expand Down

0 comments on commit d3541fe

Please sign in to comment.