Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage committed Nov 25, 2024
1 parent 82dca2f commit 19d7327
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions hal/src/peripherals/eic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ pub trait ChId {
const ID: usize;
}

/// Marker struct that represents an EXTINT channel capable of doing async operations.
/// Marker struct that represents an EXTINT channel capable of doing async
/// operations.
#[cfg(feature = "async")]
pub enum EicFuture {}

Expand Down Expand Up @@ -90,8 +91,8 @@ pub struct Channel<Id: ChId, F = NoneT> {
}

impl<Id: ChId, F> Channel<Id, F> {
/// Assign a pin to this [`Channel`], and turn it into an [`ExtInt`], which is capable of sensing
/// state changes on the pin.
/// Assign a pin to this [`Channel`], and turn it into an [`ExtInt`], which
/// is capable of sensing state changes on the pin.
pub fn with_pin<P: EicPin<ChId = Id>>(self, pin: P) -> ExtInt<P, Id, F> {
ExtInt::new(pin, self)
}
Expand All @@ -115,7 +116,9 @@ impl<Id: ChId, F> Channel<Id, F> {
}
}

/// External Interrupt Controller. Use [`split`](Self::split) to split the struct into individual channels, whcih can be used to create [`ExtInt`]s.
/// External Interrupt Controller. Use [`split`](Self::split) to split the
/// struct into individual channels, which can then be used to create
/// [`ExtInt`]s, by calling [`Channel::with_pin`].
pub struct Eic<I = NoneT> {
eic: pac::Eic,
_irqs: PhantomData<I>,
Expand Down

0 comments on commit 19d7327

Please sign in to comment.