[−][src]Function embedded_async_timer::impls::stm32f103_rtc::handle_interrupt
pub fn handle_interrupt<'a>(get_timer: impl FnOnce() -> &'a AsyncTimer<Rtc>)
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) } }