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
 

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
 

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

◆ TM_DEFAULT_SLICE

#define TM_DEFAULT_SLICE   20

default multitasking timeslice

Definition at line 44 of file time.h.

Function Documentation

◆ get_system_up_time()

time_t get_system_up_time ( void  )

◆ systime_init()

◆ systime_set_switcher()

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.

◆ systime_set_timeslice()

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.

◆ systime_shutdown()

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, and WDT_CSR.

Referenced by systime_init().

Variable Documentation

◆ systime_tm_return

void* systime_tm_return
extern

return address for the task switcher


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

Generated for brickOS Kernel Developer by doxygen 1.9.8