51#define RTT_HW_COUNTER_MAX ((1ULL << 48) - 1)
void(* rtt_cb_t)(void *arg)
Signature for the alarm callback.
Low-level RTT (Real Time Timer) peripheral driver interface definitions.
void rtt_pm_sleep_exit(uint32_t cause)
Called after the power management left light sleep mode.
uint64_t rtt_pm_sleep_enter(unsigned mode)
Called before the power management enters a light or deep sleep mode.
RTT hardware abstraction layer driver.
void(* save_counter)(void)
Save the counter value before sleep or reboot if necessary.
void(* restore_counter)(bool in_init)
Restore the counter value before sleep or reboot.
void(* init)(void)
Init the current hardware counter.
void(* poweroff)(void)
Disable the RTT hardware counter.
uint64_t(* get_counter)(void)
Get the current hardware counter value.
void(* set_alarm)(uint32_t alarm, rtt_cb_t cb, void *arg)
Set the hardware alarm.
void(* clear_alarm)(void)
Clear the hardware alarm.
void(* poweron)(void)
Enable the RTT hardware counter.