esp32c3 support

This commit is contained in:
onsdagens 2023-09-27 21:39:35 +02:00 committed by Emil Fresk
parent 3b8d787a91
commit 2b2208e217
27 changed files with 525 additions and 60 deletions

View file

@ -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

View file

@ -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 = []

View file

@ -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>;