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

rticify

parent bb2f8aa8
Branches
No related tags found
No related merge requests found
File moved
......@@ -17,9 +17,9 @@
use async_cortex_m::task;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
use nrf52 as _; // memory layout
use panic_udf as _; // panic handler
use cortex_m_semihosting::{debug, hprintln};
use lm3s6965 as _;
use panic_halt as _; // panic handler // vector table
#[entry]
fn main() -> ! {
......@@ -34,7 +34,12 @@ fn main() -> ! {
// task B
task::block_on(async {
let mut i: u8 = 0;
loop {
i += 1;
if i == 3 {
debug::exit(debug::EXIT_SUCCESS);
}
hprintln!("B1: yield").ok();
// 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