Skip to content

Commit 445ac95

Browse files
Remove Serial::clear_irq()
This was a no-op except for `Event::Rxne`, which can also be cleared by simply reading a character
1 parent ead8e7b commit 445ac95

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/serial.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,6 @@ macro_rules! usart {
330330
}
331331
}
332332

333-
/// Clears interrupt flag
334-
pub fn clear_irq(&mut self, event: Event) {
335-
if let Event::Rxne = event {
336-
self.usart.rqr.write(|w| w.rxfrq().discard())
337-
}
338-
}
339-
340333
/// Checks for reception errors that may have occurred.
341334
///
342335
/// Note that multiple errors can be signaled at the same time. In that case,

0 commit comments

Comments
 (0)