This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am using TMS320C648 LCDK kit. I want to use 2 channels suppose 2 and 3 of EDMA CC0. I want both channels to interrupt after DMA transfer completion. But they have to execute different ISRs. But there is only one interrupt from CC0 SYS_INT_EDMA3_0_CC0_INT1 . How can I map both these channels to different ISR on DMA completion?
Thanks in advance
With Regards
Shalini
Hello!
In the similar situation I am catching EDMA interrupt with ISR of HWI type, read pending interrupts register and post actual handlers as SWIs.
Hello!
I am not that strong in terminology, but assume that callback is a function called from some place. I think it is possible, but things heavily depends on what you try to achieve. When your ISRs for both EDMA events are really short, then there is no reason to bother separating them into different HWIs and thus different ISRs. However, if you already asked to separate, we could presume they might take time to complete or one needs prioritization between them. If latter is the case, calling another function from HWI ISR does not solve the problem. Instead, if you create two SWIs for your two events, each associated with specific processing function, then HWI ISR triggered by EDMA completion will only check pending register and post SWI thread through Swi_post(). This way you may have different priorities for multiple events.
Hope this helps.