From 6c2b02a93750a8493a5d9a5553143bd74b2a6596 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Tue, 29 Sep 2020 23:10:50 +0200 Subject: [PATCH] systic example for qemu --- examples/systic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/systic.rs b/examples/systic.rs index de38710c42..8b5bba76f7 100644 --- a/examples/systic.rs +++ b/examples/systic.rs @@ -6,7 +6,7 @@ #![no_std] use cortex_m_semihosting::{debug, hprintln}; -use lm3s6965::Interrupt; +// use lm3s6965::Interrupt; use panic_semihosting as _; #[rtic::app(device = lm3s6965)] @@ -34,7 +34,7 @@ const APP: () = { static mut COUNTER: i32 = 0; *COUNTER += 1; hprintln!("SysTick #{}", COUNTER).unwrap(); - if *C == 10 { + if *COUNTER == 10 { debug::exit(debug::EXIT_SUCCESS); } }