Root/
1 | /*************************************************************************** |
2 | * Copyright (C) 2006 by Massimiliano Torromeo * |
3 | * massimiliano.torromeo@gmail.com * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
6 | * it under the terms of the GNU General Public License as published by * |
7 | * the Free Software Foundation; either version 2 of the License, or * |
8 | * (at your option) any later version. * |
9 | * * |
10 | * This program is distributed in the hope that it will be useful, * |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 | * GNU General Public License for more details. * |
14 | * * |
15 | * You should have received a copy of the GNU General Public License * |
16 | * along with this program; if not, write to the * |
17 | * Free Software Foundation, Inc., * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ***************************************************************************/ |
20 | |
21 | #include <linux/types.h> |
22 | |
23 | #define GP2X_CLK_FREQ 7372800 |
24 | |
25 | #define GP2X_BUTTON_UP (0) |
26 | #define GP2X_BUTTON_DOWN (4) |
27 | #define GP2X_BUTTON_LEFT (2) |
28 | #define GP2X_BUTTON_RIGHT (6) |
29 | #define GP2X_BUTTON_UPLEFT (1) |
30 | #define GP2X_BUTTON_UPRIGHT (7) |
31 | #define GP2X_BUTTON_DOWNLEFT (3) |
32 | #define GP2X_BUTTON_DOWNRIGHT (5) |
33 | #define GP2X_BUTTON_CLICK (18) |
34 | #define GP2X_BUTTON_A (12) |
35 | #define GP2X_BUTTON_B (13) |
36 | #define GP2X_BUTTON_START (8) |
37 | #define GP2X_BUTTON_SELECT (9) |
38 | #define GP2X_BUTTON_VOLUP (16) |
39 | #define GP2X_BUTTON_VOLDOWN (17) |
40 | |
41 | #ifdef GP2X_OLDSDL_FIX |
42 | #define GP2X_BUTTON_X (15) |
43 | #define GP2X_BUTTON_Y (14) |
44 | #define GP2X_BUTTON_L (11) |
45 | #define GP2X_BUTTON_R (10) |
46 | #else |
47 | #define GP2X_BUTTON_X (14) |
48 | #define GP2X_BUTTON_Y (15) |
49 | #define GP2X_BUTTON_L (10) |
50 | #define GP2X_BUTTON_R (11) |
51 | #endif |
52 | |
53 | #define FBMMSP2CTRL 0x4619 |
54 |
Branches:
install_locations
master
opkrun
packages