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.
1 parent bbdd217 commit 28808a0Copy full SHA for 28808a0
src/lib.rs
@@ -155,7 +155,7 @@
155
//!
156
//! fn read(&mut self) -> nb::Result<u8, Error> {
157
//! // read the status register
158
-//! let isr = self.usart.isr.read();
+//! let isr = self.usart.sr.read();
159
160
//! if isr.ore().bit_is_set() {
161
//! // Error: Buffer overrun
@@ -164,7 +164,7 @@
164
//! // omitted: checks for other errors
165
//! else if isr.rxne().bit_is_set() {
166
//! // Data available: read the data register
167
-//! Ok(self.usart.rdr.read().bits() as u8)
+//! Ok(self.usart.dr.read().bits() as u8)
168
//! } else {
169
//! // No data available yet
170
//! Err(nb::Error::WouldBlock)
0 commit comments