diff options
Diffstat (limited to 'embassy-usb-dfu')
| -rw-r--r-- | embassy-usb-dfu/src/application.rs | 4 | ||||
| -rw-r--r-- | embassy-usb-dfu/src/dfu.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-usb-dfu/src/application.rs b/embassy-usb-dfu/src/application.rs index 78eb2c083..1ea1a74fe 100644 --- a/embassy-usb-dfu/src/application.rs +++ b/embassy-usb-dfu/src/application.rs | |||
| @@ -6,11 +6,11 @@ use embassy_usb::driver::Driver; | |||
| 6 | use embassy_usb::{Builder, FunctionBuilder, Handler}; | 6 | use embassy_usb::{Builder, FunctionBuilder, Handler}; |
| 7 | use embedded_storage::nor_flash::NorFlash; | 7 | use embedded_storage::nor_flash::NorFlash; |
| 8 | 8 | ||
| 9 | use crate::Reset; | ||
| 9 | use crate::consts::{ | 10 | use crate::consts::{ |
| 10 | DfuAttributes, Request, State, Status, APPN_SPEC_SUBCLASS_DFU, DESC_DFU_FUNCTIONAL, DFU_PROTOCOL_RT, | 11 | APPN_SPEC_SUBCLASS_DFU, DESC_DFU_FUNCTIONAL, DFU_PROTOCOL_RT, DfuAttributes, Request, State, Status, |
| 11 | USB_CLASS_APPN_SPEC, | 12 | USB_CLASS_APPN_SPEC, |
| 12 | }; | 13 | }; |
| 13 | use crate::Reset; | ||
| 14 | 14 | ||
| 15 | /// Generic interface for a system that can signal to the bootloader that USB DFU mode is needed on the next boot. | 15 | /// Generic interface for a system that can signal to the bootloader that USB DFU mode is needed on the next boot. |
| 16 | /// | 16 | /// |
diff --git a/embassy-usb-dfu/src/dfu.rs b/embassy-usb-dfu/src/dfu.rs index 7c28d04cf..2ed4511ce 100644 --- a/embassy-usb-dfu/src/dfu.rs +++ b/embassy-usb-dfu/src/dfu.rs | |||
| @@ -5,11 +5,11 @@ use embassy_usb::driver::Driver; | |||
| 5 | use embassy_usb::{Builder, FunctionBuilder, Handler}; | 5 | use embassy_usb::{Builder, FunctionBuilder, Handler}; |
| 6 | use embedded_storage::nor_flash::{NorFlash, NorFlashErrorKind}; | 6 | use embedded_storage::nor_flash::{NorFlash, NorFlashErrorKind}; |
| 7 | 7 | ||
| 8 | use crate::Reset; | ||
| 8 | use crate::consts::{ | 9 | use crate::consts::{ |
| 9 | DfuAttributes, Request, State, Status, APPN_SPEC_SUBCLASS_DFU, DESC_DFU_FUNCTIONAL, DFU_PROTOCOL_DFU, | 10 | APPN_SPEC_SUBCLASS_DFU, DESC_DFU_FUNCTIONAL, DFU_PROTOCOL_DFU, DfuAttributes, Request, State, Status, |
| 10 | USB_CLASS_APPN_SPEC, | 11 | USB_CLASS_APPN_SPEC, |
| 11 | }; | 12 | }; |
| 12 | use crate::Reset; | ||
| 13 | 13 | ||
| 14 | /// Internal state for USB DFU | 14 | /// Internal state for USB DFU |
| 15 | pub struct Control<'d, DFU: NorFlash, STATE: NorFlash, RST: Reset, const BLOCK_SIZE: usize> { | 15 | pub struct Control<'d, DFU: NorFlash, STATE: NorFlash, RST: Reset, const BLOCK_SIZE: usize> { |
