diff options
| author | Kaitlyn Kenwell <[email protected]> | 2023-12-14 13:29:26 -0500 |
|---|---|---|
| committer | Kaitlyn Kenwell <[email protected]> | 2023-12-14 13:29:26 -0500 |
| commit | 9f9f6e75bb3ef6d285ebed88a20ab57fb55f3d07 (patch) | |
| tree | 2a40c219cee9f20cd3b4e3d2b0067b0ba89c4a63 /examples/boot/application/stm32wb-dfu/src | |
| parent | cbc8ccc51e8e747fab51ac377225495cd24eb447 (diff) | |
Abstract chip reset logic, add Reset impls for cortex-m and esp32c3
Diffstat (limited to 'examples/boot/application/stm32wb-dfu/src')
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/boot/application/stm32wb-dfu/src/main.rs b/examples/boot/application/stm32wb-dfu/src/main.rs index cdac903b5..fbecbf23b 100644 --- a/examples/boot/application/stm32wb-dfu/src/main.rs +++ b/examples/boot/application/stm32wb-dfu/src/main.rs | |||
| @@ -16,7 +16,7 @@ use embassy_sync::blocking_mutex::Mutex; | |||
| 16 | use embassy_time::Duration; | 16 | use embassy_time::Duration; |
| 17 | use embassy_usb::Builder; | 17 | use embassy_usb::Builder; |
| 18 | use embassy_usb_dfu::consts::DfuAttributes; | 18 | use embassy_usb_dfu::consts::DfuAttributes; |
| 19 | use embassy_usb_dfu::{usb_dfu, Control}; | 19 | use embassy_usb_dfu::{usb_dfu, Control, ResetImmediate}; |
| 20 | use panic_reset as _; | 20 | use panic_reset as _; |
| 21 | 21 | ||
| 22 | bind_interrupts!(struct Irqs { | 22 | bind_interrupts!(struct Irqs { |
| @@ -57,7 +57,7 @@ async fn main(_spawner: Spawner) { | |||
| 57 | &mut control_buf, | 57 | &mut control_buf, |
| 58 | ); | 58 | ); |
| 59 | 59 | ||
| 60 | usb_dfu::<_, _>(&mut builder, &mut state, Duration::from_millis(2500)); | 60 | usb_dfu::<_, _, ResetImmediate>(&mut builder, &mut state, Duration::from_millis(2500)); |
| 61 | 61 | ||
| 62 | let mut dev = builder.build(); | 62 | let mut dev = builder.build(); |
| 63 | dev.run().await | 63 | dev.run().await |
