mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
systic example for qemu
This commit is contained in:
parent
43f11812a1
commit
6c2b02a937
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
use cortex_m_semihosting::{debug, hprintln};
|
use cortex_m_semihosting::{debug, hprintln};
|
||||||
use lm3s6965::Interrupt;
|
// use lm3s6965::Interrupt;
|
||||||
use panic_semihosting as _;
|
use panic_semihosting as _;
|
||||||
|
|
||||||
#[rtic::app(device = lm3s6965)]
|
#[rtic::app(device = lm3s6965)]
|
||||||
|
@ -34,7 +34,7 @@ const APP: () = {
|
||||||
static mut COUNTER: i32 = 0;
|
static mut COUNTER: i32 = 0;
|
||||||
*COUNTER += 1;
|
*COUNTER += 1;
|
||||||
hprintln!("SysTick #{}", COUNTER).unwrap();
|
hprintln!("SysTick #{}", COUNTER).unwrap();
|
||||||
if *C == 10 {
|
if *COUNTER == 10 {
|
||||||
debug::exit(debug::EXIT_SUCCESS);
|
debug::exit(debug::EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue