Hi DSP gurus
I would like to build a DAT_wait for my EDMA transfer (I created a EDMA copy function similar to DAT_copy). I need DAT_wait to allow my other tasks to run while the EDMA finishes. I thought of using the EDMA callback to post a done signal in an MBX. The pseudo code is below. Is there a better way to implement DAT_wait for the DM648?
void EDMA_callback()
{
MBX_post(edma_tag, done_flag, SYS_FOREVER);
}
void EDMA_wait()
{
MBX_pend(edma_tag, &flag, 0);
}