timer_tick - kernel ISR handler
#include <time.h>
The timer_tick() function needs to be installed in the clock interrupt so that the clock, timer, and timeout features of the kernel will function.
From ISR handler function the call should be:
timer_tick( CLOCK_REALTIME );
If clock_init() is supported for the
processor: clock_init(timer_tick, ...) can be used to install
the routine.
If hw_init() is supplied
for the board: hw_init(timer_tick) can be used to install the
routine as well.
If an application needs to do its own processing every clock tick, just install the applications ISR handler and have it call timer_tick(). For example, a simple round robin system can be mimiced using the following:
#include <sys.h>
void RoundRobin()
{
sched_yield();
timer_tick();
}
clock_init(RoundRobin, ...);