fix interrupt repeat bug.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1633 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
c9a5379a0c
commit
5b063d3030
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue