[][src]Trait r3_port_arm_m::ThreadingOptions

pub trait ThreadingOptions {
    const CPU_LOCK_PRIORITY_MASK: u8;
    const USE_WFI: bool;
    unsafe fn interrupt_stack_top() -> usize { ... }
}

The configuration of the port.

Associated Constants

const CPU_LOCK_PRIORITY_MASK: u8

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.

const USE_WFI: bool

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

Loading content...

Provided methods

unsafe fn interrupt_stack_top() -> usize

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

Safety

This only can be called by the port.

Loading content...

Implementors

Loading content...