diff options
| author | Dion Dokter <[email protected]> | 2023-10-20 14:17:55 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2023-10-20 14:17:55 +0200 |
| commit | 5b3f75dc726afaf21b6c957b88f8eeb0c9ae322c (patch) | |
| tree | c2b2920f63d83e32dd7f3f2ef18c64d73b997557 /examples/std | |
| parent | 6f2995cd4c70a2b6c977f553a2d5efcd8216bba7 (diff) | |
| parent | 88ada521461031b7241b09e40aa56f4e64827967 (diff) | |
Merge branch 'master' into center-align
Diffstat (limited to 'examples/std')
| -rw-r--r-- | examples/std/Cargo.toml | 8 | ||||
| -rw-r--r-- | examples/std/src/bin/net_ppp.rs | 2 | ||||
| -rw-r--r-- | examples/std/src/bin/tcp_accept.rs | 2 | ||||
| -rw-r--r-- | examples/std/src/bin/tick.rs | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index e54f36980..a5f4c8713 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml | |||
| @@ -7,12 +7,12 @@ license = "MIT OR Apache-2.0" | |||
| 7 | [dependencies] | 7 | [dependencies] |
| 8 | embassy-sync = { version = "0.3.0", path = "../../embassy-sync", features = ["log"] } | 8 | embassy-sync = { version = "0.3.0", path = "../../embassy-sync", features = ["log"] } |
| 9 | embassy-executor = { version = "0.3.0", path = "../../embassy-executor", features = ["arch-std", "executor-thread", "log", "nightly", "integrated-timers"] } | 9 | embassy-executor = { version = "0.3.0", path = "../../embassy-executor", features = ["arch-std", "executor-thread", "log", "nightly", "integrated-timers"] } |
| 10 | embassy-time = { version = "0.1.3", path = "../../embassy-time", features = ["log", "std", "nightly"] } | 10 | embassy-time = { version = "0.1.5", path = "../../embassy-time", features = ["log", "std", "nightly"] } |
| 11 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features=[ "std", "nightly", "log", "medium-ethernet", "medium-ip", "tcp", "udp", "dns", "dhcpv4", "proto-ipv6"] } | 11 | embassy-net = { version = "0.2.0", path = "../../embassy-net", features=[ "std", "nightly", "log", "medium-ethernet", "medium-ip", "tcp", "udp", "dns", "dhcpv4", "proto-ipv6"] } |
| 12 | embassy-net-tuntap = { version = "0.1.0", path = "../../embassy-net-tuntap" } | 12 | embassy-net-tuntap = { version = "0.1.0", path = "../../embassy-net-tuntap" } |
| 13 | embassy-net-ppp = { version = "0.1.0", path = "../../embassy-net-ppp", features = ["log"]} | 13 | embassy-net-ppp = { version = "0.1.0", path = "../../embassy-net-ppp", features = ["log"]} |
| 14 | embedded-io-async = { version = "0.5.0" } | 14 | embedded-io-async = { version = "0.6.0" } |
| 15 | embedded-io-adapters = { version = "0.5.0", features = ["futures-03"] } | 15 | embedded-io-adapters = { version = "0.6.0", features = ["futures-03"] } |
| 16 | critical-section = { version = "1.1", features = ["std"] } | 16 | critical-section = { version = "1.1", features = ["std"] } |
| 17 | smoltcp = { version = "0.10.0", features = ["dns-max-server-count-4"] } | 17 | smoltcp = { version = "0.10.0", features = ["dns-max-server-count-4"] } |
| 18 | 18 | ||
diff --git a/examples/std/src/bin/net_ppp.rs b/examples/std/src/bin/net_ppp.rs index 9cf6e19df..9ea07b29a 100644 --- a/examples/std/src/bin/net_ppp.rs +++ b/examples/std/src/bin/net_ppp.rs | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | //! nc 192.168.7.10 1234 | 8 | //! nc 192.168.7.10 1234 |
| 9 | 9 | ||
| 10 | #![feature(type_alias_impl_trait)] | 10 | #![feature(type_alias_impl_trait)] |
| 11 | #![feature(async_fn_in_trait, impl_trait_projections)] | 11 | #![feature(async_fn_in_trait)] |
| 12 | 12 | ||
| 13 | #[path = "../serial_port.rs"] | 13 | #[path = "../serial_port.rs"] |
| 14 | mod serial_port; | 14 | mod serial_port; |
diff --git a/examples/std/src/bin/tcp_accept.rs b/examples/std/src/bin/tcp_accept.rs index 199e4c9ec..79fa375cd 100644 --- a/examples/std/src/bin/tcp_accept.rs +++ b/examples/std/src/bin/tcp_accept.rs | |||
| @@ -100,7 +100,7 @@ async fn main_task(spawner: Spawner) { | |||
| 100 | return; | 100 | return; |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | Timer::after(Duration::from_millis(500)).await; | 103 | Timer::after_millis(500).await; |
| 104 | } | 104 | } |
| 105 | info!("Closing the connection"); | 105 | info!("Closing the connection"); |
| 106 | socket.abort(); | 106 | socket.abort(); |
diff --git a/examples/std/src/bin/tick.rs b/examples/std/src/bin/tick.rs index b9de9d873..a3f99067e 100644 --- a/examples/std/src/bin/tick.rs +++ b/examples/std/src/bin/tick.rs | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | #![feature(type_alias_impl_trait)] | 1 | #![feature(type_alias_impl_trait)] |
| 2 | 2 | ||
| 3 | use embassy_executor::Spawner; | 3 | use embassy_executor::Spawner; |
| 4 | use embassy_time::{Duration, Timer}; | 4 | use embassy_time::Timer; |
| 5 | use log::*; | 5 | use log::*; |
| 6 | 6 | ||
| 7 | #[embassy_executor::task] | 7 | #[embassy_executor::task] |
| 8 | async fn run() { | 8 | async fn run() { |
| 9 | loop { | 9 | loop { |
| 10 | info!("tick"); | 10 | info!("tick"); |
| 11 | Timer::after(Duration::from_secs(1)).await; | 11 | Timer::after_secs(1).await; |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 | ||
