register

Function register 

Source
pub fn register(irq: usize, handler: IrqHandler) -> bool
Available on crate feature irq only.
Expand description

Registers an IRQ handler for the given IRQ.

It also enables the IRQ if the registration succeeds. It returns false if the registration failed.