Skip to content

Commit 65edc41

Browse files
author
Marek Matej
committed
drivers: wifi: esp32: Add option for WiFi SPIRAM
Update kconfig to support SPIRAM. Signed-off-by: Marek Matej <[email protected]>
1 parent 81f6b67 commit 65edc41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/wifi/esp32/Kconfig.esp32

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if WIFI_ESP32
2424
config HEAP_MEM_POOL_ADD_SIZE_ESP_WIFI
2525
int
2626
default 40960 if ESP_WIFI_HEAP_SYSTEM
27-
default 0
27+
default 19456 if ESP_WIFI_HEAP_SPIRAM
2828
help
2929
Make sure there is a minimal heap available for Wi-Fi driver.
3030

@@ -35,6 +35,9 @@ choice ESP_WIFI_HEAP
3535
config ESP_WIFI_HEAP_SYSTEM
3636
bool "Wi-Fi adapter use kernel mempool heap (k_malloc)"
3737

38+
config ESP_WIFI_HEAP_SPIRAM
39+
bool "Wi-Fi adapter use spiram mempool heap (smh_malloc)"
40+
3841
endchoice # ESP_WIFI_HEAP
3942

4043
config NET_TCP_WORKQ_STACK_SIZE

0 commit comments

Comments
 (0)