Commit graph

97 commits

Author SHA1 Message Date
Rani Hod
c9f59e6f75 Accepted FS #5772 by Michael Sevakis
1. X5 lcd sleep
2. #define HAVE_LCD_ENABLE
3. add "backlight (on hold switch)" setting, adapted from FS #5735

Note that the while(1) yield ==> asm("halt") part is NOT commited here,
I prefer it would be discussed separately.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10489 a1c6a512-1295-4272-9138-f99709370657
2006-08-08 22:03:56 +00:00
Linus Nielsen Feltzing
d17d08c268 LCD remote support for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10352 a1c6a512-1295-4272-9138-f99709370657
2006-07-28 12:41:13 +00:00
Linus Nielsen Feltzing
38719f87cb Remote backlight is in the target tree for X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10351 a1c6a512-1295-4272-9138-f99709370657
2006-07-28 11:06:28 +00:00
Linus Nielsen Feltzing
f18f9a8061 Patch FS#5712 by Michael Sevakis - X5 Backlight brightness improvement/fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10322 a1c6a512-1295-4272-9138-f99709370657
2006-07-25 15:21:31 +00:00
Rani Hod
24a4bb3d22 double fault.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10305 a1c6a512-1295-4272-9138-f99709370657
2006-07-23 22:39:06 +00:00
Rani Hod
94e297f930 oops
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10304 a1c6a512-1295-4272-9138-f99709370657
2006-07-23 22:26:30 +00:00
Rani Hod
c657763a23 Accepted FS #5474 by yours truly.
Save your settings; CONFIG_BLOCK_VERSION is increased.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10303 a1c6a512-1295-4272-9138-f99709370657
2006-07-23 22:18:32 +00:00
Jens Arnold
0dd1f8ec11 Work-in-progress rework of charging status reading & display: * Changed several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
2006-06-06 22:23:52 +00:00
Peter D'Hoye
45975987b2 code police
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9996 a1c6a512-1295-4272-9138-f99709370657
2006-05-27 09:27:22 +00:00
Peter D'Hoye
171b5ff207 H300: add a small delay between lcd enable and backlight on. Avoids a flash at backlight on when using dark backgrounds. (fix for bug 4764)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9815 a1c6a512-1295-4272-9138-f99709370657
2006-04-26 19:26:01 +00:00
Hristo Kovachev
8c15138008 Patch #4934 by Ralf Herz: Fixes
1) Backlight stays on when set to always off (at least on the iPods (signed/unsigned problem))
2) Buttons not working when the backlight is set to always off and turned on the "first keypress enables backlight only"


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9396 a1c6a512-1295-4272-9138-f99709370657
2006-04-01 12:20:23 +00:00
Jens Arnold
e9da65356d Ooops, iPod 3G used lcd_enable() to switch backlight. Blind fix, needs testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9379 a1c6a512-1295-4272-9138-f99709370657
2006-03-31 07:53:01 +00:00
Hristo Kovachev
a70c6b9b1e Patch #4913 by David Rothenberger with some changes by me: add only backlight on first keypress to the lcd remotes, too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9253 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 19:16:45 +00:00
Björn Stenberg
e8a0990a51 Dummy is_backlight_on() for bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9232 a1c6a512-1295-4272-9138-f99709370657
2006-03-24 14:18:22 +00:00
Björn Stenberg
da5fb18bca New option: First keypress enables backlight only. Patch #2920 by Nicolas Pennequin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
2006-03-24 13:47:24 +00:00
Linus Nielsen Feltzing
930e315c64 Me silly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9189 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 15:17:17 +00:00
Linus Nielsen Feltzing
7d3e202293 Even more simulator fixes for backlight
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9188 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 15:04:46 +00:00
Linus Nielsen Feltzing
9a6997753d Fix simulator backlight for X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9186 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 14:33:07 +00:00
Linus Nielsen Feltzing
13618007b3 Backlight for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9185 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 14:17:45 +00:00
Thom Johansen
3c7278f405 Reworked backlight fading by GPIO based PWM to work for other targets
than H1x0. iPod Nano and 5G backlight fading is enabled. To try for your
device, just define HAVE_BACKLIGHT_PWM_FADING in the relevant
config-xxxx.h file. NOTE: Will break your settings, so save a config
file first.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9121 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 17:42:58 +00:00
Brandon Low
5650b70517 Fix some problems with using USB_POWERED as a charging state separate from charger_inserted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9109 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 01:01:03 +00:00
Jens Arnold
707ca4fe9e Fix red bootbox build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9097 a1c6a512-1295-4272-9138-f99709370657
2006-03-18 20:01:45 +00:00
Brandon Low
2457de11b6 Use plugged backlight timeout when usb powered
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9086 a1c6a512-1295-4272-9138-f99709370657
2006-03-18 09:07:51 +00:00
Dave Chapman
fb4e384367 More iPod 3G work from Seven Le Mesle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
2006-02-24 20:54:09 +00:00
Dave Chapman
8b1297a0b6 Patch #1435744 from Andrew Scott - initial iPod Mini support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 15:01:25 +00:00
Dave Chapman
987879b958 Further iPod 3G work from Seven Le Mesle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8583 a1c6a512-1295-4272-9138-f99709370657
2006-02-05 17:34:49 +00:00
Hristo Kovachev
4926682378 Patch #1404233 by Peter D'Hoye: H300 brightness bugfix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8387 a1c6a512-1295-4272-9138-f99709370657
2006-01-19 13:10:15 +00:00
Linus Nielsen Feltzing
b3a9ad8590 The Code Police struck again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8352 a1c6a512-1295-4272-9138-f99709370657
2006-01-16 14:45:03 +00:00
Dave Chapman
d83e929f3f Work-in-progress iriver iFP-7xx port by Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
2006-01-12 00:35:50 +00:00
Hristo Kovachev
b1a230353e Oops:) Make the brightness setting purely numerical
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8281 a1c6a512-1295-4272-9138-f99709370657
2005-12-22 13:31:14 +00:00
Hristo Kovachev
9b83c6c4bd Patch No 1387627 by Peter D'Hoye: Backlight Brightness setting for H300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8280 a1c6a512-1295-4272-9138-f99709370657
2005-12-22 10:43:36 +00:00
Linus Nielsen Feltzing
67f00224fb patch #1385256 by Hristo Kovachev - Turn off H300 LCD while backlight is off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8268 a1c6a512-1295-4272-9138-f99709370657
2005-12-20 23:15:27 +00:00
Jens Arnold
a6d409d9db Replaced the booolean 'Backlight On When Plugged' setting with a complete alternative 'Backlight When Plugged' timeout setting. * Yield during poweroff to make backlight_off() work. * Bumped config version, save your settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8053 a1c6a512-1295-4272-9138-f99709370657
2005-11-23 20:12:33 +00:00
Jens Arnold
8042640ce9 Fix iriver bootloader builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8038 a1c6a512-1295-4272-9138-f99709370657
2005-11-22 01:39:41 +00:00
Jens Arnold
b51f7dfc9b Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
2005-11-21 23:55:39 +00:00
Linus Nielsen Feltzing
4be7e5f560 Always turn on the backlight in the H300 boot loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7919 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 23:53:01 +00:00
Linus Nielsen Feltzing
73a35a1aa4 Reverted erroneous commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7918 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 23:42:19 +00:00
Linus Nielsen Feltzing
df0e5effc5 Cleaned up bootloader linker control file and added the H300 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 23:15:59 +00:00
Linus Nielsen Feltzing
d29aef3d62 H300 backlight
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7885 a1c6a512-1295-4272-9138-f99709370657
2005-11-14 22:12:50 +00:00
Dave Chapman
b2db4acc7e iPod: Add backlight functions for Nano
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7853 a1c6a512-1295-4272-9138-f99709370657
2005-11-14 01:28:17 +00:00
Dave Chapman
77372d1218 Initial commit of work-in-progress iPod port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
2005-11-07 23:07:19 +00:00
Jens Arnold
cfb073c452 Coldfire: New timer handling on CPU frequency change, adjusting the prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
2005-10-03 09:24:36 +00:00
Linus Nielsen Feltzing
d7dd2f8b81 iriver: Always turn on the backlight in backlight_init()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7330 a1c6a512-1295-4272-9138-f99709370657
2005-08-15 07:18:36 +00:00
Jens Arnold
f71d8d3e57 Backlight dimming: Don't unboost the CPU from within the isr.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7310 a1c6a512-1295-4272-9138-f99709370657
2005-08-11 21:47:52 +00:00
Jens Arnold
48b6130123 Backlight dimming: Protect from extraneous calls with the same target value. This led to very short boost/unboost sequences for every button event before, one trigger for the volume lag bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7309 a1c6a512-1295-4272-9138-f99709370657
2005-08-11 21:22:54 +00:00
Jens Arnold
e44372ef18 Moved implementation of user timer to the firmware layer, implemented it for iriver, and made it shareable based on priorities. On iriver, the user timer is shared between the backlight fading and other use, so if a plugin registers the timer, the backlight will resort to simple on/off switching until the plugin releases the timer again. Sorted and bumped the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7242 a1c6a512-1295-4272-9138-f99709370657
2005-07-26 20:01:11 +00:00
Linus Nielsen Feltzing
713db304bc Disable backlight in the bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7016 a1c6a512-1295-4272-9138-f99709370657
2005-07-04 22:42:44 +00:00
Jens Arnold
a8cadd8181 Iriver: atomic I/O port manipulation macros, to avoid interference between normal and interrupt code. Todo: all other places that do port manipulation on ports which may also be changed from an intterupt should use that as well. It even decreases binary size a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6985 a1c6a512-1295-4272-9138-f99709370657
2005-07-02 12:18:10 +00:00
Jens Arnold
78da1ff222 The last commit mixed up the arguments of cpu_boost(). Fixed that and removed the #ifdefs again, added #define cpui_boost(on_off) for fixed frequency platforms instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6783 a1c6a512-1295-4272-9138-f99709370657
2005-06-20 19:10:47 +00:00
Miika Pekkarinen
387c4f2fe8 Added few #ifdef HAVE_ADJUSTABLE_CPU_FREQ.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6782 a1c6a512-1295-4272-9138-f99709370657
2005-06-20 18:31:38 +00:00