Registry / other / cortex-m

cortex-m

JSON →
library0.7.7rscratesunverified

Low-level access to Cortex-M processors, including registers and intrinsics.

# Cargo.toml [dependencies] cortex-m = "0.7.7"
INSTALL
IMPORT
SIG · CORTEX-M
C
cortex-m
otherrustv0.7.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nop
use cortex_m::asm::nop;

A minimal no_std program for Cortex-M that executes NOP instructions in a loop.

#![no_std] #![no_main] use cortex_m::asm; use panic_halt as _; #[cortex_m_rt::entry] fn main() -> ! { loop { asm::nop(); } }
Debug
Known issues
gotchaRequires a target like thumbv7em-none-eabi and the cortex-m-rt crate for entry point.
fix
Add cortex-m-rt and set the correct target.
affects: >=0.7.0
Upgrade
Version history
0.7.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
cortex-m — cargo add cortex-m · libregistry