Skip to content

Commit 1725a60

Browse files
committed
Disable DMA_IRQ_0n when stopping PDM peripheral
1 parent 9f4fe14 commit 1725a60

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
@@ -145,6 +145,7 @@ int PDMClass::begin(int channels, int sampleRate)
145145

146146
void PDMClass::end()
147147
{
148+
NVIC_DisableIRQ(DMA_IRQ_0n);
148149
pio_remove_program(pio, &pdm_pio_program, offset);
149150
dma_channel_abort(dmaChannel);
150151
pinMode(_clkPin, INPUT);

0 commit comments

Comments
 (0)