## NAME

timer_tick - kernel ISR handler

## SYNOPSIS

#include <time.h>

void timer_tick( clockid_t clockid );

## DESCRIPTION

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 );

## EXAMPLES

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, ...);

## SEE ALSO

clock_init(), hw_init()

#### Home page (Kernel)

## < Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2018 >