esp_initr.h is deprecated in Espressif SKD >=2.x
simkard69 opened this issue · 1 comments
Hello,
Recently I've updated my ESPRESSIF SDK to latest version which is v2.0.1 at that time.
When compiling your library, I faced this warning (event if compile succeeded anyway) :
In file included from xxxxxxxx\CAN\src\ESP32SJA1000.cpp:6:
xxxxxxxx\esp32\hardware\esp32\2.0.1/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
Can you please adjust it ?
Thanks
Tried modifying "ESP32SJA1000.cpp" file and checked if compilation is ok and ... yes it is 💯
Basically, comment out this line :
//#include "esp_intr.h
REASON : Since Espressif 2.0.0 for Arduino "esp_intr.h" is deprecated, please include "esp_intr_alloc.h instead"
And add this line just under :
#include "esp_intr_alloc.h"
➡️ SOLVED !
Cheers, don't thanks me 🤙