Merge pull request #2242 from lz1998/main

remove portable-atomic
This commit is contained in:
Dario Nieuwenhuis 2024-03-01 23:26:26 +00:00 committed by GitHub
commit 64890498ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -40,8 +40,7 @@ critical-section = "1.1"
document-features = "0.2.7"
# needed for riscv and avr
# remove when https://github.com/rust-lang/rust/pull/114499 lands on stable (on 1.76)
# needed for AVR
portable-atomic = { version = "1.5", optional = true }
# arch-cortex-m dependencies
@ -78,7 +77,7 @@ arch-std = ["_arch", "critical-section/std"]
## Cortex-M
arch-cortex-m = ["_arch", "dep:cortex-m"]
## RISC-V 32
arch-riscv32 = ["_arch", "dep:portable-atomic"]
arch-riscv32 = ["_arch"]
## WASM
arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"]
## AVR

View file

@ -6,9 +6,9 @@ pub use thread::*;
#[cfg(feature = "executor-thread")]
mod thread {
use core::marker::PhantomData;
use core::sync::atomic::{AtomicBool, Ordering};
pub use embassy_executor_macros::main_riscv as main;
use portable_atomic::{AtomicBool, Ordering};
use crate::{raw, Spawner};