pub trait ThreadingOptions {
    const CPU_LOCK_PRIORITY_MASK: u8 = 0u8;
    const USE_WFI: bool = true;

    unsafe fn interrupt_stack_top() -> usize { ... }
}
Expand description

The configuration of the port.

Provided Associated Constants

The priority value to which CPU Lock boosts the current execution priority. Must be in range 0..256. Defaults to 0 when unspecified.

The lower bound of MANAGED_INTERRUPT_PRIORITY_RANGE is bound to this value.

Must be 0 on Armv6-M and Armv8-M Baseline because they don’t support BASEPRI.

Enables the use of the wfi instruction in the idle task to save power. Defaults to true.

Provided Methods

Get the top of the interrupt stack. Defaults to *(SCB.VTOR as *const u32).

Safety

This only can be called by the port.

Implementors