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.
take
1 parent 9024b95 commit 7d4e736Copy full SHA for 7d4e736
src/lib.rs
@@ -170,7 +170,7 @@
170
//! To use a peripheral first you must get an *instance* of the peripheral. All the device
171
//! peripherals are modeled as singletons (there can only ever be, at most, one instance of any
172
//! one of them) and the only way to get an instance of them is through the `Peripherals::take`
173
-//! method.
+//! method, enabled via the `critical-section` feature on the generated crate.
174
//!
175
//! ```ignore
176
//! let mut peripherals = stm32f30x::Peripherals::take().unwrap();
0 commit comments