diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-29 10:24:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-29 10:24:25 +0000 |
| commit | 9f50f34547915e7f7b88012aba28c59ce2f9e754 (patch) | |
| tree | f42c919882876cdd34de3365385e60d94d2a9ab3 | |
| parent | 6eb46c419c9f2f071d3c80323e2c68c25b617e20 (diff) | |
| parent | f0b17675d89f87350faa8c61b491be53ef666894 (diff) | |
Merge pull request #1597 from embassy-rs/usb-missing-reexports
usb: add missing builder reexports.
| -rw-r--r-- | embassy-usb/src/class/cdc_ncm/mod.rs | 4 | ||||
| -rw-r--r-- | embassy-usb/src/lib.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/embassy-usb/src/class/cdc_ncm/mod.rs b/embassy-usb/src/class/cdc_ncm/mod.rs index d5556dd0b..fcfa0bfcd 100644 --- a/embassy-usb/src/class/cdc_ncm/mod.rs +++ b/embassy-usb/src/class/cdc_ncm/mod.rs | |||
| @@ -11,8 +11,8 @@ | |||
| 11 | //! - On Pixel 4a, it refused to work on Android 11, worked on Android 12. | 11 | //! - On Pixel 4a, it refused to work on Android 11, worked on Android 12. |
| 12 | //! - if the host's MAC address has the "locally-administered" bit set (bit 1 of first byte), | 12 | //! - if the host's MAC address has the "locally-administered" bit set (bit 1 of first byte), |
| 13 | //! it doesn't work! The "Ethernet tethering" option in settings doesn't get enabled. | 13 | //! it doesn't work! The "Ethernet tethering" option in settings doesn't get enabled. |
| 14 | //! This is due to regex spaghetti: https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-mainline-12.0.0_r84/core/res/res/values/config.xml#417 | 14 | //! This is due to regex spaghetti: <https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-mainline-12.0.0_r84/core/res/res/values/config.xml#417> |
| 15 | //! and this nonsense in the linux kernel: https://github.com/torvalds/linux/blob/c00c5e1d157bec0ef0b0b59aa5482eb8dc7e8e49/drivers/net/usb/usbnet.c#L1751-L1757 | 15 | //! and this nonsense in the linux kernel: <https://github.com/torvalds/linux/blob/c00c5e1d157bec0ef0b0b59aa5482eb8dc7e8e49/drivers/net/usb/usbnet.c#L1751-L1757> |
| 16 | 16 | ||
| 17 | use core::intrinsics::copy_nonoverlapping; | 17 | use core::intrinsics::copy_nonoverlapping; |
| 18 | use core::mem::{size_of, MaybeUninit}; | 18 | use core::mem::{size_of, MaybeUninit}; |
diff --git a/embassy-usb/src/lib.rs b/embassy-usb/src/lib.rs index d8563d59a..1180b9b66 100644 --- a/embassy-usb/src/lib.rs +++ b/embassy-usb/src/lib.rs | |||
| @@ -23,7 +23,7 @@ mod config { | |||
| 23 | use embassy_futures::select::{select, Either}; | 23 | use embassy_futures::select::{select, Either}; |
| 24 | use heapless::Vec; | 24 | use heapless::Vec; |
| 25 | 25 | ||
| 26 | pub use crate::builder::{Builder, Config}; | 26 | pub use crate::builder::{Builder, Config, FunctionBuilder, InterfaceAltBuilder, InterfaceBuilder}; |
| 27 | use crate::config::*; | 27 | use crate::config::*; |
| 28 | use crate::control::*; | 28 | use crate::control::*; |
| 29 | use crate::descriptor::*; | 29 | use crate::descriptor::*; |
