diff --git a/src/main.rs b/src/main.rs index 09ba343..b8364c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,11 +62,14 @@ const APP: () = { let clocks = rcc.cfgr.freeze(); let mut serial = Serial::usart2(device.USART2, (tx, rx), config, clocks).unwrap(); serial.listen(serial::Event::Rxne); - let (serial_tx, serial_rx) = serial.split(); + let (mut serial_tx, serial_rx) = serial.split(); // Set up the serial interface command buffer. let buffer = Vec::new(); + // Output to the serial interface that initialisation is finished. + writeln!(serial_tx, "init\r").unwrap(); + init::LateResources { button, buffer,