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.

6678的GPIO中断问题



GPIO例程中,

else if (C6678_EVM==gDSP_board_type)
{
//combine all GPIO interrupts to INTC event 2
gpCGEM_regs->EVTMASK[2]= ~((1<<(CSL_GEM_GPINTN- 64))|
(1<<(CSL_GEM_GPINT8-64))|
(1<<(CSL_GEM_GPINT9-64))|
(1<<(CSL_GEM_GPINT10-64))|
(1<<(CSL_GEM_GPINT11-64))|
(1<<(CSL_GEM_GPINT12-64))|
(1<<(CSL_GEM_GPINT13-64))|
(1<<(CSL_GEM_GPINT14-64))|
(1<<(CSL_GEM_GPINT15-64)));
}

是不是表示只要把GPIO8到GPIO15设置为输入,任何一个IO有电平变化,就会产生中断,其它GPIO0到GPIO7即使设置为输入也不会产生中断。如果我只想GPIO15产生中断,该陈如下

else if (C6678_EVM==gDSP_board_type)
{
//combine all GPIO interrupts to INTC event 2
gpCGEM_regs->EVTMASK[2]= ~((1<<(CSL_GEM_GPINTN- 64))|
(1<<(CSL_GEM_GPINT15-64)));
}

即可。谢谢