Skip to content

Commit e6f6065

Browse files
committed
remove trailing whitespaces
1 parent 7ae2df5 commit e6f6065

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/blinky-stm32h747i-disco.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![deny(warnings)] // This code runs on stm32h747i-disco and does not use example! macro.
2-
#![allow(unused_macros)]
2+
#![allow(unused_macros)]
33
#![no_main]
44
#![no_std]
55

@@ -16,45 +16,45 @@ fn main() -> ! {
1616
utilities::logger::init();
1717
let cp = cortex_m::Peripherals::take().unwrap();
1818
let dp = pac::Peripherals::take().unwrap();
19-
19+
2020
// Constrain and Freeze power
2121
info!("Setup PWR... ");
2222
let pwr = dp.PWR.constrain();
2323
// let pwrcfg = example_power!(pwr).freeze();
2424
let pwrcfg = pwr.smps().freeze(); // This code works normally on stm32h747i-disco.
25-
25+
2626
// Constrain and Freeze clock
2727
// RCC (Reset and Clock Control)
2828
info!("Setup RCC... ");
2929
let rcc = dp.RCC.constrain();
30-
30+
3131
// CCDR (Core Clock Distribution and Reset)
3232
// link: https://docs.rs/stm32h7xx-hal/latest/stm32h7xx_hal/rcc/struct.Ccdr.html
3333
let ccdr = rcc.sys_ck(100.MHz()).freeze(pwrcfg, &dp.SYSCFG);
34-
34+
3535
info!("");
3636
info!("stm32h7xx-hal example - Blinky");
3737
info!("");
38-
38+
3939
let gpioi = dp.GPIOI.split(ccdr.peripheral.GPIOI); // <= GPIO settings for LEDs
40-
40+
4141
// Configure gpio pins as output.
4242
let mut led1 = gpioi.pi12.into_push_pull_output(); // PI12 for LED1
4343
let mut led2 = gpioi.pi13.into_push_pull_output(); // PI13 for LED2
4444
let mut led3 = gpioi.pi14.into_push_pull_output(); // PI14 for LED3
4545
let mut led4 = gpioi.pi15.into_push_pull_output(); // PI15 for LED4
46-
46+
4747
// Get the delay provider.
4848
let mut delay = cp.SYST.delay(ccdr.clocks);
49-
49+
5050
loop {
5151
loop {
5252
led1.set_high();
5353
led2.set_low();
5454
led3.set_high();
5555
led4.set_low();
5656
delay.delay_ms(500_u16);
57-
57+
5858
led1.set_low();
5959
led2.set_high();
6060
led3.set_low();

0 commit comments

Comments
 (0)