From ae079c1fc5d990ba55714d4b3a51b19f96edaec4 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期四, 24 四月 2025 16:01:43 +0800 Subject: [PATCH] 改为中断来低电平触发发送当前扫描数据,3s内扫描不到的会退出,串口来55 AA 75 70 64 61 74 65,进入升级模式 --- 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