time.h File Reference

Internal Interface: system time functions. More...

#include "../time.h"
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TM_DEFAULT_SLICE   20
 default multitasking timeslice More...
 

Functions

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

Variables

void * systime_tm_return
 return address for the task switcher More...
 

Detailed Description

Internal Interface: system time functions.

Author
Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de

Definition in file time.h.

Macro Definition 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
switcherthe switcher

Definition at line 326 of file systime.c.

References tm_switcher_vector.

void systime_set_timeslice ( unsigned char  slice)

set multitasking timeslice in ms

Parameters
slicethe 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

void* systime_tm_return

return address for the task switcher


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

Generated on Sun Jun 29 2014 23:27:00 for brickOS Kernel Developer by doxygen 1.8.7