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

Add wait loop at the end of mode, refactor can_yield (#6721)

* Add wait loop at the end of mode, refactor can_yield

* fix mock build
This commit is contained in:
Develo
2019-11-07 18:25:20 -03:00
committed by GitHub
parent 6f7eb2828a
commit 453eb2d064
4 changed files with 829 additions and 799 deletions

View File

@ -37,6 +37,11 @@ extern "C" void yield()
{
}
extern "C" bool can_yield()
{
return true;
}
extern "C" void optimistic_yield (uint32_t interval_us)
{
usleep(interval_us);
@ -69,3 +74,4 @@ cont_t* g_pcont = NULL;
extern "C" void cont_yield(cont_t*)
{
}