Use esp_timer_get_time as time source for micros and mills (#1424)

esp_timer_get_time returns monotonic time in microseconds, as a 64-bit
number. It can be called from tasks and interrupts, does not use any
critical sections/mutexes, and is thread safe.
This commit is contained in:
Ivan Grokhotkov
2018-05-22 16:12:30 +02:00
committed by Me No Dev
parent dd639c4a02
commit 93c45af256
2 changed files with 3 additions and 41 deletions

View File

@ -14,7 +14,6 @@ void loopTask(void *pvParameters)
{
setup();
for(;;) {
micros(); //update overflow
loop();
}
}