1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

avoid circular #include dependence for PolledTimeout (#7356)

* move features to features.h

* fix std:: dependencies

* fix emulation on host

* api explanation
This commit is contained in:
david gauchard
2020-08-15 21:24:35 +02:00
committed by GitHub
parent 01edc0e51f
commit e0fedc577b
6 changed files with 97 additions and 46 deletions

View File

@ -208,7 +208,7 @@ uint32_t EspClass::getFlashChipSize(void)
String EspClass::getFullVersion ()
{
return "host-emulation";
return "emulation-on-host";
}
uint32_t EspClass::getFreeContStack()
@ -221,6 +221,11 @@ void EspClass::resetFreeContStack()
}
uint32_t EspClass::getCycleCount()
{
return esp_get_cycle_count();
}
uint32_t esp_get_cycle_count()
{
timeval t;
gettimeofday(&t, NULL);