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

@ -108,7 +108,7 @@ macro_rules! make_channel {
static mut CHANNEL: $crate::channel::Channel<$type, $size> =
$crate::channel::Channel::new();
static CHECK: ::core::sync::atomic::AtomicU8 = ::core::sync::atomic::AtomicU8::new(0);
static CHECK: $crate::portable_atomic::AtomicU8 = $crate::portable_atomic::AtomicU8::new(0);
$crate::channel::critical_section::with(|_| {
if CHECK.load(::core::sync::atomic::Ordering::Relaxed) != 0 {