00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00040
00042
00043 #ifdef CONF_TM
00044 #define TM_DEFAULT_SLICE 20
00045 #endif
00046
00047
00049
00050
00051
00053
00054 #ifdef CONF_TM
00055
00056
00057 extern void* systime_tm_return;
00058 #endif
00059
00060
00062
00063
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