Skip to content
Snippets Groups Projects
Commit b04e0df9 authored by Carl Österberg's avatar Carl Österberg
Browse files

bare7_3

parent dd7b5768
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ const APP: () = {
#[task(resources = [led], schedule = [toggle])]
fn toggle(cx: toggle::Context) {
static mut TOGGLE: bool = false;
//static mut TOGGLE: bool = false;
rprintln!("toggle @ {:?}", Instant::now());
//use the set high/low for push pull output
......@@ -86,7 +86,8 @@ const APP: () = {
// *TOGGLE = !*TOGGLE;
_toggle_generic(cx.resources.led, TOGGLE);
//_toggle_generic(cx.resources.led, TOGGLE);
_toggleable_generic(cx.resources.led);
cx.schedule.toggle(cx.scheduled + OFFSET.cycles()).unwrap();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment