Fix typos
This commit is contained in:
parent
9caf68f25a
commit
07c4a3ccc6
|
@ -33,7 +33,7 @@ const APP: () = {
|
||||||
|
|
||||||
#[init(spawn = [switch_leds])]
|
#[init(spawn = [switch_leds])]
|
||||||
fn init() -> init::LateResources {
|
fn init() -> init::LateResources {
|
||||||
// Set up the LEDs and spawn the LEDs switch task.
|
// Set up the LED cycle and spawn the LEDs switch task.
|
||||||
let gpiod = device.GPIOD.split();
|
let gpiod = device.GPIOD.split();
|
||||||
let leds = [
|
let leds = [
|
||||||
gpiod.pd12.into_push_pull_output().downgrade(),
|
gpiod.pd12.into_push_pull_output().downgrade(),
|
||||||
|
@ -44,7 +44,7 @@ const APP: () = {
|
||||||
let led_cycle = LedCycle::from(leds);
|
let led_cycle = LedCycle::from(leds);
|
||||||
spawn.switch_leds().unwrap();
|
spawn.switch_leds().unwrap();
|
||||||
|
|
||||||
// Set up the EXTI0 interrup for the user button.
|
// Set up the EXTI0 interrupt for the user button.
|
||||||
let mut exti = device.EXTI;
|
let mut exti = device.EXTI;
|
||||||
let gpioa = device.GPIOA.split();
|
let gpioa = device.GPIOA.split();
|
||||||
let mut button = gpioa.pa0.into_floating_input();
|
let mut button = gpioa.pa0.into_floating_input();
|
||||||
|
|
Loading…
Reference in New Issue