Commit graph

20 commits

Author SHA1 Message Date
Barry Wardell
e63e62b2a1 Detect charger connected on H10. No need to sleep(HZ) when powering off.
More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously.
Implement system_reboot() for all PP5020 devices.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
2006-09-20 23:21:59 +00:00
Barry Wardell
0b1ae73d3a Fix behaviour of "Backlight (On Hold Key)" for H10. Make sure button GPIO ports are enabled on H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10943 a1c6a512-1295-4272-9138-f99709370657
2006-09-13 23:38:16 +00:00
Barry Wardell
8ccedc98da Fix H10 bootloader build error introduced in last commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10920 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 17:59:59 +00:00
Barry Wardell
2937c504bb Make "Backlight (On hold key)" option work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10919 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 13:18:33 +00:00
Barry Wardell
24ca76ffec H10 fixes: Split LCD driver up into two drivers, one for each LCD type. Improvements to 20GB LCD driver - support for enable/disable, contrast adjustment, make the update code clearer and ~4% faster, support for flipping, support for invert. Fix CPU frequency for both models. Fix default battery capacity for 5/6GB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10910 a1c6a512-1295-4272-9138-f99709370657
2006-09-09 19:02:18 +00:00
Barry Wardell
9b1dd444b0 Fix display bugs with H10 LCDs (both 20GB and 5/6GB models). The 20GB LCD is actually a 128x160 LCD rotated 90 degrees, so we need to take account of this. The 5/6GB LCD is not rotated by 90 degrees but was treated as if it was (FS #5925, patch thanks to Thilo-Alexander Ginkel)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10886 a1c6a512-1295-4272-9138-f99709370657
2006-09-04 23:10:27 +00:00
Barry Wardell
a27c1833aa Basic support for the H10 scrollpad.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10882 a1c6a512-1295-4272-9138-f99709370657
2006-09-04 20:09:17 +00:00
Barry Wardell
e7a9ec4d13 Add backlight support for H10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10848 a1c6a512-1295-4272-9138-f99709370657
2006-09-01 17:58:47 +00:00
Barry Wardell
3d10a810ed H10 changes: power_off() now actually powers off. Fix wrong bitwise operation when disabling sound. Fix filenames when building a bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10822 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 09:59:35 +00:00
Barry Wardell
a396d7e742 Make LCD writing functions inline for ~33% performance increase. Add lcd_yuv_blit implementation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10818 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 01:27:54 +00:00
Barry Wardell
d9199d10b1 Remove sleep() from adc_scan(). It causes Rockbox to hang and isn't necessary anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10783 a1c6a512-1295-4272-9138-f99709370657
2006-08-28 10:39:24 +00:00
Barry Wardell
8269541370 Fixed silly bugs in H10 button driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10759 a1c6a512-1295-4272-9138-f99709370657
2006-08-26 15:48:17 +00:00
Barry Wardell
7c13843805 Fix lcd_update_rect() on 5/6GB H10 (thanks to Laurent Baum). Fix usb_detect() on all H10 models.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10753 a1c6a512-1295-4272-9138-f99709370657
2006-08-26 09:15:42 +00:00
Barry Wardell
a64f51e67d H10 LCD fixes. Now lcd_update_rect() works as it should. 5/6GB has different register defines than 20GB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10715 a1c6a512-1295-4272-9138-f99709370657
2006-08-23 09:14:28 +00:00
Barry Wardell
e367b05fca Move X5 ADC code to target tree. Fix power button detection on H10. New ADC
driver for H10. Thanks to Laurent Baum for all his help with this code.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10701 a1c6a512-1295-4272-9138-f99709370657
2006-08-22 20:17:09 +00:00
Barry Wardell
18cfe431d7 Fix errors when building H10 Normal build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10668 a1c6a512-1295-4272-9138-f99709370657
2006-08-20 23:05:47 +00:00
Barry Wardell
9272dfd34c Functional, but minimal LCD driver for H10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10663 a1c6a512-1295-4272-9138-f99709370657
2006-08-20 10:18:47 +00:00
Hristo Kovachev
1204136632 Some indent/c99 style cleanup by Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10524 a1c6a512-1295-4272-9138-f99709370657
2006-08-11 09:51:04 +00:00
Hristo Kovachev
9dc0e62229 Patch #5731 by Barry Wardell: more iriver h10 work. Thanks!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10521 a1c6a512-1295-4272-9138-f99709370657
2006-08-11 08:35:27 +00:00
Daniel Stenberg
86bff1cf56 Barry Wardell's initial work for the iriver H10 port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10447 a1c6a512-1295-4272-9138-f99709370657
2006-08-03 20:18:31 +00:00