blob: 43c2e4ad8c78cbb3a07578a16bc2a0ea5b740ba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
global.h
Copyright (C) 2007 Colibri <colibri_dvb@lycos.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GLOBAL_H
#define GLOBAL_H
//Uncomment if you want compile with demo sound
//#define WITH_SOUND
typedef unsigned char BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
#define false 0
#define true 1
#define NULL 0
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define SPEED_30 0
#define SPEED_60 1
#define SYS_IR 0x20
#define SYS_KEY 0x40
#define SYS_TURBO 0x80
#ifndef __MAIN_C__
extern char sysInfo;
#endif /* __MAIN_C__ */
#define PCON_IDLE 0x01
#define PCON_PDOWN 0x02
void *memcpy(void *dest,void *src,int count);
int memcmp(const void * cs,const void * ct,int count);
#endif
|