00001 00006 /* 00007 * The contents of this file are subject to the Mozilla Public License 00008 * Version 1.0 (the "License"); you may not use this file except in 00009 * compliance with the License. You may obtain a copy of the License 00010 * at http://www.mozilla.org/MPL/ 00011 * 00012 * Software distributed under the License is distributed on an "AS IS" 00013 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00014 * the License for the specific language governing rights and 00015 * limitations under the License. 00016 * 00017 * The Original Code is legOS code, released October 17, 1999. 00018 * 00019 * The Initial Developer of the Original Code is Markus L. Noga. 00020 * Portions created by Markus L. Noga are Copyright (C) 1999 00021 * Markus L. Noga. All Rights Reserved. 00022 * 00023 * Contributor(s): Markus L. Noga <markus@noga.de> 00024 */ 00025 00026 #ifndef __sys_time_h__ 00027 #define __sys_time_h__ 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 #include "../time.h" 00034 00035 #ifdef CONF_TIME 00036 00038 // 00039 // Definitions 00040 // 00042 00043 #ifdef CONF_TM 00044 #define TM_DEFAULT_SLICE 20 00045 #endif 00046 00047 00049 // 00050 // Global variables 00051 // 00053 00054 #ifdef CONF_TM 00055 00056 // 00057 extern void* systime_tm_return; 00058 #endif 00059 00060 00062 // 00063 // Functions 00064 // 00066 00068 00071 void systime_init(void); 00072 00074 // 00075 void systime_shutdown(void); 00076 00077 #ifdef CONF_TM 00078 00079 // 00080 void systime_set_switcher(void* switcher); 00081 00083 // 00084 void systime_set_timeslice(unsigned char slice); 00085 #endif // CONF_TM 00086 00087 time_t get_system_up_time(void); 00088 #endif // CONF_TIME 00089 00090 #ifdef __cplusplus 00091 } 00092 #endif 00093 00094 #endif // __sys_time_h__ 00095
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |