Module arch

Module arch 

Source
Expand description

Portable in-line assembly

Replaces cortex_m::asm with things that work on RISC-V and Arm.

Functionsยง

delay
Placeholder function to wait for some clock cycles
dsb
Placeholder function to emit a data synchronisation barrier
interrupt_disable
Placeholder function to disable interrupts
interrupt_enable
Placeholder function to enable interrupts
interrupt_free
Placeholder function to run a closure with interrupts disabled
interrupts_enabled
Placeholder function to check if interrupts are enabled
nop
Placeholder function to do nothing
sev
Placeholder function to emit an event
wfe
Placeholder function to wait for an event