diff --git a/src/main.rs b/src/main.rs index 9b56f2eb8f1a4527ff1e4c6ce20288d7c5e78338..31b3b9f91c1570c171529ae2c3918874648b49b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,11 +26,8 @@ const APP: () = { struct Resources { // late resources GPIOA: stm32::GPIOA, -<<<<<<< HEAD GPIOC: stm32::GPIOC, //button: <stm32::GPIOC as int>::PC13, -======= ->>>>>>> 9be3604 (changed main) } #[init(schedule = [toggle])] @@ -64,21 +61,9 @@ const APP: () = { // configure PA5 as output, RM0368 8.4.1 device.GPIOA.moder.modify(|_, w| w.moder5().bits(1)); -<<<<<<< HEAD - // Test button thingy. Think I put PC13 to input - device.GPIOC.moder.modify(|_, w| w.moder13().bits(0)); - // device.GPIOC.pupdr.modify(|_, w| w.pupdr13().bits(0)); - - // pass on late resources - init::LateResources { - GPIOA: device.GPIOA, - GPIOC: device.GPIOC, - //button: device.button, -======= // pass on late resources init::LateResources { GPIOA: device.GPIOA, ->>>>>>> 9be3604 (changed main) } } @@ -93,11 +78,7 @@ const APP: () = { -<<<<<<< HEAD - #[task(resources = [GPIOA,GPIOC], schedule = [toggle])] -======= #[task(resources = [GPIOA], schedule = [toggle])] ->>>>>>> 9be3604 (changed main) fn toggle(cx: toggle::Context) { static mut TOGGLE: bool = false; rprintln!("toggle @ {:?}", Instant::now());