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.

C6678 EDMA interrupt



在EDMA传输完成中断的设置,用CSL库设置中断控制器的做法如下:

cphnd = CSL_CPINTC_open(0);

CSL_CPINTC_disableAllHostInterrupt(cphnd);

CSL_CPINTC_mapSystemIntrToChannel(cphnd, cp_event, 0);

CSL_CPINTC_enableSysInterrupt(cphnd, cp_event);

CSL_CPINTC_enableHostInterrupt(cphnd,hostIntr);

CSL_CPINTC_enableAllHostInterrupt(cphnd);

其实这几句话的意思就是

无效所有主中断

系统中断到主中断通道映射,

使能相应系统中断

使能相应住中断,

使能所有主中断。

可是我用直接写寄存器的做法,设置完之后,中断产生不了,不知何故,我也跟踪了CSL库的汇编代码,设置的地址是一样的。