Rockbox Development > Starting Development and Compiling
How does charger detection get to the WPS?
yapper:
On the 2G iPod, the charger connection doesn't appear to be detected. It was (still is?) a problem on the 4G (FS#5826 - no "charger status" in iPod 4g Gray) too.
I've worked out the GPIO inputs to monitor to detect external power, but I don't know what mechanism is used to pass this info to the WPS to allow the charger status to be displayed.
Can someone offer some pointers?
mcuelenaere:
Try firmware/target/arm/ipod/power-ipod.c
yapper:
Thanks for that. I've now got charger detection showing on the 2G WPS.
I also had to change config-ipod1g2g.h to #define CONFIG_CHARGING, but I'm not sure if CHARGING_MONITOR or CHARGING_SIMPLE is also required. Currently I'm using CHARGING_MONITOR.
What I can't find is a way to detect 'charging in progress' - again any pointers welcomed! :)
mcuelenaere:
--- Quote from: yapper on August 17, 2008, 11:11:08 AM ---...
What I can't find is a way to detect 'charging in progress' - again any pointers welcomed! :)
--- End quote ---
Did you already try 'bool charging_state(void)' in the same file?
BTW if you get it working, don't forget to post a patch in the Flyspray tracker so it can be committed to SVN.
yapper:
--- Quote from: mcuelenaere on August 17, 2008, 11:13:23 AM ---Did you already try 'bool charging_state(void)' in the same file?
--- End quote ---
Yes - I can force the 'charging' indication to appear on the WPS.
GPIOB bits 6 and 7, and GPIOC bit 7 all seem to indicate charger connected, but I can't see which GPIO bit indicates 'charging'.
--- Quote from: mcuelenaere on August 17, 2008, 11:13:23 AM ---BTW if you get it working, don't forget to post a patch in the Flyspray tracker so it can be committed to SVN.
--- End quote ---
Sure - I will.
Navigation
[0] Message Index
[#] Next page
Go to full version