diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-02-07 22:49:14 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-02-08 00:17:08 +0100 |
| commit | 3af991ab63d14cfad6f50d28bfb944d1895d1c70 (patch) | |
| tree | 575fecf6f47fbfd7116070aff2ffd5f4e84c7cf1 /examples/stm32f4/src/bin | |
| parent | 1d841cc8ac74feacc4d231958ce2c46419ae3bda (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/stm32f4/src/bin')
| -rw-r--r-- | examples/stm32f4/src/bin/usb_ethernet.rs | 1 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_serial.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/examples/stm32f4/src/bin/usb_ethernet.rs b/examples/stm32f4/src/bin/usb_ethernet.rs index cf2885ae5..4a16aac07 100644 --- a/examples/stm32f4/src/bin/usb_ethernet.rs +++ b/examples/stm32f4/src/bin/usb_ethernet.rs | |||
| @@ -82,7 +82,6 @@ async fn main(spawner: Spawner) { | |||
| 82 | &mut singleton!([0; 256])[..], | 82 | &mut singleton!([0; 256])[..], |
| 83 | &mut singleton!([0; 256])[..], | 83 | &mut singleton!([0; 256])[..], |
| 84 | &mut singleton!([0; 128])[..], | 84 | &mut singleton!([0; 128])[..], |
| 85 | None, | ||
| 86 | ); | 85 | ); |
| 87 | 86 | ||
| 88 | // Our MAC addr. | 87 | // Our MAC addr. |
diff --git a/examples/stm32f4/src/bin/usb_serial.rs b/examples/stm32f4/src/bin/usb_serial.rs index 014647762..baabc1a2d 100644 --- a/examples/stm32f4/src/bin/usb_serial.rs +++ b/examples/stm32f4/src/bin/usb_serial.rs | |||
| @@ -57,7 +57,6 @@ async fn main(_spawner: Spawner) { | |||
| 57 | &mut config_descriptor, | 57 | &mut config_descriptor, |
| 58 | &mut bos_descriptor, | 58 | &mut bos_descriptor, |
| 59 | &mut control_buf, | 59 | &mut control_buf, |
| 60 | None, | ||
| 61 | ); | 60 | ); |
| 62 | 61 | ||
| 63 | // Create classes on the builder. | 62 | // Create classes on the builder. |
