diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-17 22:00:14 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-17 22:00:14 +0100 |
| commit | ed84017353c6fc9421b223ff6ec62f8d881d8098 (patch) | |
| tree | 6ca1abfc7daca48010d841572d4eb16cda1b7abf /src/c/timer.c | |
| parent | 85fdaf22994ead86a43b4880cb4875094612bd72 (diff) | |
Fixing $(WARNING)s & explicitly declaring function prototypes
Diffstat (limited to 'src/c/timer.c')
| -rw-r--r-- | src/c/timer.c | 7 |
1 files changed, 3 insertions, 4 deletions
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<source/timer.h> #include<types.h> #include<asm.h> -#include<stdio.h> - -void add_idt_entry(size_t num,uint32_t offset); +#include<source/stdio.h> 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) |
