mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 13:49:06 +00:00
esp_rtc_rdalarm() computed tv_sec and tv_nsec from two separate evaluations of esp_hr_timer_time_us() + offset + deadline. The high-resolution timer advances between the two calls, so a read that straddles a second boundary yields an inconsistent timespec. Compute the microsecond value once into a local variable and derive both fields from that single snapshot. Signed-off-by: yushuailong <yyyusl@qq.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||