Mercurial > lcfOS
comparison cos/kernel/timer.c @ 25:d3c4bf3720a3
Beginning of multitasking
author | windel |
---|---|
date | Tue, 27 Dec 2011 13:31:38 +0100 |
parents | d8627924d40d |
children | 47b7df514243 |
comparison
equal
deleted
inserted
replaced
24:d8627924d40d | 25:d3c4bf3720a3 |
---|---|
3 static uint64_t ticks = 0; | 3 static uint64_t ticks = 0; |
4 | 4 |
5 void timerDriverUpdate() | 5 void timerDriverUpdate() |
6 { | 6 { |
7 ticks++; | 7 ticks++; |
8 task_scheduler(); | |
8 } | 9 } |
9 | 10 |
10 uint64_t getTimeMS() | 11 uint64_t getTimeMS() |
11 { | 12 { |
12 return 55*ticks; | 13 return 55*ticks; |