Hi Guys,
Here I got quite confused about the DMA control in the epiphany side. Hope someone could help me ...
typedef struct
{
unsigned config;
unsigned inner_stride;
unsigned count;
unsigned outer_stride;
void *src_addr;
void *dst_addr;
} e_dma_desc_t;
Above is the declaration for the e_dma_desc_t.
The questions are ,
1. What does the inner & outer stride, count stands for ? If I would like to copy a char array of size 1024, how whould I set these values ?
2. How can I start the DMA transfer ? Using int e_dma_start(e_dma_desc_t *descriptor, e_dma_id_t chan) or e_dma_copy(void *dst, void *src, size_t bytes) ?
Hope some one could help me, this really bothers me !!!!
Thanks,
Richard