Closed zdila closed 3 years ago
Thanks for the info.
Most likely I will not upgrade the library to ESP-IDF 4.0 until it's officially released. But with your changes, anyone can upgrade earlier.
Maybe a macro could be used now:
#if IDF_MAJOR_VER >= 4
#include <freertos/semphr.h>
#endif
#if IDF_MAJOR_VER >= 4
#include "driver/gpio.h"
#endif
ESP-IDF 4.0 is not stable yet. So any such code change might not work anymore with later development releases or with the final 4.0 release. I'm very reluctant to implement it.
OK, no problem, just giving some hints ;-)
The dev branch now contains a major update to the library including compatibility with the upcoming version 4 of ESP-IDF.
Release 3.2.0 is has been released and is based on ESP-IDF 4.0.x
For ESP-IDF I had to perform following changes for hello_world example to compile:
#include <freertos/semphr.h>
tohal_esp32.h
#include "driver/gpio.h"
tomain.cpp
Thanks for awesome library!