pub fn handle_interrupt<'a>(get_timer: impl FnOnce() -> &'a AsyncTimer<Rtc>)
Expand description
Handle the RTC interrupt alarm and wake up the appropriate waker.
Add to your code:
static mut TIMER: Option<AsyncTimer<Rtc>> = None;
#[interrupt]
#[allow(non_snake_case)]
#[no_mangle]
fn RTC() {
if let Some(timer) = unsafe { TIMER.as_ref() } {
handle_interrupt(move || timer)
}
}