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 6d3f652 commit 35c10e6Copy full SHA for 35c10e6
examples/serial_echo_irq.rs
@@ -61,7 +61,7 @@ fn main() -> ! {
61
// initialize global serial
62
*SER_PORT.borrow(cs).borrow_mut() =
63
Some(Serial::usart1(dp.USART1, (tx, rx), 9_600.bps(), &mut rcc));
64
-
+
65
if let Some(ser) = SER_PORT.borrow(cs).borrow_mut().as_mut() {
66
ser.listen(hal::serial::Event::Rxne); // trigger the USART1 interrupt when bytes are available (receive buffer not empty)
67
}
0 commit comments