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 * Rossz Vámos-Wentworth <rossw@jps.net> 00025 */ 00026 00027 #ifndef __sys_timeout_h__ 00028 #define __sys_timeout_h__ 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00035 // 00036 // Definitions 00037 // 00039 #define DEFAULT_SHUTOFF_TIME (15*60) 00040 00042 // 00043 // Variables 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 // Functions 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
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |