time.h File Reference

#include "../time.h"

Include dependency graph for time.h:

Go to the source code of this file.

Defines

#define TM_DEFAULT_SLICE   20
 default multitasking timeslice

Functions

void systime_init (void)
 initialize system timer
void systime_shutdown (void)
 shutdown system timer
void systime_set_switcher (void *switcher)
 set task switcher vector
void systime_set_timeslice (unsigned char slice)
 set multitasking timeslice in ms
time_t get_system_up_time (void)

Variables

void * systime_tm_return
 return address for the task switcher


Define Documentation

#define TM_DEFAULT_SLICE   20

default multitasking timeslice

Definition at line 44 of file time.h.

Referenced by systime_init().


Function Documentation

time_t get_system_up_time ( void   ) 

void systime_init ( void   ) 

void systime_set_switcher ( void *  switcher  ) 

set task switcher vector

Parameters:
switcher the switcher

Definition at line 326 of file systime.c.

void systime_set_timeslice ( unsigned char  slice  ) 

set multitasking timeslice in ms

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

Definition at line 333 of file systime.c.

References tm_current_slice, and tm_timeslice.

void systime_shutdown ( void   ) 

shutdown system timer

will also stop task switching and motors.

Definition at line 317 of file systime.c.

References T_IER, TIER_ENABLE_OCA, TIER_ENABLE_OCB, WDT_CSR, and WDT_CSR_ENABLE.

Referenced by kmain(), and systime_init().


Variable Documentation

return address for the task switcher


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2005 by the authors.

Generated on Thu May 8 16:12:11 2008 for brickOS Kernel Developer by doxygen 1.5.5