From ed84017353c6fc9421b223ff6ec62f8d881d8098 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Mon, 17 Jan 2022 22:00:14 +0100 Subject: Fixing $(WARNING)s & explicitly declaring function prototypes --- src/c/timer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/c/timer.c') diff --git a/src/c/timer.c b/src/c/timer.c index 390e512..412e443 100644 --- a/src/c/timer.c +++ b/src/c/timer.c @@ -1,15 +1,14 @@ +#include #include #include -#include - -void add_idt_entry(size_t num,uint32_t offset); +#include uint32_t tick=0; const uint32_t TICKS_PER_SECOND=50; extern uint32_t time; uint32_t time=0; -void timer_handler() +void timer_handler(void) { tick++; if(tick==TICKS_PER_SECOND) -- cgit v1.2.3