Skip to content
Snippets Groups Projects
Commit 1934647a authored by Anton's avatar Anton
Browse files

bare7_2

parent 087553d8
No related branches found
No related tags found
No related merge requests found
......@@ -77,16 +77,16 @@ const APP: () = {
static mut TOGGLE: bool = false;
rprintln!("toggle @ {:?}", Instant::now());
_toggle_generic(cx.resources.led, TOGGLE);
// if *TOGGLE {
// //cx.resources.GPIOA.bsrr.write(|w| w.bs5().set_bit());
// cx.resources.led.set_high().unwrap();
// } else {
// cx.resources.led.set_low().unwrap();
// //cx.resources.GPIOA.bsrr.write(|w| w.br5().set_bit());
// }
if *TOGGLE {
//cx.resources.GPIOA.bsrr.write(|w| w.bs5().set_bit());
cx.resources.led.set_high().unwrap();
} else {
cx.resources.led.set_low().unwrap();
//cx.resources.GPIOA.bsrr.write(|w| w.br5().set_bit());
}
*TOGGLE = !*TOGGLE;
//*TOGGLE = !*TOGGLE;
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