pub trait InterruptControllerToPort {
    // Required methods
    unsafe fn enable_external_interrupts();
    unsafe fn disable_external_interrupts();
}
Expand description

An API intended to be used by an interrupt controller driver. Implemented by use_port!.

Safety

These methods are only intended to be called by the INTERRUPT_EXTERNAL interrupt handler of the interrupt controller driver attached to Self.

Required Methods§

source

unsafe fn enable_external_interrupts()

Enable external interrupts by setting mie.MEIE or its counterpart for ThreadingOptions::PRIVILEGE_LEVEL.

Safety

See the Safety section of the trait documentation.

source

unsafe fn disable_external_interrupts()

Disable external interrupts by clearing mie.MEIE or its counterpart for ThreadingOptions::PRIVILEGE_LEVEL.

Safety

See the Safety section of the trait documentation.

Implementors§