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/rp/src | |
| 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/rp/src')
| -rw-r--r-- | examples/rp/src/bin/usb_ethernet.rs | 1 | ||||
| -rw-r--r-- | examples/rp/src/bin/usb_serial.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/examples/rp/src/bin/usb_ethernet.rs b/examples/rp/src/bin/usb_ethernet.rs index 104b25d39..66a6ed4d0 100644 --- a/examples/rp/src/bin/usb_ethernet.rs +++ b/examples/rp/src/bin/usb_ethernet.rs | |||
| @@ -73,7 +73,6 @@ async fn main(spawner: Spawner) { | |||
| 73 | &mut singleton!([0; 256])[..], | 73 | &mut singleton!([0; 256])[..], |
| 74 | &mut singleton!([0; 256])[..], | 74 | &mut singleton!([0; 256])[..], |
| 75 | &mut singleton!([0; 128])[..], | 75 | &mut singleton!([0; 128])[..], |
| 76 | None, | ||
| 77 | ); | 76 | ); |
| 78 | 77 | ||
| 79 | // Our MAC addr. | 78 | // Our MAC addr. |
diff --git a/examples/rp/src/bin/usb_serial.rs b/examples/rp/src/bin/usb_serial.rs index b7d6493b4..a991082ee 100644 --- a/examples/rp/src/bin/usb_serial.rs +++ b/examples/rp/src/bin/usb_serial.rs | |||
| @@ -53,7 +53,6 @@ async fn main(_spawner: Spawner) { | |||
| 53 | &mut config_descriptor, | 53 | &mut config_descriptor, |
| 54 | &mut bos_descriptor, | 54 | &mut bos_descriptor, |
| 55 | &mut control_buf, | 55 | &mut control_buf, |
| 56 | None, | ||
| 57 | ); | 56 | ); |
| 58 | 57 | ||
| 59 | // Create classes on the builder. | 58 | // Create classes on the builder. |
