[DM/DMA] DMA src and dst is wrong.

The first arg is src, then dst.
This commit is contained in:
GUI 2025-03-17 10:05:29 +08:00 committed by Rbb666
parent d5bc868d80
commit ccd79785ec
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ rt_err_t rt_dma_prep_memcpy(struct rt_dma_chan *chan,
{
rt_mutex_take(&ctrl->mutex, RT_WAITING_FOREVER);
err = ctrl->ops->prep_memcpy(chan, dma_addr_dst, dma_addr_src, len);
err = ctrl->ops->prep_memcpy(chan, dma_addr_src, dma_addr_dst, len);
rt_mutex_release(&ctrl->mutex);
}