Skip to content
Snippets Groups Projects
Commit 73095e2f authored by Anton's avatar Anton
Browse files

bare7_3

parent 1934647a
No related branches found
No related tags found
No related merge requests found
...@@ -74,10 +74,11 @@ const APP: () = { ...@@ -74,10 +74,11 @@ const APP: () = {
#[task(resources = [led], schedule = [toggle])] #[task(resources = [led], schedule = [toggle])]
fn toggle(cx: toggle::Context) { fn toggle(cx: toggle::Context) {
static mut TOGGLE: bool = false; //static mut TOGGLE: bool = false;
rprintln!("toggle @ {:?}", Instant::now()); rprintln!("toggle @ {:?}", Instant::now());
_toggle_generic(cx.resources.led, TOGGLE); _toggleable_generic(cx.resources.led);
//_toggle_generic(cx.resources.led, TOGGLE);
// if *TOGGLE { // if *TOGGLE {
// //cx.resources.GPIOA.bsrr.write(|w| w.bs5().set_bit()); // //cx.resources.GPIOA.bsrr.write(|w| w.bs5().set_bit());
// cx.resources.led.set_high().unwrap(); // cx.resources.led.set_high().unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment