aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-dfu
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-10-06 22:56:31 +0200
committerDario Nieuwenhuis <[email protected]>2025-10-06 23:19:53 +0200
commit8730a013c395cf0bf4c2fa8eeb7f138288103039 (patch)
tree39eca5fbc4570bd0129c9a291f134de5dab98820 /embassy-usb-dfu
parentabc8e450f936567ad42cb34b5d2a7941b206aa5d (diff)
Rustfmt for edition 2024.
Diffstat (limited to 'embassy-usb-dfu')
-rw-r--r--embassy-usb-dfu/src/application.rs4
-rw-r--r--embassy-usb-dfu/src/dfu.rs4
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;
6use embassy_usb::{Builder, FunctionBuilder, Handler}; 6use embassy_usb::{Builder, FunctionBuilder, Handler};
7use embedded_storage::nor_flash::NorFlash; 7use embedded_storage::nor_flash::NorFlash;
8 8
9use crate::Reset;
9use crate::consts::{ 10use 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};
13use 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;
5use embassy_usb::{Builder, FunctionBuilder, Handler}; 5use embassy_usb::{Builder, FunctionBuilder, Handler};
6use embedded_storage::nor_flash::{NorFlash, NorFlashErrorKind}; 6use embedded_storage::nor_flash::{NorFlash, NorFlashErrorKind};
7 7
8use crate::Reset;
8use crate::consts::{ 9use 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};
12use crate::Reset;
13 13
14/// Internal state for USB DFU 14/// Internal state for USB DFU
15pub struct Control<'d, DFU: NorFlash, STATE: NorFlash, RST: Reset, const BLOCK_SIZE: usize> { 15pub struct Control<'d, DFU: NorFlash, STATE: NorFlash, RST: Reset, const BLOCK_SIZE: usize> {