File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pub trait RegisterSpec {
49
49
50
50
/// Trait implemented by readable registers to enable the `read` method.
51
51
///
52
- /// Registers marked with `Writable` can be also `modify`'ed.
52
+ /// Registers marked with `Writable` can be also be `modify`'ed.
53
53
pub trait Readable : RegisterSpec {
54
54
/// Result from a call to `read` and argument to `modify`.
55
55
type Reader : From < R < Self > > + core:: ops:: Deref < Target = R < Self > > ;
@@ -59,7 +59,7 @@ pub trait Readable: RegisterSpec {
59
59
///
60
60
/// This enables the `write`, `write_with_zero` and `reset` methods.
61
61
///
62
- /// Registers marked with `Readable` can be also `modify`'ed.
62
+ /// Registers marked with `Readable` can be also be `modify`'ed.
63
63
pub trait Writable : RegisterSpec {
64
64
/// Writer type argument to `write`, et al.
65
65
type Writer : From < W < Self > > + core:: ops:: DerefMut < Target = W < Self > > ;
Original file line number Diff line number Diff line change 170
170
//! To use a peripheral first you must get an *instance* of the peripheral. All the device
171
171
//! peripherals are modeled as singletons (there can only ever be, at most, one instance of any
172
172
//! one of them) and the only way to get an instance of them is through the `Peripherals::take`
173
- //! method.
173
+ //! method, enabled via the `critical-section` feature on the generated crate .
174
174
//!
175
175
//! ```ignore
176
176
//! let mut peripherals = stm32f30x::Peripherals::take().unwrap();
You can’t perform that action at this time.
0 commit comments