summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-10-30 09:29:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-10-30 09:29:01 +0000
commitd497bad69ab0e5b89cf4eb0184c020ad10c01705 (patch)
tree86104bf9462088bc2d768194ee966aed9eb04074
parent139f9f28e9179a881c0bdd5c6bed6790591a07cb (diff)
downloadrockbox-d497bad69ab0e5b89cf4eb0184c020ad10c01705.zip
rockbox-d497bad69ab0e5b89cf4eb0184c020ad10c01705.tar.gz
rockbox-d497bad69ab0e5b89cf4eb0184c020ad10c01705.tar.bz2
rockbox-d497bad69ab0e5b89cf4eb0184c020ad10c01705.tar.xz
remove some uneeded #ifdefs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11393 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/button.c3
-rw-r--r--firmware/export/button.h31
2 files changed, 1 insertions, 33 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index c4e013a..3ae4893 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -308,9 +308,6 @@ void button_init(void)
#ifdef TARGET_TREE
button_init_device();
-#elif CONFIG_KEYPAD == IRIVER_H100_PAD \
- || CONFIG_KEYPAD == IRIVER_H300_PAD
- button_init_device(); /* temp untill TARGET_TREE is defined */
#elif CONFIG_KEYPAD == RECORDER_PAD
/* Set PB4 and PB8 as input pins */
PBCR1 &= 0xfffc; /* PB8MD = 00 */
diff --git a/firmware/export/button.h b/firmware/export/button.h
index 18da59e..baba07f 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -72,10 +72,7 @@ void wheel_send_events(bool send);
#else
/* Target specific button codes */
-#if (CONFIG_KEYPAD == IRIVER_H100_PAD) \
- || (CONFIG_KEYPAD == IRIVER_H300_PAD)
-#include "button-target.h"
-#elif CONFIG_KEYPAD == RECORDER_PAD
+#if CONFIG_KEYPAD == RECORDER_PAD
/* Recorder specific button codes */
@@ -113,32 +110,6 @@ void wheel_send_events(bool send);
#elif CONFIG_KEYPAD == PLAYER_PAD
-/* Jukebox 6000 and Studio specific button codes */
-
- /* Main unit's buttons */
-#define BUTTON_ON 0x00000001
-#define BUTTON_STOP 0x00000002
-
-#define BUTTON_LEFT 0x00000004
-#define BUTTON_RIGHT 0x00000008
-#define BUTTON_PLAY 0x00000010
-#define BUTTON_MENU 0x00000020
-
-#define BUTTON_MAIN (BUTTON_ON|BUTTON_STOP|BUTTON_LEFT|BUTTON_RIGHT\
- |BUTTON_PLAY|BUTTON_MENU)
-
- /* Remote control's buttons */
-#define BUTTON_RC_PLAY 0x00100000
-#define BUTTON_RC_STOP 0x00080000
-
-#define BUTTON_RC_LEFT 0x00040000
-#define BUTTON_RC_RIGHT 0x00020000
-#define BUTTON_RC_VOL_UP 0x00010000
-#define BUTTON_RC_VOL_DOWN 0x00008000
-
-#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_STOP\
- |BUTTON_RC_LEFT|BUTTON_RC_RIGHT\
- |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN)
#elif CONFIG_KEYPAD == ONDIO_PAD