stm32: fix example
This commit is contained in:
parent
12bd3c5ea5
commit
dea09876e0
@ -16,7 +16,7 @@ use embassy_stm32::hal::prelude::*;
|
|||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
|
||||||
let p = stm32f4xx_hal::stm32::Peripherals::take().unwrap();
|
let p = embassy_stm32::pac::Peripherals::take().unwrap();
|
||||||
|
|
||||||
p.DBGMCU.cr.modify(|_, w| {
|
p.DBGMCU.cr.modify(|_, w| {
|
||||||
w.dbg_sleep().set_bit();
|
w.dbg_sleep().set_bit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user