Interfacing QCA7000 with ESP32
Posted: Tue Nov 08, 2022 3:45 pm
Hallo,
Does anyone develop a QCA7000(SPI) driver with lwip with ESP32?
I have issues regarding the attaching the driver.
esp_err_t esp_netif_attach(esp_netif_t *esp_netif, esp_netif_iodriver_handle driver_handle)
I do not know how to configure in "esp_netif_iodriver_handle".
How to get the driver_impl?
How can I implement my_driver_start function implementation?
Does it correct way to call attach ?
Thank you in advance
Best Regards,
Sai
Does anyone develop a QCA7000(SPI) driver with lwip with ESP32?
I have issues regarding the attaching the driver.
esp_err_t esp_netif_attach(esp_netif_t *esp_netif, esp_netif_iodriver_handle driver_handle)
I do not know how to configure in "esp_netif_iodriver_handle".
Code: Select all
typedef struct my_netif_driver_s {
esp_netif_driver_base_t base; /*!< base structure reserved as esp-netif driver */
driver_impl *h; /*!< handle of driver implementation */
} my_netif_driver_t;
Code: Select all
static esp_err_t my_post_attach_start(esp_netif_t * esp_netif, void * args)
{
my_netif_driver_t *driver = args;
const esp_netif_driver_ifconfig_t driver_ifconfig = {
.driver_free_rx_buffer = my_free_rx_buf,
.transmit = my_transmit,
.handle = driver->driver_impl
};
driver->base.netif = esp_netif;
ESP_ERROR_CHECK(esp_netif_set_driver_config(esp_netif, &driver_ifconfig));
my_driver_start(driver->driver_impl);
return ESP_OK;
}
Code: Select all
static my_netif_driver_t qca_driver;
ESP_ERROR_CHECK(esp_netif_attach(qca_netif,&qca_driver ));
Thank you in advance
Best Regards,
Sai