components/esp32: clarify type of queue in wifi_init_config_t, add default init macro
This commit is contained in:
parent
e9b54b6b45
commit
5a762d9eee
1 changed files with 12 additions and 2 deletions
|
@ -59,7 +59,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/queue.h"
|
||||
#include "esp_err.h"
|
||||
#include "rom/queue.h"
|
||||
|
||||
|
@ -138,13 +139,22 @@ typedef enum {
|
|||
|
||||
|
||||
typedef struct {
|
||||
void *event_q; /**< WiFi event q handler, it's a freeRTOS queue */
|
||||
QueueHandle_t event_queue; /**< WiFi event queue handle */
|
||||
uint8_t rx_ba_win; /**< TBC */
|
||||
uint8_t tx_ba_win; /**< TBC */
|
||||
uint8_t rx_buf_cnt; /**< TBC */
|
||||
uint8_t tx_buf_cnt; /**< TBC */
|
||||
} wifi_init_config_t;
|
||||
|
||||
|
||||
#define WIFI_INIT_CONFIG_DEFAULT(event_queue_) { \
|
||||
.event_queue = event_queue_, \
|
||||
.rx_ba_win = 0, \
|
||||
.tx_ba_win = 0, \
|
||||
.rx_buf_cnt = 0, \
|
||||
.tx_buf_cnt = 0 \
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Init WiFi
|
||||
* Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer,
|
||||
|
|
Loading…
Reference in a new issue