https://github.com/espressif/arduino-es ... isc.c#L134
Code: Select all
unsigned long IRAM_ATTR micros()
{
return (unsigned long) (esp_timer_get_time());
}
Is there a way to add an offset by app to esp_timer_get_time()?
- Perhaps by using a wake stub, which adds a sleep time offset immediately after wake up?
- Or is there a way to overwite the micros() function of arduino-esp32 with a customized version?