Skip to content

Commit 321d6e9

Browse files
authored
Merge pull request #9680 from jepler/rp2-pio-background-dma-bug
clear any pending interrupt flag
2 parents a9e50e2 + d0e8030 commit 321d6e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,8 @@ bool common_hal_rp2pio_statemachine_background_write(rp2pio_statemachine_obj_t *
10961096
false);
10971097

10981098
common_hal_mcu_disable_interrupts();
1099+
// Acknowledge any previous pending interrupt
1100+
dma_hw->ints0 |= 1u << channel;
10991101
MP_STATE_PORT(background_pio)[channel] = self;
11001102
dma_hw->inte0 |= 1u << channel;
11011103
irq_set_mask_enabled(1 << DMA_IRQ_0, true);

0 commit comments

Comments
 (0)