stm32: No need to enable GPIO clocks manually

This commit is contained in:
Timo Kröger
2021-07-23 14:24:38 +02:00
parent ec5d44333a
commit 5ac91933ff
21 changed files with 36 additions and 221 deletions

View File

@ -13,19 +13,11 @@ use embedded_hal::digital::v2::OutputPin;
use example_common::*;
use cortex_m_rt::entry;
use stm32wb_pac as pac;
#[entry]
fn main() -> ! {
info!("Hello World!");
let pp = pac::Peripherals::take().unwrap();
pp.RCC.ahb2enr.modify(|_, w| {
w.gpioben().set_bit();
w
});
let p = embassy_stm32::init(Default::default());
let mut led = Output::new(p.PB0, Level::High, Speed::Low);