Program wakeups for FreeRTOS tickless sleep. More...
Functions | |
| void | tr_rtc_setup_alarm (uint64_t delta_ms) |
Program an RTC alarm to fire approximately delta_ms in the future. | |
Program wakeups for FreeRTOS tickless sleep.
| void tr_rtc_setup_alarm | ( | uint64_t | delta_ms | ) |
Program an RTC alarm to fire approximately delta_ms in the future.
| [in] | delta_ms | Relative delay in milliseconds. If 0, it is coerced to 1 ms. |
Converts (HW_now_ms + max(delta_ms,1)) to an absolute calendar value and arms the hardware alarm via the HAL. Intended for FreeRTOS tickless idle, where the alarm interrupt wakes from WFI/Sleep or triggers a deep‑sleep wake/reset, depending on the platform power configuration.