请问EDMA中的EDMA channel与Transfer-completion interrupt number有对应关系吗?请问EDMA中的EDMA channel与Transfer-completion interrupt number有对应关系吗?如何区分它们?
我现在看的EDMA程序一部分代码如下:
#define TCCINTNUM 10 //Transfer-completion interrupt number
#define EDMA_CHA_TINT1 2 //EDMA channel
/* Let's disable/clear related interrupts just in case they are pending */
/* fram a previous run of the program. */
IRQ_reset(IRQ_EVT_EDMAINT);
EDMA_intDisable(TCCINTNUM);
EDMA_intClear(TCCINTNUM);
/* Lets open up the EDMA channel <b>bottom</b>ociated with timer #1. */
hEdma = EDMA_open(EDMA_CHA_TINT1, EDMA_OPEN_RESET);
我原来还以为他们之间是一一对应的,也就是相同的,现在看到这段程序之后发现不同,一个为2,一个设为10,请问各位我应该怎么设置Transfer-completion interrupt number呢? |