/* * file idmalib/src/idmacpy.c * brief IDMA (CorePac Internal Direct Memory Access) bytes copy * from array source to destination array in Level 1 memory model * author * date */ #include "idmalib.h" void idmacpy( void *dst, \ void *src, \ Uint16 nbBytes){ CSL_IDMA_IDMA1CONFIG idmaChan1Config; /* IDMA channel 1 configuration and enable */ idmaChan1Config.source = src; idmaChan1Config.destn = dst; idmaChan1Config.intEnable = 1; /* enable IRQ on completion (IDMA_INT1) */ idmaChan1Config.priority = IDMA_PRI_0; /* arbitration between CPU and DMA (0=highest priority) */ idmaChan1Config.count = nbBytes; /* waits and returns after requested block transfer is complete */ CSL_IDMA_chan1TransferData (&idmaChan1Config, TRUE); }