Skip to content
Snippets Groups Projects
Commit c3326600 authored by Per Lindgren's avatar Per Lindgren
Browse files

rticify

parent bb2f8aa8
No related branches found
No related tags found
No related merge requests found
File moved
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
use async_cortex_m::task; use async_cortex_m::task;
use cortex_m_rt::entry; use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln; use cortex_m_semihosting::{debug, hprintln};
use nrf52 as _; // memory layout use lm3s6965 as _;
use panic_udf as _; // panic handler use panic_halt as _; // panic handler // vector table
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {
...@@ -34,7 +34,12 @@ fn main() -> ! { ...@@ -34,7 +34,12 @@ fn main() -> ! {
// task B // task B
task::block_on(async { task::block_on(async {
let mut i: u8 = 0;
loop { loop {
i += 1;
if i == 3 {
debug::exit(debug::EXIT_SUCCESS);
}
hprintln!("B1: yield").ok(); hprintln!("B1: yield").ok();
// context switch to A // context switch to A
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment