summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGUI <[email protected]>2025-03-17 10:05:29 +0800
committerRbb666 <[email protected]>2025-03-17 11:57:17 +0800
commitccd79785ec0af2e1a7b91cd4540b43b86bddac71 (patch)
tree0235e16565eeecbff95d4128b399e26f26ed9082
parentd5bc868d80d1c2f80a2331cfd921227cb8e12fb5 (diff)
[DM/DMA] DMA src and dst is wrong.
The first arg is src, then dst.
-rw-r--r--components/drivers/dma/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/dma/dma.c b/components/drivers/dma/dma.c
index 36b6ffc50a..82f8af413f 100644
--- a/components/drivers/dma/dma.c
+++ b/components/drivers/dma/dma.c
@@ -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);
}