52#define RTT_HW_COUNTER_MAX ((1ULL << 48) - 1)
67 uint64_t (*get_counter)(void);
75 void (*set_alarm)(uint32_t alarm,
rtt_cb_t cb,
void *arg);
80 void (*clear_alarm)(void);
85 void (*save_counter)(void);
92 void (*restore_counter)(
bool in_init);
97 void (*poweron)(void);
102 void (*poweroff)(void);
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.