I'm in the process of converting our FPGA -> DSP data transfers from blocking while loops to DMA reads. I *think* I've got the transfers setup correctly, but I'm not sure how to setup the ISR, and I'll explain why.
I have 4 DMA channels, all being triggered off of GPINT events on different pins. The different events indicate data is ready from different FIFOs in our FPGA. Again, I think I have the DMA channels all setup correctly to respond to those events and do the transfers correctly. I have them setup to ping pong as well.
I want to generate a completion event any time the DMA channels ping or pong. Again, I think I've got that setup correctly too.
However, I'd like to have just one "data ready" ISR that would be triggered by ANY of those DMA channels completing a transfer. The data is all logically the same, and should be handled in the same way once the DMA is completed. I don't want to create 4 ISRs that are carbon copies of each other just so that each one can be mapped one to one with a completion event. I'd prefer to have one ISR that was simply passed something like the TCC so it could determine where the data came from.
So, what I want to figure out is "How can I create a single ISR that will respond to any one of my 4 DMA completion events?" i.e. a many to one event to ISR mapping.
Is that possible? I haven't found how to do it yet. If so, how do I set that up? Is there an event mask instead of event number option for the SYS/BIOS config?
More information. We're using a 6455. SYS/BIOS 6.32.5.54. CCSv5.2. CSL for the EDMA setup, not the EDMA driver. (I could use the EDMA driver if it is the way to do this. I was just using CSL since I was already using it elsewhere.)