X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fapplication%2Fmain.rs;h=3523b885fe9a907b081c9b85da75f9d8b3380643;hb=aa0f0d612a03799423e87e9137765ecb90146f48;hp=4096dc403707129edf83cd4156f929f18c396a41;hpb=69aefc68215ac40ab6dfbe9f17d9e3a1bbe77c4a;p=gps-watch.git diff --git a/src/application/main.rs b/src/application/main.rs index 4096dc4..3523b88 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::mx25l::Mx25l; use common::shell::Shell; extern { @@ -189,6 +190,8 @@ pub unsafe extern "C" fn _start() -> ! { 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; @@ -264,7 +267,7 @@ pub unsafe extern "C" fn _start() -> ! { } }); - shell.update(); + shell.update(&mut mx25l); if reset_requested() { nvic::system_reset();