summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-09-20 08:10:43 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-09-20 08:10:43 +0000
commit57945b125d7f467d222796920fb1b6cf4e90f802 (patch)
tree28ed7db21187e687fdac12d5e9bc4fefab1631ef /firmware/drivers/button.c
parent995d24ca2c6ff784a42cabaeef9f1329060d1642 (diff)
downloadrockbox-57945b125d7f467d222796920fb1b6cf4e90f802.zip
rockbox-57945b125d7f467d222796920fb1b6cf4e90f802.tar.gz
rockbox-57945b125d7f467d222796920fb1b6cf4e90f802.tar.bz2
rockbox-57945b125d7f467d222796920fb1b6cf4e90f802.tar.xz
Removed the Neo code. Nobody is interested in it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5096 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 25cdd3d..263dce4 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -385,42 +385,6 @@ static int button_read(void)
return btn;
}
-#elif defined(HAVE_NEO_KEYPAD)
-static bool mStation = false;
-void button_init(void)
-{
- /* set port pins as input */
- PAIOR &= ~0x4000; /* PA14 for stop button */
-
- queue_init(&button_queue);
- lastbtn = 0;
- tick_add_task(button_tick);
-
- reset_poweroff_timer();
-}
-int button_read(void)
-{
- int btn=BUTTON_NONE;
-
- btn|=((~PCDR)&0xFF);
-
- /* mStation does not have a stop button and this floods the button queue
- with stops if used on a mStation */
- if (!mStation)
- btn|=((~(PADR>>6))&0x100);
-
- return btn;
-}
-
-/* This function adds a button press event to the button queue, and this
- really isn't anything Neo-specific but might be subject for adding to
- the generic button driver */
-int button_add(unsigned int button)
-{
- queue_post(&button_queue,button,NULL);
- return 1;
-}
-
#elif defined HAVE_ONDIO_KEYPAD
/*