提交 5b063d30 编写于 作者: wuyangyong's avatar wuyangyong

fix interrupt repeat bug.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1633 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 c9a5379a
......@@ -151,14 +151,15 @@ void rt_hw_trap_irq()
if (intstat == INTGLOBAL) return;
/* clear pending register */
ClearPending(1 << intstat);
/* get interrupt service routine */
isr_func = isr_table[intstat];
/* turn to interrupt service routine */
isr_func(intstat);
/* clear pending register */
/* note: must be the last, if not, may repeat*/
ClearPending(1 << intstat);
}
void rt_hw_trap_fiq()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册