From 035ecb85c3513be2b6ab5c515db082cb7fee8f97 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 22 五月 2025 18:11:06 +0800
Subject: [PATCH] 修改bug,io改为不拉

---
 01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_dmac.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_dmac.h b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_dmac.h
index fbaede5..8a1e67d 100644
--- a/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_dmac.h
+++ b/01_SDK/modules/hal/panchip/panplat/pan1070/bsp/peripheral/inc/pan_dmac.h
@@ -420,6 +420,15 @@
 	*/
 void DMAC_StartChannel(DMA_T * dma,uint32_t ChIdx,void* Src,void* Dst,uint32_t Len);
 
+/*
+  * @brief     :continue dma channel with last configuation
+  * @param in  :where dma is the base address of dma peripheral
+  * @param in  :where ChIdx is the dma channel number.It could be 0,1
+  * @param in  :where Len is the block size number
+  * @retval    :none
+*/
+void DMAC_ContinueChannel(DMA_T * dma,uint32_t ChIdx, uint32_t Len);
+
 /**
   * @brief		Stop dma channel
   * @param		dma	Where dma is the base address of dma peripheral
@@ -428,6 +437,14 @@
 	*/
 void DMAC_StopChannel(DMA_T * dma,uint32_t ChIdx);
 
+/*
+  * @brief     :Get data block count which already transferred by dma
+  * @param in  :where dma is the base address of dma peripheral
+  * @param in  :where ChIdx is the dma channel number.It could be 0,1
+  * @retval    :Transferred data count
+*/
+uint32_t DMAC_GetXferredBlockCount(DMA_T * dma, uint32_t ChIdx);
+
 /**
   * @brief		Acquire dma free channel
   * @param		dma	Where dma is the base address of dma peripheral      

--
Gitblit v1.9.3