summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-08-31 23:17:47 +0200
committerRichard Braun <rbraun@sceen.net>2017-08-31 23:17:47 +0200
commitbf9ea21a402d3e006edce6d87ca7b0a16adbe3f0 (patch)
treefe14fbcbc38e4e686408c2a0a255b7d83662d515 /kern
parent406a8a1aeec188fde53050ea9b58fb2bcff9a2d0 (diff)
Make the low resolution clock frequency configurable
Diffstat (limited to 'kern')
-rw-r--r--kern/clock.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/kern/clock.h b/kern/clock.h
index 30db0a82..fa48a477 100644
--- a/kern/clock.h
+++ b/kern/clock.h
@@ -31,12 +31,10 @@
/*
* Clock frequency.
- *
- * TODO Clock frequency selection.
*/
-#define CLOCK_FREQ 200
+#define CLOCK_FREQ X15_CLOCK_FREQ
-#if (1000 % CLOCK_FREQ) != 0
+#if (CLOCK_FREQ < 100) || (CLOCK_FREQ > 1000) || (1000 % CLOCK_FREQ) != 0
#error "invalid clock frequency"
#endif /* (1000 % CLOCK_FREQ) != 0 */