Trait r3_port_arm_m::ThreadingOptions
source · 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
sourceconst CPU_LOCK_PRIORITY_MASK: u8 = 0u8
const CPU_LOCK_PRIORITY_MASK: u8 = 0u8
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
.
Provided Methods
sourceunsafe fn interrupt_stack_top() -> usize
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.