00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __sys_timeout_h__
00028 #define __sys_timeout_h__
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033
00035
00036
00037
00039 #define DEFAULT_SHUTOFF_TIME (15*60)
00040
00042
00043
00044
00046
00047 extern volatile unsigned int auto_shutoff_counter;
00048 extern unsigned int auto_shutoff_period;
00049 extern unsigned int auto_shutoff_secs;
00050 extern volatile unsigned int auto_shutoff_elapsed;
00051 extern volatile unsigned int idle_powerdown;
00052
00054
00055
00056
00058
00059 extern void shutoff_init(void);
00060 extern void shutoff_restart(void);
00061
00062 extern void autoshutoff_check(void)
00063 #ifdef CONF_RCX_COMPILER
00064 __attribute__ ((rcx_interrupt))
00065 #endif
00066 ;
00067
00068 #ifdef __cplusplus
00069 }
00070 #endif
00071
00072 #endif