FS#11417 by Joe Balough: fix audio/tuner on philips hdd6330
[kugel-rb.git] / firmware / target / arm / pnx0101 / iriver-ifp7xx / button-target.h
blob0fabc65396dd053f61025f94e8bf94076d6f64bd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Barry Wardell
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 /* Custom written for the ifp7xx */
24 #ifndef _BUTTON_TARGET_H_
25 #define _BUTTON_TARGET_H_
27 #include <stdbool.h>
28 #include "config.h"
30 #define HAS_BUTTON_HOLD
32 bool button_hold(void);
33 void button_init_device(void);
34 int button_read_device(void);
36 /* iriver IFP7XX specific button codes */
38 #define BUTTON_PLAY 0x00000001
39 #define BUTTON_SELECT 0x00000002
41 #define BUTTON_LEFT 0x00000004
42 #define BUTTON_RIGHT 0x00000008
43 #define BUTTON_UP 0x00000010
44 #define BUTTON_DOWN 0x00000020
46 #define BUTTON_MODE 0x00000040
47 #define BUTTON_EQ 0x00000080
49 #define BUTTON_MAIN (BUTTON_PLAY|BUTTON_SELECT\
50 |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_UP|BUTTON_DOWN\
51 |BUTTON_MODE|BUTTON_EQ)
53 #define BUTTON_REMOTE 0
55 #define POWEROFF_BUTTON BUTTON_PLAY
56 #define POWEROFF_COUNT 40
58 #endif /* _BUTTON_TARGET_H_ */