Skip to content

Commit ae7f857

Browse files
committed
use dma DREQ values defined in dreqs/dma.h
1 parent 53cece4 commit ae7f857

File tree

1 file changed

+5
-5
lines changed
  • src/rp2_common/hardware_dma/include/hardware

1 file changed

+5
-5
lines changed

src/rp2_common/hardware_dma/include/hardware/dma.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ extern "C" {
3535
*/
3636

3737
// these are not defined in generated dreq.h
38-
#define DREQ_DMA_TIMER0 0x3b
39-
#define DREQ_DMA_TIMER1 0x3c
40-
#define DREQ_DMA_TIMER2 0x3d
41-
#define DREQ_DMA_TIMER3 0x3e
42-
#define DREQ_FORCE 0x3f
38+
#define DREQ_DMA_TIMER0 DMA_CH0_CTRL_TRIG_TREQ_SEL_VALUE_TIMER0
39+
#define DREQ_DMA_TIMER1 DMA_CH0_CTRL_TRIG_TREQ_SEL_VALUE_TIMER1
40+
#define DREQ_DMA_TIMER2 DMA_CH0_CTRL_TRIG_TREQ_SEL_VALUE_TIMER2
41+
#define DREQ_DMA_TIMER3 DMA_CH0_CTRL_TRIG_TREQ_SEL_VALUE_TIMER3
42+
#define DREQ_FORCE DMA_CH0_CTRL_TRIG_TREQ_SEL_VALUE_PERMANENT
4343

4444
// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_DMA, Enable/disable DMA assertions, type=bool, default=0, group=hardware_dma
4545
#ifndef PARAM_ASSERTIONS_ENABLED_DMA

0 commit comments

Comments
 (0)