wifi: add wifi rx buffer number config in menuconfig
This commit is contained in:
parent
c9ef32a0f2
commit
7853893731
3 changed files with 12 additions and 1 deletions
|
@ -509,4 +509,13 @@ config ESP32_PHY_MAX_TX_POWER
|
||||||
Set maximum transmit power. Actual transmit power for high
|
Set maximum transmit power. Actual transmit power for high
|
||||||
data rates may be lower than this setting.
|
data rates may be lower than this setting.
|
||||||
|
|
||||||
|
config ESP32_WIFI_RX_BUFFER_NUM
|
||||||
|
int "Max number of WiFi RX buffers"
|
||||||
|
range 2 25
|
||||||
|
default 25
|
||||||
|
help
|
||||||
|
Set the number of WiFi rx buffers. Each buffer takes approximately 1.6KB of RAM.
|
||||||
|
Larger number for higher throughput but more memory. Smaller number for lower
|
||||||
|
throughput but less memory.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -94,11 +94,13 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
system_event_handler_t event_handler; /**< WiFi event handler */
|
system_event_handler_t event_handler; /**< WiFi event handler */
|
||||||
|
uint32_t rx_buf_num; /**< WiFi RX buffer number */
|
||||||
} wifi_init_config_t;
|
} wifi_init_config_t;
|
||||||
|
|
||||||
|
|
||||||
#define WIFI_INIT_CONFIG_DEFAULT() { \
|
#define WIFI_INIT_CONFIG_DEFAULT() { \
|
||||||
.event_handler = &esp_event_send, \
|
.event_handler = &esp_event_send, \
|
||||||
|
.rx_buf_num = CONFIG_ESP32_WIFI_RX_BUFFER_NUM, \
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit edad9748406d06bfd2dfba6cf1a0735c3982460f
|
Subproject commit 21e433b8277adc1d65894ec0a65c60f78dc84f7c
|
Loading…
Reference in a new issue