We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7164e commit b02eaa0Copy full SHA for b02eaa0
src/rp2_common/hardware_dma/dma.c
@@ -75,7 +75,7 @@ void dma_channel_cleanup(uint channel) {
75
// Disable CHAIN_TO, and disable channel, so that it ignores any further triggers
76
hw_write_masked( &dma_hw->ch[channel].al1_ctrl, (channel << DMA_CH0_CTRL_TRIG_CHAIN_TO_LSB) | (0u << DMA_CH0_CTRL_TRIG_EN_LSB), DMA_CH0_CTRL_TRIG_CHAIN_TO_BITS | DMA_CH0_CTRL_TRIG_EN_BITS );
77
// disable IRQs first as abort can cause spurious IRQs
78
- for(int i=0; i < NUM_DMA_IRQS; i++) {
+ for(uint i=0; i < NUM_DMA_IRQS; i++) {
79
dma_irqn_set_channel_enabled(i, channel, false);
80
}
81
dma_channel_abort(channel);
0 commit comments