예제 #1
0
/**
 * @brief	Open a memory copy
 * @param	none
 * @return	0 : success ; -1 : fail
 */
int CacheMng_MemCpy_open(void)
{
#if	CACHEMNG_DMA
    DRV_dmaOpen(&dmaHndl, DRV_DMA_MODE_NORMAL, 1);
#endif

    return 0;
}
예제 #2
0
파일: mem_mng.c 프로젝트: lubing521/ipnc
/**
 * @brief	Open memory copy
 * @param	none
 * @return	0 : success ; -1 : fail
 */
int MemMng_memcpy_open(void)
{
#if	MEMMNG_DMA

	DRV_dmaOpen(&dmaHndl, DRV_DMA_MODE_NORMAL, 1);

#endif

	return 0;
}
예제 #3
0
파일: drv_frameCopy.c 프로젝트: 119/ipnc
int DRV_frameCopyInit()
{
  int status;
  
  status = OSA_mutexCreate(&gDRV_frameCopyObj.lock);
  if(status!=OSA_SOK) {
    OSA_ERROR("OSA_mutexCreate()\n");
    return OSA_SOK;
  }
  
  status = DRV_dmaOpen(&gDRV_frameCopyObj.dmaHndl, DRV_DMA_MODE_NORMAL, 2);
  if(status!=OSA_SOK) {
    OSA_ERROR("DRV_dmaOpen()\n");  
    OSA_mutexDelete(&gDRV_frameCopyObj.lock);
    return status;
  }

  return status;
}