This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于Cppi_open()使用疑问



在Cppi_open()函数使用说明中:this function can be called any number of times but the CPDMA memory-mapped registers are configured once

我的部分代码如下

首先打开QMSS_CPDMA

Cppi_CpDmaInitCfg           cpdmaCfg;

memset ((Void *) &cpdmaCfg, 0, sizeof (Cppi_CpDmaInitCfg));

cpdmaCfg.dmaNum = Cppi_CpDma_QMSS_CPDMA;

cppiHnd = (Cppi_Handle) Cppi_open (&cpdmaCfg);

如果随后需要打开PASS_CPDMA,代码如下,是否可行呢?

memset (&cpdmaCfg, 0, sizeof (Cppi_CpDmaInitCfg));

cpdmaCfg.dmaNum     = Cppi_CpDma_PASS_CPDMA; 

cpdmaCfg.writeFifoDepth = 32;

gCpdmaHnd = Cppi_open (&cpdmaCfg))