Skip to content

Commit

Permalink
Merge pull request #661 from Tomin1/correct_pio_irq_doc
Browse files Browse the repository at this point in the history
Correct PIO::irq[01] documentation
  • Loading branch information
ithinuel authored Aug 2, 2023
2 parents 0633232 + 82fd22b commit 49c27c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2040-hal/src/pio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ impl<P: PIOExt> PIO<P> {
self.pio
}

/// This PIO0's interrupts.
/// This PIO's IRQ0 interrupt.
pub fn irq0(&self) -> Interrupt<'_, P, 0> {
Interrupt {
block: self.pio.deref(),
_phantom: core::marker::PhantomData,
}
}

/// This PIO0's interrupts.
/// This PIO's IRQ1 interrupt.
pub fn irq1(&self) -> Interrupt<'_, P, 1> {
Interrupt {
block: self.pio.deref(),
Expand Down

0 comments on commit 49c27c2

Please sign in to comment.