Output to the serial interface that initialisation is finished
This commit is contained in:
parent
ad809e2bc4
commit
bdd1e869c7
|
@ -62,11 +62,14 @@ const APP: () = {
|
||||||
let clocks = rcc.cfgr.freeze();
|
let clocks = rcc.cfgr.freeze();
|
||||||
let mut serial = Serial::usart2(device.USART2, (tx, rx), config, clocks).unwrap();
|
let mut serial = Serial::usart2(device.USART2, (tx, rx), config, clocks).unwrap();
|
||||||
serial.listen(serial::Event::Rxne);
|
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.
|
// Set up the serial interface command buffer.
|
||||||
let buffer = Vec::new();
|
let buffer = Vec::new();
|
||||||
|
|
||||||
|
// Output to the serial interface that initialisation is finished.
|
||||||
|
writeln!(serial_tx, "init\r").unwrap();
|
||||||
|
|
||||||
init::LateResources {
|
init::LateResources {
|
||||||
button,
|
button,
|
||||||
buffer,
|
buffer,
|
||||||
|
|
Loading…
Reference in New Issue