Skip to content

Commit ab065fc

Browse files
committed
formatting??
1 parent a28656a commit ab065fc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/pwm_complementary.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
// Halt on panic
66
use panic_halt as _;
77

8-
use cortex_m_rt::entry;
98
use cortex_m;
9+
use cortex_m_rt::entry;
1010

1111
use stm32f0xx_hal as hal;
1212

1313
use hal::{delay::Delay, pac, prelude::*, pwm};
1414

15-
1615
#[entry]
1716
fn main() -> ! {
1817
if let Some(mut dp) = pac::Peripherals::take() {
@@ -23,7 +22,7 @@ fn main() -> ! {
2322
let channels = cortex_m::interrupt::free(move |cs| {
2423
(
2524
gpioa.pa8.into_alternate_af2(cs), // on TIM1_CH1
26-
gpioa.pa7.into_alternate_af2(cs), // on TIM1_CH1N
25+
gpioa.pa7.into_alternate_af2(cs), // on TIM1_CH1N
2726
)
2827
});
2928

@@ -58,5 +57,4 @@ fn main() -> ! {
5857
loop {
5958
cortex_m::asm::nop();
6059
}
61-
62-
}
60+
}

0 commit comments

Comments
 (0)