Class Hierarchy   Compound List   File List   Compound Members   File Members  

systime.c File Reference

system time services. More...

Functions

Variables


Detailed Description

system time services.

Author(s):
Markus L. Noga <noga@inrialpes.fr>


Function Documentation

void systime_handler (void)

system time handler for the 16bit timer OCIA irq.

this is the pulse of the system. task switcher and motor driver calls are initiated here.

void systime_init (void)

initialize system timer.

task switcher initialized to empty handler motors turned off

void systime_shutdown (void)

shutdown system timer.

will also stop task switching and motors.

void systime_set_switcher (void * switcher)

set task switcher vector.

Parameters:
switcher - the switcher

void systime_set_timeslice (unsigned char slice)

set multitasking timeslice in ms.

Parameters:
slice - the timeslice. must be at least 5ms.

Variable Documentation

volatile time_t sys_time

current system time in ms.

Warning:
This is a 32 bit value which will overflow after 49.7 days of continuous operation.

legOS-0.1.7 is released under Mozilla Public License. Original code © 1998-1999 by Markus L. Noga.