time.h
Go to the documentation of this file.
1
6/*
7 * The contents of this file are subject to the Mozilla Public License
8 * Version 1.0 (the "License"); you may not use this file except in
9 * compliance with the License. You may obtain a copy of the License
10 * at http://www.mozilla.org/MPL/
11 *
12 * Software distributed under the License is distributed on an "AS IS"
13 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14 * the License for the specific language governing rights and
15 * limitations under the License.
16 *
17 * The Original Code is legOS code, released October 17, 1999.
18 *
19 * The Initial Developer of the Original Code is Markus L. Noga.
20 * Portions created by Markus L. Noga are Copyright (C) 1999
21 * Markus L. Noga. All Rights Reserved.
22 *
23 * Contributor(s): Markus L. Noga <markus@noga.de>
24 */
25
26#ifndef __sys_time_h__
27#define __sys_time_h__
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "../time.h"
34
35#ifdef CONF_TIME
36
38//
39// Definitions
40//
42
43#ifdef CONF_TM
44#define TM_DEFAULT_SLICE 20
45#endif
46
47
49//
50// Global variables
51//
53
54#ifdef CONF_TM
56//
57extern void* systime_tm_return;
58#endif
59
60
62//
63// Functions
64//
66
68
71void systime_init(void);
72
74//
75void systime_shutdown(void);
76
77#ifdef CONF_TM
79//
80void systime_set_switcher(void* switcher);
81
83//
84void systime_set_timeslice(unsigned char slice);
85#endif // CONF_TM
86
88#endif // CONF_TIME
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif // __sys_time_h__
95
void * systime_tm_return
return address for the task switcher
time_t get_system_up_time(void)
void systime_init(void)
initialize system timer
Definition systime.c:270
void systime_set_switcher(void *switcher)
set task switcher vector
Definition systime.c:326
void systime_set_timeslice(unsigned char slice)
set multitasking timeslice in ms
Definition systime.c:333
void systime_shutdown(void)
shutdown system timer
Definition systime.c:317
unsigned long time_t
time type
Definition time.h:50

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