Hi,
I am trying to achieve ping-pong operation using the TI McBSP driver provided with the MCSDK.
Lets discuss TX for now:
I am trying to achieve this by calling mcbspSubmitChan twice at start of operation time (one for load ping to main transfer channel and the other to get pong buffered in the queue until first is finished), then I would like to call mcbspSubmitChan each time i get a callback to resubmit ping or pong for ping-pong flow.
If I raise a flag in the callback and call mcbspSubmitChan from a background task everything seems to work well. But if I call it from within the callback the proper flow stops and no more callbacks are called (altough i get result that frame was submitted and is pending).
What am I doing wrong?
Also, does this seem like a proper way to perform ping-pong buffering using the TI McBSP API ?
Also, I don't understang the need of mcbspControlChan with Mcbsp_IOCTL_START if calling mcbspSubmitChan starts TX automatically.
P.S. EDMA and configuration is done just like it is done in the example project.