Skip to content

Commit d26ca9b

Browse files
authored
Merge pull request #350 from pennam/pdm_irq_stop
RP2040: PDM: Disable DMA_IRQ_0n when stopping PDM peripheral
2 parents 5fdf4c7 + 1725a60 commit d26ca9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/PDM/src/rp2040/PDM.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ int PDMClass::begin(int channels, int sampleRate)
148148

149149
void PDMClass::end()
150150
{
151+
NVIC_DisableIRQ(DMA_IRQ_0n);
151152
pio_remove_program(pio, &pdm_pio_program, offset);
152153
dma_channel_abort(dmaChannel);
153154
pinMode(_clkPin, INPUT);

0 commit comments

Comments
 (0)