Rockbox Development > New Ports
Cowon D2
shotofadds:
If you are getting the "non-aligned buffer" error, then the updated ata-nand code (post #215) has not been built in successfully. The new version does not contain that error message - but you may need to alter it slightly in order to build without errors, as andiator reported.
Sorry about this mess - I will update SVN when I get a chance, but I don't have a lot of spare time this week (aka. none at all). >:(
andiator:
I was playing with the adc code and I don't think that it causing the button problem. Yes, there is some jitter at the press or release, but it would cause a random behavior. And Yes, we still have to fix this in an extra thread.
The idea is to run a thread with sleep and waiting for() for the stabilized adc value to avoid the transition values from press to release and back
But the actual behavior is too systematic: it seems to happens only with plus and minus buttons and ONLY when you switch to the other buttons. So more investigation needed.
shotofadds:
Well, probably not a new thread but a tick task (fixed 100Hz timer) which periodically requests a new reading for each of the four ADCs and exits immediately. An ADC IRQ handler would then retrieve the new values when ready, and if they are within some abritrary level of tolerance of the last value read, make the new value available to adc_read(). That is my intention, anyway.
andiator:
For our three buttons the tick task is fine, but what about the touchpad? I don't think it's a good idea to do longer operations in timer task.
shotofadds:
I was purely talking about the ADC driver using a tick task. The touchpad is accessed through the PCF50606 (via I2C), and yes that might need some thought about how to implement it correctly. I need to check how other targets do periodic I2C polling.
Edit: This discussion would probably best be held in IRC where devs who know best about such things can comment (but I think it can wait until I've fixed the ata-nand driver and ADCs first)...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version