Open dok-net opened 3 years ago
FWIW, we already have esp8266CoreVersion. Every commit is differentiated from the others.
What I am looking for is a solution to something like this, for example necessitated by PR #7148:
#if defined(HAVE_ESP_SUSPEND)
void __esp_suspend();
// disable CONT suspend, resume by esp_schedule pattern
void esp_suspend()
{
auto self = CoopTaskBase::self();
if (self) CoopTaskBase::yield(self);
else __esp_suspend();
}
#else
void __esp_yield();
// disable CONT suspend, resume by esp_schedule pattern
void esp_yield()
{
auto self = CoopTaskBase::self();
if (self) CoopTaskBase::yield(self);
else __esp_yield();
}
#endif
Naturally, this should be available for master commits, too, not only for release versions of Arduino Core for ESP8266.
Since ESP32 v 2.0.0,
Arduino.h
includes the afore-mentioned file. Is there support in the release process yet to updateESP_ARDUINO_VERSION_MAJOR
,ESP_ARDUINO_VERSION_MINOR
, andESP_ARDUINO_VERSION_PATCH
reliably?