Skip to content

Commit 6736c86

Browse files
Use portable-atomic instead of atomic-polyfill
1 parent aad02db commit 6736c86

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

embassy-rp/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Add reset_to_usb_boot for rp235x ([#4705](https://github.com/embassy-rs/embassy/pull/4705))
1919
- Add fix #4822 in PIO onewire. Change to disable the state machine before setting y register ([#4824](https://github.com/embassy-rs/embassy/pull/4824))
2020
- Add PIO::Ws2812 color order support
21+
- Remove unused deprecated atomic-polyfill crate from Cargo.toml ([#4909](https://github.com/embassy-rs/embassy/pull/4909))
2122

2223
## 0.8.0 - 2025-08-26
2324

@@ -115,4 +116,3 @@ Small release fixing a few gnarly bugs, upgrading is strongly recommended.
115116
- rename the Channel trait to Slice and the PwmPin to PwmChannel
116117
- i2c: Fix race condition that appears on fast repeated transfers.
117118
- Add a basic "read to break" function
118-

embassy-rp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ rt = [ "rp-pac/rt" ]
4747
defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"]
4848
## Enable log support
4949
log = ["dep:log"]
50-
## Enable chrono support
50+
## Enable chrono support
5151
chrono = ["dep:chrono"]
5252

5353
## Configure the [`critical-section`](https://docs.rs/critical-section) crate to use an implementation that is safe for multicore use on rp2040.
@@ -159,7 +159,7 @@ embassy-futures = { version = "0.1.2", path = "../embassy-futures" }
159159
embassy-hal-internal = { version = "0.3.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] }
160160
embassy-embedded-hal = { version = "0.5.0", path = "../embassy-embedded-hal" }
161161
embassy-usb-driver = { version = "0.2.0", path = "../embassy-usb-driver" }
162-
atomic-polyfill = "1.0.1"
162+
portable-atomic = "1"
163163
defmt = { version = "1.0.1", optional = true }
164164
log = { version = "0.4.14", optional = true }
165165
nb = "1.1.0"

embassy-rp/src/pio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ use core::pin::Pin as FuturePin;
55
use core::sync::atomic::{Ordering, compiler_fence};
66
use core::task::{Context, Poll};
77

8-
use atomic_polyfill::{AtomicU8, AtomicU64};
98
use embassy_hal_internal::{Peri, PeripheralType};
109
use embassy_sync::waitqueue::AtomicWaker;
1110
use fixed::FixedU32;
1211
use fixed::types::extra::U8;
1312
use pio::{Program, SideSet, Wrap};
13+
use portable_atomic::{AtomicU8, AtomicU64};
1414

1515
use crate::dma::{self, Channel, Transfer, Word};
1616
use crate::gpio::{self, AnyPin, Drive, Level, Pull, SealedPin, SlewRate};

embassy-rp/src/uart/buffered.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
use core::future::Future;
33
use core::slice;
44

5-
use atomic_polyfill::AtomicU8;
65
use embassy_hal_internal::atomic_ring_buffer::RingBuffer;
6+
use portable_atomic::AtomicU8;
77

88
use super::*;
99

embassy-rp/src/uart/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ use core::future::poll_fn;
33
use core::marker::PhantomData;
44
use core::task::Poll;
55

6-
use atomic_polyfill::{AtomicU16, Ordering};
76
use embassy_futures::select::{Either, select};
87
use embassy_hal_internal::{Peri, PeripheralType};
98
use embassy_sync::waitqueue::AtomicWaker;
109
use embassy_time::{Delay, Timer};
1110
use pac::uart::regs::Uartris;
11+
use portable_atomic::{AtomicU16, Ordering};
1212

1313
use crate::clocks::clk_peri_freq;
1414
use crate::dma::{AnyChannel, Channel};

0 commit comments

Comments
 (0)