summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
AgeCommit message (Collapse)Author
2006-03-25Patch #4913 by David Rothenberger with some changes by me: add only ↵Hristo Kovachev
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-24Dummy is_backlight_on() for bootloaderBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9232 a1c6a512-1295-4272-9138-f99709370657
2006-03-24New option: First keypress enables backlight only. Patch #2920 by Nicolas ↵Björn Stenberg
Pennequin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9228 a1c6a512-1295-4272-9138-f99709370657
2006-03-22Me sillyLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9189 a1c6a512-1295-4272-9138-f99709370657
2006-03-22Even more simulator fixes for backlightLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9188 a1c6a512-1295-4272-9138-f99709370657
2006-03-22Fix simulator backlight for X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9186 a1c6a512-1295-4272-9138-f99709370657
2006-03-22Backlight for iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9185 a1c6a512-1295-4272-9138-f99709370657
2006-03-19Reworked backlight fading by GPIO based PWM to work for other targetsThom Johansen
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-19Fix some problems with using USB_POWERED as a charging state separate from ↵Brandon Low
charger_inserted git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9109 a1c6a512-1295-4272-9138-f99709370657
2006-03-18Fix red bootbox build.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9097 a1c6a512-1295-4272-9138-f99709370657
2006-03-18Use plugged backlight timeout when usb poweredBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9086 a1c6a512-1295-4272-9138-f99709370657
2006-02-24More iPod 3G work from Seven Le MesleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
2006-02-21Patch #1435744 from Andrew Scott - initial iPod Mini supportDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
2006-02-05Further iPod 3G work from Seven Le MesleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8583 a1c6a512-1295-4272-9138-f99709370657
2006-01-19Patch #1404233 by Peter D'Hoye: H300 brightness bugfixHristo Kovachev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8387 a1c6a512-1295-4272-9138-f99709370657
2006-01-16The Code Police struck againLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8352 a1c6a512-1295-4272-9138-f99709370657
2006-01-12Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
2005-12-22Oops:) Make the brightness setting purely numericalHristo Kovachev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8281 a1c6a512-1295-4272-9138-f99709370657
2005-12-22Patch No 1387627 by Peter D'Hoye: Backlight Brightness setting for H300Hristo Kovachev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8280 a1c6a512-1295-4272-9138-f99709370657
2005-12-20patch #1385256 by Hristo Kovachev - Turn off H300 LCD while backlight is offLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8268 a1c6a512-1295-4272-9138-f99709370657
2005-11-23Replaced the booolean 'Backlight On When Plugged' setting with a complete ↵Jens Arnold
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-22Fix iriver bootloader builds.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8038 a1c6a512-1295-4272-9138-f99709370657
2005-11-21Backlight handling: * Added 'Caption Backlight' and 'Backlight On When ↵Jens Arnold
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-16Always turn on the backlight in the H300 boot loaderLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7919 a1c6a512-1295-4272-9138-f99709370657
2005-11-16Reverted erroneous commitLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7918 a1c6a512-1295-4272-9138-f99709370657
2005-11-16Cleaned up bootloader linker control file and added the H300 targetLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 a1c6a512-1295-4272-9138-f99709370657
2005-11-14H300 backlightLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7885 a1c6a512-1295-4272-9138-f99709370657
2005-11-14iPod: Add backlight functions for NanoDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7853 a1c6a512-1295-4272-9138-f99709370657
2005-11-07Initial commit of work-in-progress iPod portDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
2005-10-03Coldfire: New timer handling on CPU frequency change, adjusting the ↵Jens Arnold
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-08-15iriver: Always turn on the backlight in backlight_init()Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7330 a1c6a512-1295-4272-9138-f99709370657
2005-08-11Backlight dimming: Don't unboost the CPU from within the isr.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7310 a1c6a512-1295-4272-9138-f99709370657
2005-08-11Backlight dimming: Protect from extraneous calls with the same target value. ↵Jens Arnold
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-07-26Moved implementation of user timer to the firmware layer, implemented it for ↵Jens Arnold
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-04Disable backlight in the bootloaderLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7016 a1c6a512-1295-4272-9138-f99709370657
2005-07-02Iriver: atomic I/O port manipulation macros, to avoid interference between ↵Jens Arnold
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-06-20The last commit mixed up the arguments of cpu_boost(). Fixed that and ↵Jens Arnold
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-20Added few #ifdef HAVE_ADJUSTABLE_CPU_FREQ.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6782 a1c6a512-1295-4272-9138-f99709370657
2005-06-20Backlight dimming is now flicker free on all situations.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6781 a1c6a512-1295-4272-9138-f99709370657
2005-06-20Iriver: Backlight fading is now configurable. Added a function to stop the ↵Jens Arnold
backlight from using timer1, freeing it for usage in plugins. Grouped together some related settings functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6779 a1c6a512-1295-4272-9138-f99709370657
2005-06-19Only stop backlight pwm timer if display is fully dimmed eitherMiika Pekkarinen
on or off. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6765 a1c6a512-1295-4272-9138-f99709370657
2005-06-18Initial support for iriver backlight dimming. Unfortunately dimmingMiika Pekkarinen
remote control's EL-backlight is not possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6747 a1c6a512-1295-4272-9138-f99709370657
2005-05-30Added dummy function and simulator stub.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6537 a1c6a512-1295-4272-9138-f99709370657
2005-05-30Remote LCD: added own backlight timeout stuffChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6533 a1c6a512-1295-4272-9138-f99709370657
2005-05-08More dead code...Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6428 a1c6a512-1295-4272-9138-f99709370657
2005-04-22typo (ok, my commits get trivial)Jörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6330 a1c6a512-1295-4272-9138-f99709370657
2005-04-15iRiver: Independent backlight timers for the main and remote LCDLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6303 a1c6a512-1295-4272-9138-f99709370657
2005-04-15IRiver: added remote backlight handling into backlight threadChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6299 a1c6a512-1295-4272-9138-f99709370657
2005-02-06Aligned thread stackLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5805 a1c6a512-1295-4272-9138-f99709370657
2005-02-05backlight driver for GminiJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5795 a1c6a512-1295-4272-9138-f99709370657