X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=blobdiff_plain;f=src%2Fapplication%2Fmain.rs;h=cf06f640b529cc8b79c2247762bcb308b6028b7f;hp=f1eb522a739068dda8977821c694e7bf768d215a;hb=5897e4ea6cc3ba413190f475a29bb3f745b66887;hpb=b00dd201b1c26fbd72c4930e26e3420ad8c276a0 diff --git a/src/application/main.rs b/src/application/main.rs index f1eb522..cf06f64 100644 --- a/src/application/main.rs +++ b/src/application/main.rs @@ -43,6 +43,8 @@ use common::display; use common::gps; use common::screen; use common::time::Time; +use common::mx25l::Mx25l; +use common::shell::Shell; extern { fn enable_interrupts(); @@ -186,6 +188,10 @@ pub unsafe extern "C" fn _start() -> ! { nvic::enable_irq(12); // UART0 + let mut shell = Shell::new(&mut cdc_tx_buf); + + let mut mx25l = Mx25l::new(gpio::GPIOD, 1 << 0); + let mut gps = gps::Gps::new(); let mut gps_has_fix = false; @@ -261,6 +267,8 @@ pub unsafe extern "C" fn _start() -> ! { } }); + shell.update(); + if reset_requested() { nvic::system_reset(); }