We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
critical-section-single-core
1 parent 7f99b9a commit 78f7968Copy full SHA for 78f7968
cortex-m/src/lib.rs
@@ -19,6 +19,11 @@
19
//! or critical sections are managed as part of an RTOS. In these cases, you should use
20
//! a target-specific implementation instead, typically provided by a HAL or RTOS crate.
21
//!
22
+//! The critical section has been optimized to block interrupts for as few cycles as possible,
23
+//! but -- due to `critical-section` implementation details -- incurs branches in a normal build
24
+//! configuration. For minimal interrupt latency, you can achieve inlining by enabling
25
+//! [linker-plugin-based LTO](https://doc.rust-lang.org/rustc/linker-plugin-lto.html).
26
+//!
27
//! ## `cm7-r0p1`
28
29
//! This feature enables workarounds for errata found on Cortex-M7 chips with revision r0p1. Some
0 commit comments