diff options
| author | Miguel <m.i@gmx.at> | 2018-10-01 23:22:03 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-01 23:22:03 +0200 |
| commit | a455cd5af26bf8731e7c981a9421b16ab34dae6f (patch) | |
| tree | 140b184bf306cef258ba6e7965a78b3eecb598b9 /driver/timer.c | |
| parent | b518f39803eaaf0b25b95baf951b12ef4d5a727e (diff) | |
fukkin scheduler
Diffstat (limited to 'driver/timer.c')
| -rw-r--r-- | driver/timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/timer.c b/driver/timer.c index 6f0977c..1a97ad8 100644 --- a/driver/timer.c +++ b/driver/timer.c @@ -161,7 +161,7 @@ uint64_t timer_init() uint64_t epoch_time=get_rtc_time(); task_system_clock_start=epoch_time*100; // since pit ticks 100 times a second - asm_pit_rate_10ms(); //tick at 100hz + asm_pit_rate_50ms(); //tick at 100hz interrupt_register(INTERRUPT_PIT_TIMER,&timer_interrupt); @@ -170,10 +170,10 @@ uint64_t timer_init() uint64_t timer_get_ms() { - return (asm_pit_get_ticks()+task_system_clock_start)*10; + return (asm_pit_get_ticks()+task_system_clock_start)*50; } uint64_t timer_get_uptime_ms() { - return asm_pit_get_ticks()*10; + return asm_pit_get_ticks()*50; } |
