Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion embedded-hal-bus/src/spi/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::util::AtomicCell;
/// each with its own `CS` pin.
///
/// Sharing is implemented with a [`AtomicDevice`], which consists of an `UnsafeCell` and an `AtomicBool` "locked" flag.
/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Aditionally, it is `Send`,
/// This means it has low overhead, like [`RefCellDevice`](crate::spi::RefCellDevice). Additionally, it is `Send`,
/// which allows sharing a single bus across multiple threads (interrupt priority level), like [`CriticalSectionDevice`](crate::spi::CriticalSectionDevice),
/// while not using critical sections and therefore impacting real-time performance less.
///
Expand Down
2 changes: 1 addition & 1 deletion embedded-io-adapters/src/tokio_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<T: tokio::io::AsyncWrite + Unpin + ?Sized> embedded_io_async::Write for Fro
impl<T: tokio::io::AsyncSeek + Unpin + ?Sized> embedded_io_async::Seek for FromTokio<T> {
async fn seek(&mut self, pos: embedded_io::SeekFrom) -> Result<u64, Self::Error> {
// Note: `start_seek` can return an error if there is another seek in progress.
// Therefor it is recommended to call `poll_complete` before any call to `start_seek`.
// Therefore it is recommended to call `poll_complete` before any call to `start_seek`.
poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await?;
Pin::new(&mut self.inner).start_seek(pos.into())?;
poll_fn(|cx| Pin::new(&mut self.inner).poll_complete(cx)).await
Expand Down