drivers: dma: Add a wrapper function to fix build error
For MAX32657, 'MXC_DMA_EnableInt' function requires DMA instance and this causes build error. To fix this, created wrapper version of this function and update driver with it. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
This commit is contained in:
parent
2fe357a592
commit
85ef719eb2
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ static int max32_dma_config(const struct device *dev, uint32_t channel, struct d
|
|||
}
|
||||
|
||||
/* Enable interrupts for the DMA peripheral */
|
||||
ret = MXC_DMA_EnableInt(ch);
|
||||
ret = Wrap_MXC_DMA_EnableInt(cfg->regs, ch);
|
||||
if (ret != E_NO_ERROR) {
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue