fix isr service error
This commit is contained in:
parent
36e0585404
commit
44223f8026
2 changed files with 5 additions and 0 deletions
|
|
@ -7,5 +7,7 @@ idf_component_register(
|
|||
esp_eth
|
||||
driver
|
||||
nvs_flash
|
||||
esp_driver_gpio
|
||||
INCLUDE_DIRS ""
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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, ð_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 = {};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue