From: Tilman Sauerbeck Date: Wed, 8 Jan 2020 10:20:32 +0000 (+0100) Subject: application: Integrate the shell. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=69aefc68215ac40ab6dfbe9f17d9e3a1bbe77c4a;p=gps-watch.git application: Integrate the shell. --- 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(); }