aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32f4/src/bin')
-rw-r--r--examples/stm32f4/src/bin/spi.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/stm32f4/src/bin/spi.rs b/examples/stm32f4/src/bin/spi.rs
index 7cf391394..f8c9997ed 100644
--- a/examples/stm32f4/src/bin/spi.rs
+++ b/examples/stm32f4/src/bin/spi.rs
@@ -18,17 +18,14 @@ use embassy_stm32::pac;
18use embassy_stm32::spi::{Config, Spi}; 18use embassy_stm32::spi::{Config, Spi};
19use embassy_stm32::time::Hertz; 19use embassy_stm32::time::Hertz;
20use embedded_hal::blocking::spi::Transfer; 20use embedded_hal::blocking::spi::Transfer;
21use embassy_stm32::dbgmcu::Dbgmcu;
21 22
22#[entry] 23#[entry]
23fn main() -> ! { 24fn main() -> ! {
24 info!("Hello World, dude!"); 25 info!("Hello World, dude!");
25 26
26 unsafe { 27 unsafe {
27 pac::DBGMCU.cr().modify(|w| { 28 Dbgmcu::enable_all();
28 w.set_dbg_sleep(true);
29 w.set_dbg_standby(true);
30 w.set_dbg_stop(true);
31 });
32 29
33 pac::RCC.ahb1enr().modify(|w| { 30 pac::RCC.ahb1enr().modify(|w| {
34 w.set_gpioaen(true); 31 w.set_gpioaen(true);