diff options
| author | benjaminschlegel87 <[email protected]> | 2025-07-25 20:39:40 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-25 20:39:40 +0200 |
| commit | dbc1818acd69e2e15ac574356c9b07cb717df441 (patch) | |
| tree | 05e6360c1946183b524a1ce82268547fe4bbcfd0 /examples/rp | |
| parent | adb728009ceba095d2190038ff698aaee08907a9 (diff) | |
| parent | 996974e313fa5ec2c7c2d9dd0998fab244c0a180 (diff) | |
Merge branch 'embassy-rs:main' into stm32_adc_v3_hw_oversampling_support
Diffstat (limited to 'examples/rp')
| -rw-r--r-- | examples/rp/Cargo.toml | 22 | ||||
| -rw-r--r-- | examples/rp/src/bin/usb_raw_bulk.rs | 4 | ||||
| -rw-r--r-- | examples/rp/src/bin/usb_webusb.rs | 4 |
3 files changed, 12 insertions, 18 deletions
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml index c8a132a5e..eefd69315 100644 --- a/examples/rp/Cargo.toml +++ b/examples/rp/Cargo.toml | |||
| @@ -6,18 +6,18 @@ license = "MIT OR Apache-2.0" | |||
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | [dependencies] | 8 | [dependencies] |
| 9 | embassy-embedded-hal = { version = "0.3.0", path = "../../embassy-embedded-hal", features = ["defmt"] } | 9 | embassy-embedded-hal = { version = "0.3.1", path = "../../embassy-embedded-hal", features = ["defmt"] } |
| 10 | embassy-sync = { version = "0.7.0", path = "../../embassy-sync", features = ["defmt"] } | 10 | embassy-sync = { version = "0.7.0", path = "../../embassy-sync", features = ["defmt"] } |
| 11 | embassy-executor = { version = "0.7.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "executor-interrupt", "defmt"] } | 11 | embassy-executor = { version = "0.7.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "executor-interrupt", "defmt"] } |
| 12 | embassy-time = { version = "0.4.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } | 12 | embassy-time = { version = "0.4.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } |
| 13 | embassy-rp = { version = "0.4.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp2040"] } | 13 | embassy-rp = { version = "0.6.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp2040"] } |
| 14 | embassy-usb = { version = "0.4.0", path = "../../embassy-usb", features = ["defmt"] } | 14 | embassy-usb = { version = "0.5.0", path = "../../embassy-usb", features = ["defmt"] } |
| 15 | embassy-net = { version = "0.7.0", path = "../../embassy-net", features = ["defmt", "icmp", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns", "proto-ipv4", "proto-ipv6", "multicast"] } | 15 | embassy-net = { version = "0.7.0", path = "../../embassy-net", features = ["defmt", "icmp", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns", "proto-ipv4", "proto-ipv6", "multicast"] } |
| 16 | embassy-net-wiznet = { version = "0.2.0", path = "../../embassy-net-wiznet", features = ["defmt"] } | 16 | embassy-net-wiznet = { version = "0.2.0", path = "../../embassy-net-wiznet", features = ["defmt"] } |
| 17 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 17 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 18 | embassy-usb-logger = { version = "0.4.0", path = "../../embassy-usb-logger" } | 18 | embassy-usb-logger = { version = "0.5.0", path = "../../embassy-usb-logger" } |
| 19 | cyw43 = { version = "0.3.0", path = "../../cyw43", features = ["defmt", "firmware-logs"] } | 19 | cyw43 = { version = "0.4.0", path = "../../cyw43", features = ["defmt", "firmware-logs"] } |
| 20 | cyw43-pio = { version = "0.4.0", path = "../../cyw43-pio", features = ["defmt"] } | 20 | cyw43-pio = { version = "0.5.1", path = "../../cyw43-pio", features = ["defmt"] } |
| 21 | 21 | ||
| 22 | defmt = "1.0.1" | 22 | defmt = "1.0.1" |
| 23 | defmt-rtt = "1.0.0" | 23 | defmt-rtt = "1.0.0" |
| @@ -58,11 +58,5 @@ rand = { version = "0.9.0", default-features = false } | |||
| 58 | embedded-sdmmc = "0.7.0" | 58 | embedded-sdmmc = "0.7.0" |
| 59 | 59 | ||
| 60 | [profile.release] | 60 | [profile.release] |
| 61 | debug = 2 | 61 | # Enable generation of debug symbols even on release builds |
| 62 | lto = true | 62 | debug = true |
| 63 | opt-level = 'z' | ||
| 64 | |||
| 65 | [profile.dev] | ||
| 66 | debug = 2 | ||
| 67 | lto = true | ||
| 68 | opt-level = "z" | ||
diff --git a/examples/rp/src/bin/usb_raw_bulk.rs b/examples/rp/src/bin/usb_raw_bulk.rs index 103269791..0747901d1 100644 --- a/examples/rp/src/bin/usb_raw_bulk.rs +++ b/examples/rp/src/bin/usb_raw_bulk.rs | |||
| @@ -96,8 +96,8 @@ async fn main(_spawner: Spawner) { | |||
| 96 | let mut function = builder.function(0xFF, 0, 0); | 96 | let mut function = builder.function(0xFF, 0, 0); |
| 97 | let mut interface = function.interface(); | 97 | let mut interface = function.interface(); |
| 98 | let mut alt = interface.alt_setting(0xFF, 0, 0, None); | 98 | let mut alt = interface.alt_setting(0xFF, 0, 0, None); |
| 99 | let mut read_ep = alt.endpoint_bulk_out(64); | 99 | let mut read_ep = alt.endpoint_bulk_out(None, 64); |
| 100 | let mut write_ep = alt.endpoint_bulk_in(64); | 100 | let mut write_ep = alt.endpoint_bulk_in(None, 64); |
| 101 | drop(function); | 101 | drop(function); |
| 102 | 102 | ||
| 103 | // Build the builder. | 103 | // Build the builder. |
diff --git a/examples/rp/src/bin/usb_webusb.rs b/examples/rp/src/bin/usb_webusb.rs index a5dc94d5b..5cecb92f0 100644 --- a/examples/rp/src/bin/usb_webusb.rs +++ b/examples/rp/src/bin/usb_webusb.rs | |||
| @@ -125,8 +125,8 @@ impl<'d, D: Driver<'d>> WebEndpoints<'d, D> { | |||
| 125 | let mut iface = func.interface(); | 125 | let mut iface = func.interface(); |
| 126 | let mut alt = iface.alt_setting(0xff, 0x00, 0x00, None); | 126 | let mut alt = iface.alt_setting(0xff, 0x00, 0x00, None); |
| 127 | 127 | ||
| 128 | let write_ep = alt.endpoint_bulk_in(config.max_packet_size); | 128 | let write_ep = alt.endpoint_bulk_in(None, config.max_packet_size); |
| 129 | let read_ep = alt.endpoint_bulk_out(config.max_packet_size); | 129 | let read_ep = alt.endpoint_bulk_out(None, config.max_packet_size); |
| 130 | 130 | ||
| 131 | WebEndpoints { write_ep, read_ep } | 131 | WebEndpoints { write_ep, read_ep } |
| 132 | } | 132 | } |
