summaryrefslogtreecommitdiff
path: root/firmware/src/os/pit.h
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-04 01:38:04 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-04 01:38:04 +0000
commitf796b3e49ad707d65282bf4211d1e7f2094c1283 (patch)
tree44572502f5ec3287a14fa2fe8795c3b7941faaa1 /firmware/src/os/pit.h
parent0d69fadb7169769d9e429450c17a68bac2cce852 (diff)
- first working tested version if system_irq demux
- fix minor issues with PIT timer code - make new led blinkcode implementation work git-svn-id: https://svn.openpcd.org:2342/trunk@257 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/os/pit.h')
-rw-r--r--firmware/src/os/pit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/src/os/pit.h b/firmware/src/os/pit.h
index e941aeb..4a25cc1 100644
--- a/firmware/src/os/pit.h
+++ b/firmware/src/os/pit.h
@@ -3,6 +3,8 @@
#include <sys/types.h>
+#define HZ 100
+
/* This API (but not the code) is modelled after the Linux API */
struct timer_list {
@@ -12,7 +14,7 @@ struct timer_list {
void *data;
};
-extern unsigned long jiffies;
+extern volatile unsigned long jiffies;
extern void timer_add(struct timer_list *timer);
extern int timer_del(struct timer_list *timer);
personal git repositories of Harald Welte. Your mileage may vary