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.

为什么GPIIO下降沿中断不能关闭????



程序不方便贴上来,流程是这样的:

PB1设为下降沿中断,

在第一次中断(第一次下降沿)到来后关闭中断,处理我的其他程序,这之间如果有中断的话(第二次下降沿),不会响应。

其他程序处理完后,使能中断,这时会立刻响应刚才的第二次下降沿中断。

按理说第二次中断应该直接被忽略了啊,为什么使能中断后还会响应?

使能中断用的IntEnable(GPIOB);

关闭中断用的IntDisable(GPIOB);