fix isr service error

This commit is contained in:
Ricardo (XenGi) Band 2026-06-11 21:50:30 +02:00
commit 44223f8026
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -7,5 +7,7 @@ idf_component_register(
esp_eth
driver
nvs_flash
esp_driver_gpio
INCLUDE_DIRS ""
)

View file

@ -14,6 +14,7 @@
#include "nvs_flash.h"
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "esp_eth.h"
#include "esp_eth_mac.h"
@ -119,6 +120,8 @@ extern "C" void app_main(void)
esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, &eth_event_handler, NULL);
esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &got_ip_event_handler, NULL);
ESP_ERROR_CHECK(gpio_install_isr_service(0));
// ---------------- SPI BUS ----------------
spi_bus_config_t buscfg = {};