Skip to content

Commit

Permalink
Fixing clippy, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-summers committed Mar 7, 2024
1 parent b0cd0c3 commit 219fcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedded-hal-bus/src/i2c/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use embedded_hal::i2c::{Error, ErrorKind, ErrorType, I2c};

/// `UnsafeCell`-based shared bus [`I2c`] implementation.
///
/// Sharing is implemented with a `UnsafeCell`. This means it has low overhead, similar to `RefCellDevice` instances, but they are `Send`.
/// Sharing is implemented with a `UnsafeCell`. This means it has low overhead, similar to [`crate::i2c::RefCellDevice`] instances, but they are `Send`.
/// so it only allows sharing across multiple threads (interrupt priority levels). When attempting
/// to preempt usage of the bus, a `AtomicError::Busy` error is returned.
///
Expand All @@ -13,7 +13,7 @@ use embedded_hal::i2c::{Error, ErrorKind, ErrorType, I2c};
/// # Examples
///
/// Assuming there is a pressure sensor with address `0x42` on the same bus as a temperature sensor
/// with address `0x20`; [`RefCellDevice`] can be used to give access to both of these sensors
/// with address `0x20`; [`AtomicDevice`] can be used to give access to both of these sensors
/// from a single `i2c` instance.
///
/// ```
Expand Down

0 comments on commit 219fcaf

Please sign in to comment.