]> granicus.if.org Git - esp-idf/commit
esp_timer: lock-free implementation of esp_timer_get_time
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 30 Aug 2017 00:43:02 +0000 (08:43 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 1 Sep 2017 02:34:36 +0000 (10:34 +0800)
commit1af63843490f273e1702ebca48e50f975853e7c5
tree54bdec022f66a30c378d7627f2de014d66274e2f
parentc743bdac885ba63fc1de3a3995dbc76741fa1da6
esp_timer: lock-free implementation of esp_timer_get_time

The implementation of esp_timer_get_time used a critical section, which
resulted in a call time of ~1.8us. To make esp_timer_get_time more
useable as a high-resolution time source, this change replaces the lock
with polling. Call time is reduced to ~0.7us.
components/esp32/esp_timer_esp32.c
components/esp32/test/test_esp_timer.c