Jens Arnold
62a11ea9e6
Removed unnecessary #include s.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11385 a1c6a512-1295-4272-9138-f99709370657
2006-10-29 19:29:41 +00:00
Jens Arnold
85c9a05c56
H300: Don't read the button ADC as long as no button is pressed, utilising the PCF50606 accessory detect feature. Ported from X5.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11383 a1c6a512-1295-4272-9138-f99709370657
2006-10-29 13:48:57 +00:00
Jonathan Gordon
cad563b00f
move the iriver h1x0/h3x0 button driver to target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11380 a1c6a512-1295-4272-9138-f99709370657
2006-10-29 10:26:41 +00:00
Michael Sevakis
c4a0d45d36
Cleanup of new button reading code. Moved functions for enabling of scanning and the decision to scan or not to button_read_device.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11377 a1c6a512-1295-4272-9138-f99709370657
2006-10-28 23:10:45 +00:00
Marcoen Hirschberg
6c3c5fb188
cleanup ata.c a bit by moving portalplayer defines to target_tree and removing unused portalplayer and gigabeat code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11365 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 11:56:17 +00:00
Daniel Stenberg
77c915ad61
Renamed the ipod_i2c functions to the more appropriate pp_i2c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11361 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 11:24:23 +00:00
Daniel Stenberg
522ae6e39a
kill two gigabeat warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11359 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 10:51:34 +00:00
Michael Sevakis
2ede2a79e6
Put a couple x5-specific function declarations in adc-target.h where they should be.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11358 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 08:12:18 +00:00
Michael Sevakis
1d4a9c6366
Stop reading buttons if one is not down. Don't read remote keys if not plugged. Good for another few points of boost and 4fps full-screen unboosted. The button scan enabling seems stable and I've been using it without any difficulties but if the interrupts hiccup it could leave them unresponsive. Clearing the GPI0 interrupts before enabling them seems to prevent any difficulties. If there's problems there I'll just leave the remote reading bypass only and 50% of the benefits will still be realized.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11357 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 05:31:28 +00:00
Michael Sevakis
784dd78745
Moved pcf50606 stuff to target directory.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11348 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 23:24:07 +00:00
Michael Sevakis
34751f096c
Fixed implicit declaration warning.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11332 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 06:27:40 +00:00
Michael Sevakis
b26e396436
Pinched pcf50606 i2c code used in iRiver players and adapted to x5. Boost ratios down as much as 100 percent for mp3 and 50 percent for vorbis. mp3 hardly ever boosts even with eq. Scrolling much sharper. Like a whole new player. The code can be used for both iRiver and x5 by just defining macros with the appropriate ports and bit numbers for each player. Probably will have a pcf50606-coldfire.c soon.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11330 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 06:10:22 +00:00
Michael Sevakis
10363b3a81
Get rid of some OR-ing and conditional expressions in lcd driver when register values can just be saved in shorts. Touch-up to comment in asm part.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11281 a1c6a512-1295-4272-9138-f99709370657
2006-10-20 23:57:48 +00:00
Marcoen Hirschberg
1d7ebdfe26
generalise the wolfson codec code a bit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11277 a1c6a512-1295-4272-9138-f99709370657
2006-10-20 17:12:42 +00:00
Linus Nielsen Feltzing
d543bd486b
iAudio X5: USB mode working again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11261 a1c6a512-1295-4272-9138-f99709370657
2006-10-18 20:56:29 +00:00
Daniel Ankers
d8ef7c58d8
Big Sansa update: Go back to using the common crt0-pp.S. Add LCD driver. Add ADC driver (may not be needed). Fix a bug in the button driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11237 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 17:21:36 +00:00
Michael Sevakis
1102afb0b0
Disables hard dither mode on the x5 for routine drawing. Display driver automatically enables it when needed. Full screen frame rate up to 48 at normal CPU frequency from about 45 putting it about where it was when everything including the framebuffer was in IRAM due to the shorter and simpler lcd_write_data. Please advise if this works differently on any x5 as this might be considered a hack since nothing in the datasheet specifies using the chip this way. It is perfectly functional on mine.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11233 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 02:24:06 +00:00
Daniel Ankers
634f1d6b59
Fix a stupid bug (thanks to Frieder Ferlemann.) Get rid of MS-DOS line endings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11230 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 00:18:49 +00:00
Daniel Ankers
8aed608bb1
Untested first attempt at a Sansa button driver. Based on work by MrH
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11220 a1c6a512-1295-4272-9138-f99709370657
2006-10-14 12:16:29 +00:00
Daniel Ankers
d282e14d33
Untested first attempt at a Sansa button driver. Based on work by MrH
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11219 a1c6a512-1295-4272-9138-f99709370657
2006-10-14 12:14:23 +00:00
Daniel Ankers
6a4ec1414d
Oops: Sansa and H10 need crt0 included in the bootloader
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11190 a1c6a512-1295-4272-9138-f99709370657
2006-10-11 17:47:32 +00:00
Daniel Ankers
5c6f32af95
Move iPod headphone detection into target tree (FS#6131 by Robert Keevil) and fix detection on 3G iPod
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11143 a1c6a512-1295-4272-9138-f99709370657
2006-10-07 12:19:34 +00:00
Barry Wardell
d4945dc0d0
Move all iPod targets into the target tree. FS#5890
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:58:51 +00:00
Barry Wardell
c6ebfcce2c
Enable ATA poweroff option on H10 for a nice increase in battery life.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11107 a1c6a512-1295-4272-9138-f99709370657
2006-10-02 16:19:36 +00:00
Barry Wardell
b692fb11b3
Add support for H10 remote. Remote buttons have the same keymappings as their counterparts on the H10 itself, with vol-/vol+ being the same as scroll up/down.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11093 a1c6a512-1295-4272-9138-f99709370657
2006-09-29 15:59:08 +00:00
Marcoen Hirschberg
8e1e6f9b29
add the I2C driver for the Gigabeat
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11090 a1c6a512-1295-4272-9138-f99709370657
2006-09-29 10:54:01 +00:00
Marcoen Hirschberg
3496689c8e
add the ADC driver for the Gigabeat
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11089 a1c6a512-1295-4272-9138-f99709370657
2006-09-29 10:52:34 +00:00
Barry Wardell
03aa9c9fea
Apply Mike Sevakis' recent sleep/contrast fixes for the X5 LCD driver to the H10 20GB LCD driver. With this fix, sleeping the LCD on the H10 20GB now works as it should so enable it as an option to save extra battery.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11085 a1c6a512-1295-4272-9138-f99709370657
2006-09-28 12:06:56 +00:00
Michael Sevakis
f80de70df3
x5: Needed a couple tweaks to the contrast fix.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11077 a1c6a512-1295-4272-9138-f99709370657
2006-09-27 01:13:41 +00:00
Michael Sevakis
b8043fcbf9
Remote play button was still being read out with remote hold key on.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11076 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 23:35:44 +00:00
Michael Sevakis
167c754b47
Fixed FS#5800 - 'LCD-sleep awake bug' on x5. Contrast setting is now preserved after LCD sleeps.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11075 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 22:24:56 +00:00
Michael Sevakis
e636492791
Fixed remote contrast settings. Maybe'll get some build errors here.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11071 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 20:46:17 +00:00
Barry Wardell
979c23a715
Fix "Upside down" behaviour on H10. We need to flip horizontally as well as vertically and also need to flip the scroll pad up/down.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11049 a1c6a512-1295-4272-9138-f99709370657
2006-09-25 18:45:03 +00:00
Barry Wardell
5a79b4e015
Add ADC to I/O ports debug menu on H10. Fix battery level reading empty when starting up on H10. Calibrated battery for H10 20GB.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11036 a1c6a512-1295-4272-9138-f99709370657
2006-09-23 17:47:54 +00:00
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
Michael Sevakis
69b4e80f2b
x5: No more remote LCD streaks when powering off with remote active. Will not affect hot unplugging of course.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10967 a1c6a512-1295-4272-9138-f99709370657
2006-09-17 09:19:50 +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
Michael Sevakis
44e8233134
Added the power off to x5 remote play button. 3s delay seems confortable and well out of the way of the long press for playback stop.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10934 a1c6a512-1295-4272-9138-f99709370657
2006-09-12 15:56:31 +00:00
Michael Sevakis
3bee89ed44
Improved handling of the ONKEY1S interrupt. Off for the remote must be explicitly mapped now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10932 a1c6a512-1295-4272-9138-f99709370657
2006-09-12 14:20:29 +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
Michael Sevakis
c3b147598c
More PMU madness for x5-- a better, more paranoid sequence for enabling GPI0 IMHO
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10913 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 04:32:35 +00:00
Michael Sevakis
5ffd3aeb4d
A tiny change to pcf50506-x5.c. Don't know why Recorder-8MB build would have been affected by the last change. It doesn't add anything to it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10912 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 02:58:35 +00:00
Michael Sevakis
3d2e10bcbd
Added remote backlight on hold option to players with remote hold switch. Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well?
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 02:00:40 +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
Michael Sevakis
32ba11f066
Fixed the problem on the x5 of spontaneous shutdown after holding the power key for 1s.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10904 a1c6a512-1295-4272-9138-f99709370657
2006-09-09 07:49:25 +00:00
Thom Johansen
7d7b704ee2
Fix erronous label and replace mov with bx.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10901 a1c6a512-1295-4272-9138-f99709370657
2006-09-07 00:35:07 +00:00
Jens Arnold
9d2f7b5c6d
Assembler optimised memset16() for ARM, by Thom Johansen. Should speed up LCD clearing and solid rectangle drawing on colour iPods somewhat.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10900 a1c6a512-1295-4272-9138-f99709370657
2006-09-07 00:16:04 +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