drivers: dma: sam0: fix macro definition
Fix the definition of DMA_SAM0_IRQ_CONNECT pre-processor directive, so that it calls DT_INST_IRQ_BY_IDX macro instead of DT_INST_IRQ_HAS_IDX macro. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
0de3a33a83
commit
ba6dc5bc25
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ DEVICE_DECLARE(dma_sam0_0);
|
|||
#define DMA_SAM0_IRQ_CONNECT(n) \
|
||||
do { \
|
||||
IRQ_CONNECT(DT_INST_IRQ_BY_IDX(0, n, irq), \
|
||||
DT_INST_IRQ_HAS_IDX(0, n, priority), \
|
||||
DT_INST_IRQ_BY_IDX(0, n, priority), \
|
||||
dma_sam0_isr, DEVICE_GET(dma_sam0_0), 0); \
|
||||
irq_enable(DT_INST_IRQ_BY_IDX(0, n, irq)); \
|
||||
} while (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue