Skip to content

Commit 59184b1

Browse files
committed
Clear device from irq_handler
1 parent dc09462 commit 59184b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#include <stdint.h>
22

33
#include "irq.h"
4+
#include "interrupt.h"
45

56
volatile unsigned int tick = 0;
67

78
void irq_handler(void)
89
{
10+
T0_INTCLR = 1; // this ack/clear the device (SP804)
911
tick++;
1012
}
1113

0 commit comments

Comments
 (0)