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.

CC2642R: 两个IO口使能外部中断,同时触发时会死机,如何设置管脚中断优先级?

Part Number: CC2642R


基于CCS10.3 ,sdk_5_10_00_48,simple_peripheral_oad_offchip_CC26X2R1_LAUNCHXL_tirtos_ccs

两个IO口使能外部中断,同时触发时会死机,我使用信号发生器,两路输出接到板子上的管脚,当两个管脚接到同一个信号上就会卡死,分开接就不会卡死,判断是同时中断导致死机,如何设置管脚中断优先级?

使用的是PIN中断。两个设置是一样的,以下为一个初始化例子

xxx_Handle= PIN_open(&xxx_State, xxx_Table);
if (PIN_registerIntCb(xxx_SIG_Handle, &xxx_CallbackFxn) != 0)
{
while(1);
}

其中

PIN_Config xxx_Table[] = {
Board_xxx | PIN_INPUT_EN | PIN_PULLDOWN | PIN_IRQ_POSEDGE, 
PIN_TERMINATE
};