Make yield() overridable (#2991)

This commit is contained in:
Dirk O. Kaar
2019-10-04 11:49:39 +02:00
committed by Me No Dev
parent 8fb8e7d060
commit c2b3f2d6af
3 changed files with 7 additions and 2 deletions

View File

@ -44,11 +44,13 @@ float temperatureRead()
return (temprature_sens_read() - 32) / 1.8;
}
void yield()
void __yield()
{
vPortYield();
}
void yield() __attribute__ ((weak, alias("__yield")));
#if CONFIG_AUTOSTART_ARDUINO
extern TaskHandle_t loopTaskHandle;