Skip to content

Commit

Permalink
Update comment in example
Browse files Browse the repository at this point in the history
  • Loading branch information
nilclass committed Jul 12, 2023
1 parent da99eeb commit 4f3e7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rp2040-hal/examples/adc_fifo_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn main() -> ! {
let timer = hal::Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);

// NOTE: in a real-world program, instead of calling `wait` now, you would probably:
// 1. Enable one of the DMA interrupts for the channel (e.g. `dma.ch0.listen_irq0()`)
// 1. Enable one of the DMA interrupts for the channel (e.g. `dma.ch0.enable_irq0()`)
// 2. Set up a handler for the respective `DMA_IRQ_*` interrupt
// 3. Call `wait` only within that interrupt, which will be fired once the transfer is complete.

Expand Down

0 comments on commit 4f3e7d8

Please sign in to comment.