Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9601 - first shot at buttons for fuze in rockbox (main binary)

Attached to Project: Rockbox
Opened by Thomas Martitz (kugel.) - Tuesday, 02 December 2008, 23:23 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 24 December 2008, 06:16 GMT+2
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Release 3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This is my attempt at using isr to read the buttons in the main binary. This is my first work with IRQ at all, so I might just fail.

It doesn't work for GPIOC, and I have no idea why at all. It currently hangs on boot when I enable GPIOC_IE. It works for Power Button on GPIOB, but that doesn't necessarily mean anything, since that one is relatively easy to use without isr too.

I need some help on this one.

Note: e200v2 hackers, don't hesitate to join the fin, this does also apply for you. The work I did is to be done in the same way for you dap as well.

Please help!
   button-fuze.diff (11.1 KiB)
 firmware/target/arm/as3525/sansa-fuze/button-fuze.c   |  106 +++++++++++++++---
 firmware/target/arm/as3525/sansa-fuze/button-target.h |    3 
 firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c      |   39 ++++--
 firmware/export/as3525.h                              |   38 +++++-
 4 files changed, 153 insertions(+), 33 deletions(-)

This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Wednesday, 24 December 2008, 06:16 GMT+2
Reason for closing:  Fixed
Comment by Thomas Martitz (kugel.) - Tuesday, 02 December 2008, 23:25 GMT+2
I forgot to say: The changes to the lcd driver reverse the log of sharing DBOP/AFSEL/GPIOB/C. The buttons are read more frequently, so the LCD should change the AFSEL, not the buttons. Not to mention that I couldn't get it to work at all when I needed to switch AFSEL also.

Currently that leads to some glitches, nothing that should break buttons though.
Comment by Robert Menes (RMenes379) - Wednesday, 03 December 2008, 02:13 GMT+2
This was mistakenly listed as a bug. It's now listed as a patch.
Comment by Matt M (Chesteta) - Monday, 15 December 2008, 06:56 GMT+2
Hi; I have an e200v2 (e280v2) i cannot do much as far as programing, however I will test anything you need tested!
Comment by Thomas Martitz (kugel.) - Monday, 15 December 2008, 07:21 GMT+2
Please have a look at  FS#9639  and  FS#9645 
Comment by Matt M (Chesteta) - Monday, 15 December 2008, 09:19 GMT+2
I tried running the fuze patches you made [Thomas Martitz] but changed where they would patch to the e200v2 directory... had some errors and no luck. the original e200v2 patch works like a charm though :) no scroll wheel tho...
Comment by Thomas Martitz (kugel.) - Wednesday, 24 December 2008, 06:13 GMT+2
I think this can be closed, all further work should happen in http://www.rockbox.org/tracker/task/9645

Loading...