Struct r3::kernel::cfg::CfgInterruptHandlerBuilder [−][src]
pub struct CfgInterruptHandlerBuilder<System> { /* fields omitted */ }
Expand description
Configuration builder type for InterruptHandler
.
Implementations
[Required] Specify the interrupt line to attach the interrupt handler to.
Specify the priority. Defaults to 0
when unspecified.
When multiple handlers are registered to a single interrupt line, those with smaller priority values will execute earlier.
This should not be confused with an interrupt line’s priority.
Indicate that the entry point function is unmanaged-safe (designed to execute as an unmanaged interrupt handler).
If an interrupt line is not configured with an initial priority value that falls within a managed range, configuration will fail unless all of its attached interrupt handlers are marked as unmanaged-safe.
Safety
The behavior of system calls is undefined in an unmanaged interrupt handler.
Complete the registration of an interrupt handler, returning an
InterruptHandler
object.