projects
/
rpikern
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interrupts, timers, under construction
[rpikern]
/
src
/
timer.c
diff --git a/src/timer.c
b/src/timer.c
new file mode 100644
(file)
index 0000000..
7df21bb
--- /dev/null
+++ b/
src/timer.c
@@ -0,0
+1,10
@@
+#include "timer.h"
+#include "rpi_ioreg.h"
+#include "intr.h"
+
+volatile unsigned long num_ticks;
+
+void timer_init(void)
+{
+ enable_gpu_irq(IRQ_GPU_TIMER1);
+}