Crate cortex_m [−] [src]
Low level access to Cortex-M processors
This crate provides:
- Access to core peripherals like NVIC, SCB and SysTick.
- Access to core registers like CONTROL, MSP and PSR.
- Interrupt manipulation mechanisms
- Safe wrappers around Cortex-M specific instructions like
To use this crate on the stable or beta channel
arm-none-eabi-gcc needs to be installed and
available in your
When this feature is enabled the implementation of all the functions inside the
register modules use inline assembly (
asm!) instead of external assembly (FFI into separate
assembly files compiled using
arm-none-eabi-gcc). The advantages the enabling
Reduced overhead. FFI eliminates the possibility of inlining so all operations include a function call overhead when
inline-asmis not enabled.
arm-none-eabi-gccis not required for building this crate.
Some of the
registerAPI only becomes available only when
inline-asmis enabled. Check the API docs for details.
The disadvantage is that
inline-asm requires a nightly toolchain.
Enabling this feature turns the
Mutex.new constructor into a
This feature requires a nightly toolchain.
Miscellaneous assembly instructions
Instrumentation Trace Macrocell
Processor core registers
Macro for sending a formatted string through an ITM channel
Macro for sending a formatted string through an ITM channel, with a newline.
Macro to create a mutable reference to a statically allocated value