Merge branch 'feature/wifi_deinit' into 'master'

wifi: add wifi rx buffer number config in menuconfig



See merge request !370
This commit is contained in:
Wu Jian Gang 2017-01-06 13:32:25 +08:00
commit e2d05d8592
3 changed files with 12 additions and 1 deletions

View File

@ -508,5 +508,14 @@ config ESP32_PHY_MAX_TX_POWER
help help
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

View File

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