diff options
| author | Eekle <[email protected]> | 2024-12-24 13:23:08 +0100 |
|---|---|---|
| committer | Eekle <[email protected]> | 2024-12-24 13:23:08 +0100 |
| commit | a3d35216d4649fbadd3e78fe240b736258b7befe (patch) | |
| tree | f3b09e194e919747c93ebf714e416491c875408b /examples/stm32u5 | |
| parent | 0f4b9c7451b0849857a4bf712194e847db9e5730 (diff) | |
Remove manual settings of `composite_with_iads=true`
Diffstat (limited to 'examples/stm32u5')
| -rw-r--r-- | examples/stm32u5/src/bin/usb_hs_serial.rs | 7 | ||||
| -rw-r--r-- | examples/stm32u5/src/bin/usb_serial.rs | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/examples/stm32u5/src/bin/usb_hs_serial.rs b/examples/stm32u5/src/bin/usb_hs_serial.rs index 5549e2cbb..d37e7777b 100644 --- a/examples/stm32u5/src/bin/usb_hs_serial.rs +++ b/examples/stm32u5/src/bin/usb_hs_serial.rs | |||
| @@ -59,13 +59,6 @@ async fn main(_spawner: Spawner) { | |||
| 59 | config.product = Some("USB-serial example"); | 59 | config.product = Some("USB-serial example"); |
| 60 | config.serial_number = Some("12345678"); | 60 | config.serial_number = Some("12345678"); |
| 61 | 61 | ||
| 62 | // Required for windows compatibility. | ||
| 63 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 64 | config.device_class = 0xEF; | ||
| 65 | config.device_sub_class = 0x02; | ||
| 66 | config.device_protocol = 0x01; | ||
| 67 | config.composite_with_iads = true; | ||
| 68 | |||
| 69 | // Create embassy-usb DeviceBuilder using the driver and config. | 62 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 70 | // It needs some buffers for building the descriptors. | 63 | // It needs some buffers for building the descriptors. |
| 71 | let mut config_descriptor = [0; 256]; | 64 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/stm32u5/src/bin/usb_serial.rs b/examples/stm32u5/src/bin/usb_serial.rs index 4bb1a6079..ff7f4e5be 100644 --- a/examples/stm32u5/src/bin/usb_serial.rs +++ b/examples/stm32u5/src/bin/usb_serial.rs | |||
| @@ -56,13 +56,6 @@ async fn main(_spawner: Spawner) { | |||
| 56 | config.product = Some("USB-serial example"); | 56 | config.product = Some("USB-serial example"); |
| 57 | config.serial_number = Some("12345678"); | 57 | config.serial_number = Some("12345678"); |
| 58 | 58 | ||
| 59 | // Required for windows compatibility. | ||
| 60 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 61 | config.device_class = 0xEF; | ||
| 62 | config.device_sub_class = 0x02; | ||
| 63 | config.device_protocol = 0x01; | ||
| 64 | config.composite_with_iads = true; | ||
| 65 | |||
| 66 | // Create embassy-usb DeviceBuilder using the driver and config. | 59 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 67 | // It needs some buffers for building the descriptors. | 60 | // It needs some buffers for building the descriptors. |
| 68 | let mut config_descriptor = [0; 256]; | 61 | let mut config_descriptor = [0; 256]; |
