Tool/software: Code Composer Studio
Hi :
in ( psdk_rtos_auto_j7_06_01_00_15\pdk\packages\ti\drv\udma\dmautils\test) have some UDMA sample ,
Order of using UDMA is follow, In a CNN, I will use UDMA in many places. Do I go through the following UDMA process in every place where I use UDMA?
UdmaInitPrms_init(instId, &initPrms);
Udma_init(drvHandle, &initPrms);
UdmaChPrms_init(&chPrms, chType);
Udma_chOpen(drvHandle, chHandle, chType, &chPrms);
UdmaChTxPrms_init(&txPrms, chType);
Udma_chConfigTx(chHandle, &txPrms);
UdmaEventPrms_init(&eventPrms);
Udma_eventRegister(drvHandle, eventHandle, &eventPrms);
Udma_chEnable(chHandle);
Udma_ringQueueRaw(Udma_chGetFqRingHandle(chHandle), (uint64_t) trpdMem);
Udma_ringDequeueRaw(Udma_chGetCqRingHandle(chHandle), &pDesc);
Udma_chDisable(chHandle, UDMA_DEFAULT_CH_DISABLE_TIMEOUT);
Udma_eventUnRegister(eventHandle);
Udma_chClose(chHandle);
Udma_deinit(drvHandle);
Thanks
Shuai