timeout.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
* Rossz Vámos-Wentworth <rossw@jps.net>
25
*/
26
27
#ifndef __sys_timeout_h__
28
#define __sys_timeout_h__
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
35
//
36
// Definitions
37
//
39
#define DEFAULT_SHUTOFF_TIME (15*60)
40
42
//
43
// Variables
44
//
46
47
extern
volatile
unsigned
int
auto_shutoff_counter
;
48
extern
unsigned
int
auto_shutoff_period
;
49
extern
unsigned
int
auto_shutoff_secs
;
50
extern
volatile
unsigned
int
auto_shutoff_elapsed
;
51
extern
volatile
unsigned
int
idle_powerdown
;
52
54
//
55
// Functions
56
//
58
59
extern
void
shutoff_init
(
void
);
60
extern
void
shutoff_restart
(
void
);
61
62
extern
void
autoshutoff_check
(
void
)
63
#ifdef CONF_RCX_COMPILER
64
__attribute__ ((rcx_interrupt))
65
#endif
66
;
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
auto_shutoff_secs
unsigned int auto_shutoff_secs
shutoff_restart
void shutoff_restart(void)
idle_powerdown
volatile unsigned int idle_powerdown
auto_shutoff_elapsed
volatile unsigned int auto_shutoff_elapsed
auto_shutoff_period
unsigned int auto_shutoff_period
autoshutoff_check
void autoshutoff_check(void)
shutoff_init
void shutoff_init(void)
auto_shutoff_counter
volatile unsigned int auto_shutoff_counter
brickOS
is released under the
Mozilla Public License
.
Original code copyright 1998-2005 by the authors.
Generated for brickOS Kernel Developer by
1.8.16