Search found 2 matches
- Thu Sep 07, 2023 1:00 pm
- Forum: ESP-IDF
- Topic: Thread/interrupt-safeness of esp_timer_get_time
- Replies: 4
- Views: 1732
Re: Thread/interrupt-safeness of esp_timer_get_time
Thank you alot, I wasn't aware of this. I see why this gives a consistent reading of the counter value. But this function call potentially never terminates. Is this something I just have to accept?
- Thu Sep 07, 2023 11:18 am
- Forum: ESP-IDF
- Topic: Thread/interrupt-safeness of esp_timer_get_time
- Replies: 4
- Views: 1732
Thread/interrupt-safeness of esp_timer_get_time
Dear all, currently I implement software for ESP32 which frequently calls `int64_t current_time = esp_timer_get_time()`. Each time I check if `current_time - last_updated > INTERVAL`, where `last_updated` is a 64 bit signed integer. Since the ESP32 is a 32 bit processor, there are no 64 bit atomics,...