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/nrf52840/src/bin | |
| parent | 0f4b9c7451b0849857a4bf712194e847db9e5730 (diff) | |
Remove manual settings of `composite_with_iads=true`
Diffstat (limited to 'examples/nrf52840/src/bin')
| -rw-r--r-- | examples/nrf52840/src/bin/usb_ethernet.rs | 6 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial.rs | 7 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial_multitask.rs | 7 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial_winusb.rs | 7 |
4 files changed, 0 insertions, 27 deletions
diff --git a/examples/nrf52840/src/bin/usb_ethernet.rs b/examples/nrf52840/src/bin/usb_ethernet.rs index 88314b749..49856012d 100644 --- a/examples/nrf52840/src/bin/usb_ethernet.rs +++ b/examples/nrf52840/src/bin/usb_ethernet.rs | |||
| @@ -60,12 +60,6 @@ async fn main(spawner: Spawner) { | |||
| 60 | config.max_power = 100; | 60 | config.max_power = 100; |
| 61 | config.max_packet_size_0 = 64; | 61 | config.max_packet_size_0 = 64; |
| 62 | 62 | ||
| 63 | // Required for Windows support. | ||
| 64 | config.composite_with_iads = true; | ||
| 65 | config.device_class = 0xEF; | ||
| 66 | config.device_sub_class = 0x02; | ||
| 67 | config.device_protocol = 0x01; | ||
| 68 | |||
| 69 | // Create embassy-usb DeviceBuilder using the driver and config. | 63 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 70 | static CONFIG_DESC: StaticCell<[u8; 256]> = StaticCell::new(); | 64 | static CONFIG_DESC: StaticCell<[u8; 256]> = StaticCell::new(); |
| 71 | static BOS_DESC: StaticCell<[u8; 256]> = StaticCell::new(); | 65 | static BOS_DESC: StaticCell<[u8; 256]> = StaticCell::new(); |
diff --git a/examples/nrf52840/src/bin/usb_serial.rs b/examples/nrf52840/src/bin/usb_serial.rs index a534046d9..8d05df791 100644 --- a/examples/nrf52840/src/bin/usb_serial.rs +++ b/examples/nrf52840/src/bin/usb_serial.rs | |||
| @@ -36,13 +36,6 @@ async fn main(_spawner: Spawner) { | |||
| 36 | config.max_power = 100; | 36 | config.max_power = 100; |
| 37 | config.max_packet_size_0 = 64; | 37 | config.max_packet_size_0 = 64; |
| 38 | 38 | ||
| 39 | // Required for windows compatibility. | ||
| 40 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 41 | config.device_class = 0xEF; | ||
| 42 | config.device_sub_class = 0x02; | ||
| 43 | config.device_protocol = 0x01; | ||
| 44 | config.composite_with_iads = true; | ||
| 45 | |||
| 46 | // Create embassy-usb DeviceBuilder using the driver and config. | 39 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 47 | // It needs some buffers for building the descriptors. | 40 | // It needs some buffers for building the descriptors. |
| 48 | let mut config_descriptor = [0; 256]; | 41 | let mut config_descriptor = [0; 256]; |
diff --git a/examples/nrf52840/src/bin/usb_serial_multitask.rs b/examples/nrf52840/src/bin/usb_serial_multitask.rs index 32fc5e094..5e5b4de35 100644 --- a/examples/nrf52840/src/bin/usb_serial_multitask.rs +++ b/examples/nrf52840/src/bin/usb_serial_multitask.rs | |||
| @@ -53,13 +53,6 @@ async fn main(spawner: Spawner) { | |||
| 53 | config.max_power = 100; | 53 | config.max_power = 100; |
| 54 | config.max_packet_size_0 = 64; | 54 | config.max_packet_size_0 = 64; |
| 55 | 55 | ||
| 56 | // Required for windows compatibility. | ||
| 57 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 58 | config.device_class = 0xEF; | ||
| 59 | config.device_sub_class = 0x02; | ||
| 60 | config.device_protocol = 0x01; | ||
| 61 | config.composite_with_iads = true; | ||
| 62 | |||
| 63 | static STATE: StaticCell<State> = StaticCell::new(); | 56 | static STATE: StaticCell<State> = StaticCell::new(); |
| 64 | let state = STATE.init(State::new()); | 57 | let state = STATE.init(State::new()); |
| 65 | 58 | ||
diff --git a/examples/nrf52840/src/bin/usb_serial_winusb.rs b/examples/nrf52840/src/bin/usb_serial_winusb.rs index 0352f9c66..8a20ce673 100644 --- a/examples/nrf52840/src/bin/usb_serial_winusb.rs +++ b/examples/nrf52840/src/bin/usb_serial_winusb.rs | |||
| @@ -41,13 +41,6 @@ async fn main(_spawner: Spawner) { | |||
| 41 | config.max_power = 100; | 41 | config.max_power = 100; |
| 42 | config.max_packet_size_0 = 64; | 42 | config.max_packet_size_0 = 64; |
| 43 | 43 | ||
| 44 | // Required for windows compatibility. | ||
| 45 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | ||
| 46 | config.device_class = 0xEF; | ||
| 47 | config.device_sub_class = 0x02; | ||
| 48 | config.device_protocol = 0x01; | ||
| 49 | config.composite_with_iads = true; | ||
| 50 | |||
| 51 | // Create embassy-usb DeviceBuilder using the driver and config. | 44 | // Create embassy-usb DeviceBuilder using the driver and config. |
| 52 | // It needs some buffers for building the descriptors. | 45 | // It needs some buffers for building the descriptors. |
| 53 | let mut config_descriptor = [0; 256]; | 46 | let mut config_descriptor = [0; 256]; |
