move the iriver ifp7xx and other pnx0101 related files together in the target tree
[Rockbox.git] / firmware / target / arm / pnx0101 / iriver-ifp7xx / button-target.h
blob954a2dfe9c97dfdc97b2de0fb029217dea46e54f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Barry Wardell
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 /* Custom written for the ifp7xx */
22 #ifndef _BUTTON_TARGET_H_
23 #define _BUTTON_TARGET_H_
25 #include <stdbool.h>
26 #include "config.h"
28 #define HAS_BUTTON_HOLD
30 bool button_hold(void);
31 void button_init_device(void);
32 int button_read_device(void);
34 /* iriver IFP7XX specific button codes */
36 #define BUTTON_PLAY 0x00000001
37 #define BUTTON_SELECT 0x00000002
39 #define BUTTON_LEFT 0x00000004
40 #define BUTTON_RIGHT 0x00000008
41 #define BUTTON_UP 0x00000010
42 #define BUTTON_DOWN 0x00000020
44 #define BUTTON_MODE 0x00000040
45 #define BUTTON_EQ 0x00000080
47 #define BUTTON_MAIN (BUTTON_PLAY|BUTTON_SELECT\
48 |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_UP|BUTTON_DOWN\
49 |BUTTON_MODE|BUTTON_EQ)
51 #define BUTTON_REMOTE 0
53 #define POWEROFF_BUTTON BUTTON_PLAY
54 #define POWEROFF_COUNT 40
56 #endif /* _BUTTON_TARGET_H_ */