[−][src]Crate ruspiro_interrupt_macros
Interrupt Macros
This crate provides the custom attribute #[IrqHandler(<interrupt type>)]
to be used when implementing an
interrupt handler.
Usage
#[IrqHandler(ArmTimer)] unsafe fn my_timer_handler() { // implement the interrupt handling here and do not forget // to acknowledge the interrupt in the interrupt specific registers // in case of the timer interrupt it would be done like so TIMERIRQ::Register.set(1); } define_registers! ( TIMERIRQ: WriteOnly<u32> @ 0x3F00_B40C => [] );
Attribute Macros
IrqHandler |