FS#9645 - Working buttons for Fuze
Opened by Thomas Martitz (kugel.) - Monday, 15 December 2008, 00:33 GMT
Last edited by Björn Stenberg (zagor) - Wednesday, 31 December 2008, 21:03 GMT
This patch enables at least some of the buttons for the main build.
It's based on domonoky's buttons for e200v2, but does it a bit better (imho), as it's
a) only changing the afsel and dir for the pins we need for the buttons -- and this GREATLY improves reliability of the lcd, as in it's working perfectly instead of showing crazy stuff on the screen (and doing this also avoids changing lcd_update_rect to lcd_update)
b) it uses mutex instead of disabling irqs. NOTE: The lcd_mutex comes from http://www.rockbox.org/tracker/task/9623 , so apply that one too. This mutex is needed anyway, else the buttons reads are going to mess up the lcd. This combo is tested and works well (for me of course).
I decided to remove the HAVE_SCROLLWHEEL define for now, until the scrollwheel actually works. The reason is that those defines disturb creating a reduced keymap which uses up/down to browse in lists.
I also added a reduced keymap, for testing purpose. It's lousy based on the c200 keymap, and lacks some features, but it makes browsing possible (and playing music). Add it to SOURCES (and remove the regular keymap) in case you use it.
Wednesday, 31 December 2008, 21:03 GMT
Reason for closing: Accepted
Additional comments about closing: Commited in r19629.