Fix typos

This commit is contained in:
Paul van Tilburg 2019-03-07 23:05:14 +01:00
parent 9caf68f25a
commit 07c4a3ccc6
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const APP: () = {
#[init(spawn = [switch_leds])]
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 leds = [
gpiod.pd12.into_push_pull_output().downgrade(),
@ -44,7 +44,7 @@ const APP: () = {
let led_cycle = LedCycle::from(leds);
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 gpioa = device.GPIOA.split();
let mut button = gpioa.pa0.into_floating_input();