Use real hardware LED pin.
This commit is contained in:
parent
5ef16da100
commit
d82ca6c478
1 changed files with 4 additions and 4 deletions
|
|
@ -27,10 +27,10 @@ fn main() -> ! {
|
|||
.pclk1(Hertz::MHz(32))
|
||||
.freeze(&mut flash.acr, &mut pwr);
|
||||
|
||||
let mut gpioa = dp.GPIOA.split(&mut rcc.ahb2);
|
||||
let mut led_pin = gpioa
|
||||
.pa0
|
||||
.into_push_pull_output(&mut gpioa.moder, &mut gpioa.otyper);
|
||||
let mut gpiob = dp.GPIOB.split(&mut rcc.ahb2);
|
||||
let mut led_pin = gpiob
|
||||
.pb12
|
||||
.into_push_pull_output(&mut gpiob.moder, &mut gpiob.otyper);
|
||||
|
||||
let mut timer = Delay::new(cp.SYST, clocks);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue