#![no_std]
#![no_main]
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
loop {}
}
use cortex_m_interrupt::{take_nvic_interrupt, InterruptRegistration};
use stm32f1xx_hal::device::Interrupt;
fn _test() {
let registration = take_nvic_interrupt!(Interrupt::EXTI15_10, 5);
registration.occupy(|| panic!("In NVIC interrupt"));
}
#[cortex_m_rt::entry]
fn main() -> ! {
_test();
loop {}
}