stm32: fix example

This commit is contained in:
xoviat 2021-04-06 14:17:29 -05:00
parent 12bd3c5ea5
commit dea09876e0

View File

@ -16,7 +16,7 @@ use embassy_stm32::hal::prelude::*;
fn main() -> ! {
info!("Hello World!");
let p = stm32f4xx_hal::stm32::Peripherals::take().unwrap();
let p = embassy_stm32::pac::Peripherals::take().unwrap();
p.DBGMCU.cr.modify(|_, w| {
w.dbg_sleep().set_bit();