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/stm32f4/src/bin | |
| parent | 0f4b9c7451b0849857a4bf712194e847db9e5730 (diff) | |
Remove manual settings of `composite_with_iads=true`
Diffstat (limited to 'examples/stm32f4/src/bin')
| -rw-r--r-- | examples/stm32f4/src/bin/usb_ethernet.rs | 6 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_hid_keyboard.rs | 7 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_hid_mouse.rs | 7 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_raw.rs | 7 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_serial.rs | 7 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/usb_uac_speaker.rs | 7 |
6 files changed, 0 insertions, 41 deletions
diff --git a/examples/stm32f4/src/bin/usb_ethernet.rs b/examples/stm32f4/src/bin/usb_ethernet.rs index a9504ec04..322cb90c7 100644 --- a/examples/stm32f4/src/bin/usb_ethernet.rs +++ b/examples/stm32f4/src/bin/usb_ethernet.rs | |||
| @@ -93,12 +93,6 @@ async fn main(spawner: Spawner) { | |||
| 93 | config.max_power = 100; | 93 | config.max_power = 100; |
| 94 | config.max_packet_size_0 = 64; | 94 | config.max_packet_size_0 = 64; |
| 95 | 95 | ||
| 96 | // Required for Windows support. | ||
| 97 | config.composite_with_iads = true; | ||
| 98 | config.device_class = 0xEF; | ||
| 99 | config.device_sub_class = 0x02; | ||
| 100 | config.device_protocol = 0x01; | ||
| 101 | |||
| 102 | // Create embassy-usb DeviceBuilder using the driver and config. | 96 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 103 | static CONFIG_DESC: StaticCell<[u8; 256]> = StaticCell::new(); | 97 | static CONFIG_DESC: StaticCell<[u8; 256]> = StaticCell::new(); |
| 104 | static BOS_DESC: StaticCell<[u8; 256]> = StaticCell::new(); | 98 | static BOS_DESC: StaticCell<[u8; 256]> = StaticCell::new(); |
diff --git a/examples/stm32f4/src/bin/usb_hid_keyboard.rs b/examples/stm32f4/src/bin/usb_hid_keyboard.rs index 1270995c4..d6b4a9bc9 100644 --- a/examples/stm32f4/src/bin/usb_hid_keyboard.rs +++ b/examples/stm32f4/src/bin/usb_hid_keyboard.rs | |||
| @@ -71,13 +71,6 @@ async fn main(_spawner: Spawner) { | |||
| 71 | config.max_power = 100; | 71 | config.max_power = 100; |
| 72 | config.max_packet_size_0 = 64; | 72 | config.max_packet_size_0 = 64; |
| 73 | 73 | ||
| 74 | // Required for windows compatibility. | ||
| 75 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 76 | config.device_class = 0xEF; | ||
| 77 | config.device_sub_class = 0x02; | ||
| 78 | config.device_protocol = 0x01; | ||
| 79 | config.composite_with_iads = true; | ||
| 80 | |||
| 81 | // Create embassy-usb DeviceBuilder using the driver and config. | 74 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 82 | // It needs some buffers for building the descriptors. | 75 | // It needs some buffers for building the descriptors. |
| 83 | let mut config_descriptor = [0; 256]; | 76 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/stm32f4/src/bin/usb_hid_mouse.rs b/examples/stm32f4/src/bin/usb_hid_mouse.rs index 45136f965..badb65e98 100644 --- a/examples/stm32f4/src/bin/usb_hid_mouse.rs +++ b/examples/stm32f4/src/bin/usb_hid_mouse.rs | |||
| @@ -66,13 +66,6 @@ async fn main(_spawner: Spawner) { | |||
| 66 | config.product = Some("HID mouse example"); | 66 | config.product = Some("HID mouse example"); |
| 67 | config.serial_number = Some("12345678"); | 67 | config.serial_number = Some("12345678"); |
| 68 | 68 | ||
| 69 | // Required for windows compatibility. | ||
| 70 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 71 | config.device_class = 0xEF; | ||
| 72 | config.device_sub_class = 0x02; | ||
| 73 | config.device_protocol = 0x01; | ||
| 74 | config.composite_with_iads = true; | ||
| 75 | |||
| 76 | // Create embassy-usb DeviceBuilder using the driver and config. | 69 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 77 | // It needs some buffers for building the descriptors. | 70 | // It needs some buffers for building the descriptors. |
| 78 | let mut config_descriptor = [0; 256]; | 71 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/stm32f4/src/bin/usb_raw.rs b/examples/stm32f4/src/bin/usb_raw.rs index b2d706208..bbbcc082b 100644 --- a/examples/stm32f4/src/bin/usb_raw.rs +++ b/examples/stm32f4/src/bin/usb_raw.rs | |||
| @@ -119,13 +119,6 @@ async fn main(_spawner: Spawner) { | |||
| 119 | config.product = Some("USB-raw example"); | 119 | config.product = Some("USB-raw example"); |
| 120 | config.serial_number = Some("12345678"); | 120 | config.serial_number = Some("12345678"); |
| 121 | 121 | ||
| 122 | // Required for windows compatibility. | ||
| 123 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 124 | config.device_class = 0xEF; | ||
| 125 | config.device_sub_class = 0x02; | ||
| 126 | config.device_protocol = 0x01; | ||
| 127 | config.composite_with_iads = true; | ||
| 128 | |||
| 129 | // Create embassy-usb DeviceBuilder using the driver and config. | 122 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 130 | // It needs some buffers for building the descriptors. | 123 | // It needs some buffers for building the descriptors. |
| 131 | let mut config_descriptor = [0; 256]; | 124 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/stm32f4/src/bin/usb_serial.rs b/examples/stm32f4/src/bin/usb_serial.rs index 328b5effe..e62b2d8d6 100644 --- a/examples/stm32f4/src/bin/usb_serial.rs +++ b/examples/stm32f4/src/bin/usb_serial.rs | |||
| @@ -66,13 +66,6 @@ async fn main(_spawner: Spawner) { | |||
| 66 | config.product = Some("USB-serial example"); | 66 | config.product = Some("USB-serial example"); |
| 67 | config.serial_number = Some("12345678"); | 67 | config.serial_number = Some("12345678"); |
| 68 | 68 | ||
| 69 | // Required for windows compatibility. | ||
| 70 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 71 | config.device_class = 0xEF; | ||
| 72 | config.device_sub_class = 0x02; | ||
| 73 | config.device_protocol = 0x01; | ||
| 74 | config.composite_with_iads = true; | ||
| 75 | |||
| 76 | // Create embassy-usb DeviceBuilder using the driver and config. | 69 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 77 | // It needs some buffers for building the descriptors. | 70 | // It needs some buffers for building the descriptors. |
| 78 | let mut config_descriptor = [0; 256]; | 71 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/stm32f4/src/bin/usb_uac_speaker.rs b/examples/stm32f4/src/bin/usb_uac_speaker.rs index e22e07e63..654bec498 100644 --- a/examples/stm32f4/src/bin/usb_uac_speaker.rs +++ b/examples/stm32f4/src/bin/usb_uac_speaker.rs | |||
| @@ -315,13 +315,6 @@ async fn main(spawner: Spawner) { | |||
| 315 | config.product = Some("USB-audio-speaker example"); | 315 | config.product = Some("USB-audio-speaker example"); |
| 316 | config.serial_number = Some("12345678"); | 316 | config.serial_number = Some("12345678"); |
| 317 | 317 | ||
| 318 | // Required for windows compatibility. | ||
| 319 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 320 | config.device_class = 0xEF; | ||
| 321 | config.device_sub_class = 0x02; | ||
| 322 | config.device_protocol = 0x01; | ||
| 323 | config.composite_with_iads = true; | ||
| 324 | |||
| 325 | let mut builder = embassy_usb::Builder::new( | 318 | let mut builder = embassy_usb::Builder::new( |
| 326 | usb_driver, | 319 | usb_driver, |
| 327 | config, | 320 | config, |
