From bdd1e869c705552d50ab3f541423f3ffb1095afe Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 15 Mar 2019 22:18:18 +0100 Subject: [PATCH] Output to the serial interface that initialisation is finished --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,