mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-01 22:40:31 +00:00
fix build for ARMv6-M
This commit is contained in:
parent
a4f33b4768
commit
adee3a067d
@ -54,9 +54,15 @@ use core::{
|
|||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
ptr,
|
ptr,
|
||||||
sync::atomic::{self, AtomicUsize, Ordering},
|
sync::atomic,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(armv6m)]
|
||||||
|
use atomic_polyfill::{AtomicUsize, Ordering};
|
||||||
|
|
||||||
|
#[cfg(not(armv6m))]
|
||||||
|
use core::sync::atomic::{AtomicUsize, Ordering};
|
||||||
|
|
||||||
use crate::pool::{self, stack::Ptr, Node};
|
use crate::pool::{self, stack::Ptr, Node};
|
||||||
|
|
||||||
/// Instantiates a pool of Arc pointers as a global singleton
|
/// Instantiates a pool of Arc pointers as a global singleton
|
||||||
|
Loading…
x
Reference in New Issue
Block a user