summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tatung/tpj1022/button-tpj1022.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-08-14 16:28:30 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-08-14 16:29:39 -0400
commit04fe77a4654d43bf4fe07831d25c8ab92f054b65 (patch)
tree85e5868961b42acf72d496af63c2bf8947a46ac3 /firmware/target/arm/tatung/tpj1022/button-tpj1022.c
parent786d06742a379df667b0fd14df0b2dbc045f312c (diff)
downloadrockbox-04fe77a4654d43bf4fe07831d25c8ab92f054b65.tar.gz
rockbox-04fe77a4654d43bf4fe07831d25c8ab92f054b65.zip
Remove the (very) incomplete port for the Tatung TPJ-1102
It was barely even a stub, and hasn't seen any development since 2009 Change-Id: I0aa15d9a7b90ae8c771924d9f401380d4cc0fab9
Diffstat (limited to 'firmware/target/arm/tatung/tpj1022/button-tpj1022.c')
-rw-r--r--firmware/target/arm/tatung/tpj1022/button-tpj1022.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/firmware/target/arm/tatung/tpj1022/button-tpj1022.c b/firmware/target/arm/tatung/tpj1022/button-tpj1022.c
deleted file mode 100644
index ce9d7ab24d..0000000000
--- a/firmware/target/arm/tatung/tpj1022/button-tpj1022.c
+++ /dev/null
@@ -1,49 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Robert Kukla
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#include "system.h"
23#include "button.h"
24
25bool button_hold(void)
26{
27 return (GPIOK_INPUT_VAL & 0x40) ? true : false;
28}
29
30int button_read_device(void)
31{
32 int btn = BUTTON_NONE;
33
34 if (!button_hold())
35 {
36 btn = (GPIOA_INPUT_VAL & 0xfe) ^ 0xfe;
37
38 if ((GPIOK_INPUT_VAL & 0x20) == 0) btn |= BUTTON_VOL_DOWN;
39
40 /* to be found
41 if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_MENU;
42 if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_REC;
43 if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_VOL_UP;
44 if ((GPIO?_INPUT_VAL & 0x??) == 0) btn |= BUTTON_LEFT;
45 */
46 }
47
48 return btn;
49}