diff options
| author | Olof <[email protected]> | 2024-12-27 00:35:49 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-27 00:35:49 +0100 |
| commit | 0836392219f4c47c470267c7b51b51fa730784b8 (patch) | |
| tree | 449214fa6f32e7f23a8f0fb0f446abd48ebc4e44 /examples/stm32u5 | |
| parent | 4f4740eeb25e0db607a7f700e29efd313dd1942d (diff) | |
| parent | b71696c8f54edba664e9bfe77a1d86d09d88f52c (diff) | |
Merge branch 'embassy-rs:main' into u5_adc
Diffstat (limited to 'examples/stm32u5')
| -rw-r--r-- | examples/stm32u5/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/stm32u5/src/bin/usb_hs_serial.rs | 7 | ||||
| -rw-r--r-- | examples/stm32u5/src/bin/usb_serial.rs | 7 |
3 files changed, 2 insertions, 16 deletions
diff --git a/examples/stm32u5/Cargo.toml b/examples/stm32u5/Cargo.toml index 68a17ce43..f56ee024e 100644 --- a/examples/stm32u5/Cargo.toml +++ b/examples/stm32u5/Cargo.toml | |||
| @@ -8,8 +8,8 @@ license = "MIT OR Apache-2.0" | |||
| 8 | # Change stm32u5g9zj to your chip name, if necessary. | 8 | # Change stm32u5g9zj to your chip name, if necessary. |
| 9 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32u5g9zj", "time-driver-any", "memory-x" ] } | 9 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32u5g9zj", "time-driver-any", "memory-x" ] } |
| 10 | embassy-sync = { version = "0.6.1", path = "../../embassy-sync", features = ["defmt"] } | 10 | embassy-sync = { version = "0.6.1", path = "../../embassy-sync", features = ["defmt"] } |
| 11 | embassy-executor = { version = "0.6.3", path = "../../embassy-executor", features = ["task-arena-size-32768", "arch-cortex-m", "executor-thread", "defmt"] } | 11 | embassy-executor = { version = "0.7.0", path = "../../embassy-executor", features = ["task-arena-size-32768", "arch-cortex-m", "executor-thread", "defmt"] } |
| 12 | embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } | 12 | embassy-time = { version = "0.4.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } |
| 13 | embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] } | 13 | embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] } |
| 14 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 14 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 15 | 15 | ||
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]; |
