aboutsummaryrefslogtreecommitdiff
path: root/kernel/time/mcu/atmega2560/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/mcu/atmega2560/clock.c')
-rw-r--r--kernel/time/mcu/atmega2560/clock.c2
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;
}