aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l5/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-02-07 22:49:14 +0100
committerDario Nieuwenhuis <[email protected]>2023-02-08 00:17:08 +0100
commit3af991ab63d14cfad6f50d28bfb944d1895d1c70 (patch)
tree575fecf6f47fbfd7116070aff2ffd5f4e84c7cf1 /examples/stm32l5/src
parent1d841cc8ac74feacc4d231958ce2c46419ae3bda (diff)
usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers.
- Allows classes to handle vendor requests. - Allows classes to use a single handler for multiple interfaces. - Allows classes to access the other events (previously only `reset` was available).
Diffstat (limited to 'examples/stm32l5/src')
-rw-r--r--examples/stm32l5/src/bin/usb_ethernet.rs1
-rw-r--r--examples/stm32l5/src/bin/usb_hid_mouse.rs1
-rw-r--r--examples/stm32l5/src/bin/usb_serial.rs1
3 files changed, 0 insertions, 3 deletions
diff --git a/examples/stm32l5/src/bin/usb_ethernet.rs b/examples/stm32l5/src/bin/usb_ethernet.rs
index e5a46b064..98ec0e836 100644
--- a/examples/stm32l5/src/bin/usb_ethernet.rs
+++ b/examples/stm32l5/src/bin/usb_ethernet.rs
@@ -79,7 +79,6 @@ async fn main(spawner: Spawner) {
79 &mut singleton!([0; 256])[..], 79 &mut singleton!([0; 256])[..],
80 &mut singleton!([0; 256])[..], 80 &mut singleton!([0; 256])[..],
81 &mut singleton!([0; 128])[..], 81 &mut singleton!([0; 128])[..],
82 None,
83 ); 82 );
84 83
85 // Our MAC addr. 84 // Our MAC addr.
diff --git a/examples/stm32l5/src/bin/usb_hid_mouse.rs b/examples/stm32l5/src/bin/usb_hid_mouse.rs
index d38ed7496..e3bbe9d09 100644
--- a/examples/stm32l5/src/bin/usb_hid_mouse.rs
+++ b/examples/stm32l5/src/bin/usb_hid_mouse.rs
@@ -51,7 +51,6 @@ async fn main(_spawner: Spawner) {
51 &mut config_descriptor, 51 &mut config_descriptor,
52 &mut bos_descriptor, 52 &mut bos_descriptor,
53 &mut control_buf, 53 &mut control_buf,
54 None,
55 ); 54 );
56 55
57 // Create classes on the builder. 56 // Create classes on the builder.
diff --git a/examples/stm32l5/src/bin/usb_serial.rs b/examples/stm32l5/src/bin/usb_serial.rs
index 7562a4e96..66ccacb73 100644
--- a/examples/stm32l5/src/bin/usb_serial.rs
+++ b/examples/stm32l5/src/bin/usb_serial.rs
@@ -46,7 +46,6 @@ async fn main(_spawner: Spawner) {
46 &mut config_descriptor, 46 &mut config_descriptor,
47 &mut bos_descriptor, 47 &mut bos_descriptor,
48 &mut control_buf, 48 &mut control_buf,
49 None,
50 ); 49 );
51 50
52 // Create classes on the builder. 51 // Create classes on the builder.