From 69aefc68215ac40ab6dfbe9f17d9e3a1bbe77c4a Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Wed, 8 Jan 2020 11:20:32 +0100 Subject: [PATCH] application: Integrate the shell. --- src/application/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/application/main.rs b/src/application/main.rs index f1eb522..4096dc4 100644 --- a/src/application/main.rs +++ b/src/application/main.rs @@ -43,6 +43,7 @@ use common::display; use common::gps; use common::screen; use common::time::Time; +use common::shell::Shell; extern { fn enable_interrupts(); @@ -186,6 +187,8 @@ pub unsafe extern "C" fn _start() -> ! { nvic::enable_irq(12); // UART0 + let mut shell = Shell::new(&mut cdc_tx_buf); + let mut gps = gps::Gps::new(); let mut gps_has_fix = false; @@ -261,6 +264,8 @@ pub unsafe extern "C" fn _start() -> ! { } }); + shell.update(); + if reset_requested() { nvic::system_reset(); } -- 2.30.2