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

spawn polish

parent 115dd6a5
No related branches found
No related tags found
No related merge requests found
#![no_main]
#![no_std]
use cortex_m::{iprint, iprintln};
use cortex_m::iprintln;
use panic_semihosting as _;
use rtfm::app;
use stm32f4xx_hal::stm32 as pac;
#[app(device = stm32f4xx_hal::stm32, peripherals = true )]
const APP: () = {
......@@ -23,7 +22,7 @@ const APP: () = {
}
#[idle (resources = [itm], spawn = [task1])]
fn idle(mut cx: idle::Context) -> ! {
fn idle(cx: idle::Context) -> ! {
let (mut itm, spawn) = (cx.resources.itm, cx.spawn);
itm.lock(|itm| {
let stim = &mut itm.stim[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment