diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-12-26 02:42:54 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-12-26 03:34:05 +0100 |
| commit | 5655c6093f8938c5ba637785b8bd572345f4c42e (patch) | |
| tree | 09ce2223af9b4da982abc43b940fe1349a575496 | |
| parent | 72bb9b53a239464500ad9dc5db462bcb7917d53a (diff) | |
net: use atomic-polyfill on tcp client pool, for thumbv6m support.
| -rw-r--r-- | embassy-net/Cargo.toml | 1 | ||||
| -rw-r--r-- | embassy-net/src/tcp.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 1faf603be..357f87922 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml | |||
| @@ -45,6 +45,7 @@ stable_deref_trait = { version = "1.2.0", default-features = false } | |||
| 45 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } | 45 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } |
| 46 | atomic-pool = "1.0" | 46 | atomic-pool = "1.0" |
| 47 | embedded-nal-async = { version = "0.3.0", optional = true } | 47 | embedded-nal-async = { version = "0.3.0", optional = true } |
| 48 | atomic-polyfill = { version = "1.0" } | ||
| 48 | 49 | ||
| 49 | [dependencies.smoltcp] | 50 | [dependencies.smoltcp] |
| 50 | version = "0.8.0" | 51 | version = "0.8.0" |
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 55cbda455..0dc8da73a 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -329,8 +329,8 @@ pub mod client { | |||
| 329 | use core::cell::UnsafeCell; | 329 | use core::cell::UnsafeCell; |
| 330 | use core::mem::MaybeUninit; | 330 | use core::mem::MaybeUninit; |
| 331 | use core::ptr::NonNull; | 331 | use core::ptr::NonNull; |
| 332 | use core::sync::atomic::{AtomicBool, Ordering}; | ||
| 333 | 332 | ||
| 333 | use atomic_polyfill::{AtomicBool, Ordering}; | ||
| 334 | use embedded_nal_async::IpAddr; | 334 | use embedded_nal_async::IpAddr; |
| 335 | 335 | ||
| 336 | use super::*; | 336 | use super::*; |
