esp_wifi:Put some rx code to iram

This commit is contained in:
xiehang 2019-11-09 10:42:15 +08:00
parent c8e5433da3
commit 1739654de4
6 changed files with 34 additions and 2 deletions

View File

@ -1363,12 +1363,22 @@ menu Wi-Fi
config ESP32_WIFI_IRAM_OPT
bool "WiFi IRAM speed optimization"
default n if (BT_ENABLED && SPIRAM_SUPPORT)
default y
help
Select this option to place frequently called Wi-Fi library functions in IRAM.
When this option is disabled, more than 10Kbytes of IRAM memory will be saved
but Wi-Fi throughput will be reduced.
config ESP32_WIFI_RX_IRAM_OPT
bool "WiFi RX IRAM speed optimization"
default n if (BT_ENABLED && SPIRAM_SUPPORT)
default y
help
Select this option to place frequently called Wi-Fi library RX functions in IRAM.
When this option is disabled, more than 17Kbytes of IRAM memory will be saved
but Wi-Fi performance will be reduced.
endmenu # Wi-Fi
menu PHY

View File

@ -45,6 +45,10 @@ entries:
.dram1+
[sections:wifi_iram]
entries:
.wifirxiram+
[sections:wifi_rx_iram]
entries:
.wifi0iram+
@ -62,6 +66,7 @@ entries:
rtc_rodata -> rtc_data
rtc_bss -> rtc_bss
wifi_iram -> flash_text
wifi_rx_iram -> flash_text
[scheme:rtc]
entries:
@ -87,3 +92,7 @@ entries:
[scheme:wifi_iram]
entries:
wifi_iram -> iram0_text
[scheme:wifi_rx_iram]
entries:
wifi_rx_iram -> iram0_text

@ -1 +1 @@
Subproject commit eea59e215009a396d21e2b3cdaa92ddd45211fa2
Subproject commit 87ea0414299f8b44d2424b85697ed24946ff3e99

View File

@ -40,3 +40,14 @@ entries:
: ESP32_WIFI_IRAM_OPT = y
* (wifi_iram)
[mapping]
archive: libpp.a
entries:
: ESP32_WIFI_RX_IRAM_OPT = y
* (wifi_rx_iram)
[mapping]
archive: libnet80211.a
entries:
: ESP32_WIFI_RX_IRAM_OPT = y
* (wifi_rx_iram)

View File

@ -1,3 +1,4 @@
TEST_EXCLUDE_COMPONENTS=libsodium bt app_update driver esp32 spi_flash
CONFIG_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_OCCUPY_NO_HOST=y
CONFIG_SPIRAM_OCCUPY_NO_HOST=y
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n

View File

@ -1,3 +1,4 @@
TEST_COMPONENTS=driver esp32 spi_flash
CONFIG_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_OCCUPY_NO_HOST=y
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n