aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkalkyl <[email protected]>2024-06-04 00:53:51 +0200
committerkalkyl <[email protected]>2024-06-04 00:53:51 +0200
commit874d5f7c65f2af21e4666bf92800d304c2d9e01d (patch)
tree4c0376b5d6bc1e9964d6e3d6695fd3060f77a077 /examples
parent03d8f99aa57d71c27745972f2bcd9ba3450bd8c3 (diff)
core atomic
Diffstat (limited to 'examples')
-rw-r--r--examples/rp/src/bin/zerocopy.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rp/src/bin/zerocopy.rs b/examples/rp/src/bin/zerocopy.rs
index b5bd11512..730a3ae0c 100644
--- a/examples/rp/src/bin/zerocopy.rs
+++ b/examples/rp/src/bin/zerocopy.rs
@@ -1,6 +1,8 @@
1#![no_std] 1#![no_std]
2#![no_main] 2#![no_main]
3 3
4use core::sync::atomic::{AtomicU16, Ordering};
5
4use defmt::*; 6use defmt::*;
5use embassy_executor::Spawner; 7use embassy_executor::Spawner;
6use embassy_rp::adc::{self, Adc, Async, Config, InterruptHandler}; 8use embassy_rp::adc::{self, Adc, Async, Config, InterruptHandler};
@@ -10,7 +12,6 @@ use embassy_rp::peripherals::DMA_CH0;
10use embassy_sync::blocking_mutex::raw::NoopRawMutex; 12use embassy_sync::blocking_mutex::raw::NoopRawMutex;
11use embassy_sync::zerocopy_channel::{Channel, Receiver, Sender}; 13use embassy_sync::zerocopy_channel::{Channel, Receiver, Sender};
12use embassy_time::{Duration, Ticker, Timer}; 14use embassy_time::{Duration, Ticker, Timer};
13use portable_atomic::{AtomicU16, Ordering};
14use static_cell::StaticCell; 15use static_cell::StaticCell;
15use {defmt_rtt as _, panic_probe as _}; 16use {defmt_rtt as _, panic_probe as _};
16 17