Background
When compiling for board esp32doit-devkit-v1, the following deprecation warning is generated.
In file included from .pio/libdeps/esp32doit-devkit-v1/CAN/src/ESP32SJA1000.cpp:6:
/Users/xxx/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
#warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
Potential solution
Include esp_intr_alloc.h instead of esp_intr.h
Background When compiling for board
esp32doit-devkit-v1
, the following deprecation warning is generated.Potential solution Include esp_intr_alloc.h instead of esp_intr.h