diff options
author | Jakob Odersky <jodersky@gmail.com> | 2014-03-17 16:50:15 +0100 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2014-03-17 16:53:46 +0100 |
commit | 2500120f64db83fc682f38a83f7f9e03ed8a5123 (patch) | |
tree | 4b9c2086c9d5dde0a89b4968db05e3b52aaa1e65 /kernel/time/mcu/atmega2560/clock.c | |
parent | 01c10b2eadbcd09b6ac34ab80cac1b65c302152e (diff) | |
download | mux-2500120f64db83fc682f38a83f7f9e03ed8a5123.tar.gz mux-2500120f64db83fc682f38a83f7f9e03ed8a5123.tar.bz2 mux-2500120f64db83fc682f38a83f7f9e03ed8a5123.zip |
add spin-locks
Diffstat (limited to 'kernel/time/mcu/atmega2560/clock.c')
-rw-r--r-- | kernel/time/mcu/atmega2560/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/mcu/atmega2560/clock.c b/kernel/time/mcu/atmega2560/clock.c index 6821456..95622dc 100644 --- a/kernel/time/mcu/atmega2560/clock.c +++ b/kernel/time/mcu/atmega2560/clock.c @@ -16,7 +16,7 @@ void clock_init(int ms, void (*tick)()) { unsigned long int fcpu = (unsigned long int) F_CPU; unsigned long int hz = 1000l / ((unsigned long int) ms); - unsigned long int hz_counter = fcpu / (1024 * (hz)) - 1; + unsigned long int hz_counter = fcpu / (1024l * (hz)) - 1; OCR3A = hz_counter; on_tick = tick; } |