YUV Dither: r12 saving was removed but stacked parameter load offset wasn't changed...
[kugel-rb.git] / firmware / target / arm / iriver / h10 / button-target.h
blobc2d7165ac0750a6587fb7745ad2555bb094010f1
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 H10 */
24 #ifndef _BUTTON_TARGET_H_
25 #define _BUTTON_TARGET_H_
27 #include <stdbool.h>
28 #include "config.h"
30 #define HAS_BUTTON_HOLD
31 #define HAS_REMOTE_BUTTON_HOLD
33 bool button_hold(void);
34 bool remote_button_hold(void);
35 void button_init_device(void);
36 int button_read_device(void);
38 /* iriver H10 specific button codes */
40 /* Main unit's buttons */
41 #define BUTTON_POWER 0x00000001
43 #define BUTTON_LEFT 0x00000002
44 #define BUTTON_RIGHT 0x00000004
46 #define BUTTON_REW 0x00000008
47 #define BUTTON_PLAY 0x00000010
48 #define BUTTON_FF 0x00000020
50 #define BUTTON_SCROLL_UP 0x00000040
51 #define BUTTON_SCROLL_DOWN 0x00000080
53 #define BUTTON_MAIN (BUTTON_POWER|BUTTON_LEFT|BUTTON_RIGHT|BUTTON_REW\
54 |BUTTON_PLAY|BUTTON_FF|BUTTON_SCROLL_UP|BUTTON_SCROLL_DOWN)
56 /* Remote control's buttons */
57 #define BUTTON_RC_REW 0x00080000
58 #define BUTTON_RC_PLAY 0x00100000
59 #define BUTTON_RC_FF 0x00200000
60 #define BUTTON_RC_VOL_UP 0x00400000
61 #define BUTTON_RC_VOL_DOWN 0x00800000
63 #define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN\
64 |BUTTON_RC_REW|BUTTON_RC_FF)
66 #define POWEROFF_BUTTON BUTTON_POWER
67 #define RC_POWEROFF_BUTTON BUTTON_RC_PLAY
68 #define POWEROFF_COUNT 10
70 #endif /* _BUTTON_TARGET_H_ */