diff options
| author | onsdagens <pawdzi-7@student.ltu.se> | 2023-09-27 21:39:35 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2023-09-27 19:50:13 +0000 |
| commit | 2b2208e217a96086696bd6f36cff2a6cd4c4ac9f (patch) | |
| tree | c17d993fd70954663c0f0ffb6b6afed5228f9714 /rtic-common | |
| parent | 3b8d787a917a7a39b28bea85ba2b3a86539e0852 (diff) | |
esp32c3 support
Diffstat (limited to 'rtic-common')
| -rw-r--r-- | rtic-common/CHANGELOG.md | 4 | ||||
| -rw-r--r-- | rtic-common/Cargo.toml | 3 | ||||
| -rw-r--r-- | rtic-common/src/wait_queue.rs | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/rtic-common/CHANGELOG.md b/rtic-common/CHANGELOG.md index f90db79..1fe270b 100644 --- a/rtic-common/CHANGELOG.md +++ b/rtic-common/CHANGELOG.md @@ -13,4 +13,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top! ### Fixed +## [v1.0.1] + +- `portable-atomic` used as a drop in replacement for `core::sync::atomic` in code and macros. `portable-atomic` imported with `default-features = false`, as we do not require CAS. + ## [v1.0.0] - 2023-05-31 diff --git a/rtic-common/Cargo.toml b/rtic-common/Cargo.toml index 1e7f98f..cd22f72 100644 --- a/rtic-common/Cargo.toml +++ b/rtic-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rtic-common" -version = "1.0.0" +version = "1.0.1" edition = "2021" authors = [ @@ -18,6 +18,7 @@ license = "MIT OR Apache-2.0" [dependencies] critical-section = "1" +portable-atomic = { version = "1", default-features = false } [features] default = [] diff --git a/rtic-common/src/wait_queue.rs b/rtic-common/src/wait_queue.rs index 4b1b0f3..ef3afe8 100644 --- a/rtic-common/src/wait_queue.rs +++ b/rtic-common/src/wait_queue.rs @@ -3,9 +3,9 @@ use core::marker::PhantomPinned; use core::pin::Pin; use core::ptr::null_mut; -use core::sync::atomic::{AtomicBool, AtomicPtr, Ordering}; use core::task::Waker; use critical_section as cs; +use portable_atomic::{AtomicBool, AtomicPtr, Ordering}; /// A helper definition of a wait queue. pub type WaitQueue = DoublyLinkedList<Waker>; |
