summaryrefslogtreecommitdiff
path: root/firmware/backlight.c (follow)
Commit message (Collapse)AuthorAge
...
* New way of handling integer settings with variable steps: table settings (FS ↵Jens Arnold2007-11-25
| | | | | | #8186, with fixes by me). This allows to get rid of those synchronised tables in firmware/ and apps/, making things more flexible and less error prone. First application: backlight timeouts. * Make some more things 'const'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15803 a1c6a512-1295-4272-9138-f99709370657
* Hardware controlled backlight brightness for iPod Video and Nano, retaining ↵Jens Arnold2007-11-12
| | | | | | the software PWM fade in/ fade out. * Backlight handling cleanup, getting rid of one layer of 'lowlevelness'. * Use atomic GPIO bit manipulation for PP502x backlight handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15599 a1c6a512-1295-4272-9138-f99709370657
* Take out some NOCACHEBSS_ATTR's that were accidentally left. Put some ↵Michael Sevakis2007-10-16
| | | | | | threading code in IRAM that should be there on PP502x. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15155 a1c6a512-1295-4272-9138-f99709370657
* Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis2007-10-16
| | | | | | towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
* Name all button light functions and variables consistently starting with ↵Jens Arnold2007-10-07
| | | | | | buttonlight_ . git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15016 a1c6a512-1295-4272-9138-f99709370657
* Commit a subset of the dual core changes that have to do with cache ↵Michael Sevakis2007-09-28
| | | | | | handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
* * Don't touch the backlight(s) (and buttonlight) at backlight init in order ↵Jens Arnold2007-09-12
| | | | | | to avoid a short flash when the lights are both disabled in the bootloader and in rockbox settings. * Properly reflect the backlight state set by the 1st/2nd gen bootloader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14679 a1c6a512-1295-4272-9138-f99709370657
* Fix a warning.Michael Sevakis2007-09-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14647 a1c6a512-1295-4272-9138-f99709370657
* UISIMULATOR: Give the host OS some needed context switching hints (which ↵Michael Sevakis2007-09-09
| | | | | | _is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657
* Removed special X5 backlight handling, and replaced it with a generic system ↵Jens Arnold2007-08-12
| | | | | | that makes the backlight light up on shutdown and not time out unless it's completely disabled in the current player state. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14292 a1c6a512-1295-4272-9138-f99709370657
* Backlight rework: * More compact and straightforward implementation of ↵Jens Arnold2007-08-10
| | | | | | backlight on hold which also fixes some quirks (e.g. Backlight: Off and Backlight on hold: On didn't work as expected). * Removed special code for the iriver non-LCD remote which didn't make sense and couldn't have worked anyway (hold isn't detectable for the iriver non-LCD remote). * Use SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED messages instead of monitoring ourselves. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14271 a1c6a512-1295-4272-9138-f99709370657
* Scroll on main and remote with a single thread. Change the way system ↵Michael Sevakis2007-07-28
| | | | | | messages are defined before running out is an issue (which requires a full update of rockbox on the player). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14035 a1c6a512-1295-4272-9138-f99709370657
* Cosmetics (remove tab and trailing spaces)Antoine Cellerier2007-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14028 a1c6a512-1295-4272-9138-f99709370657
* Remove some unneeded buttonlight codeKarl Kurbjun2007-05-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13383 a1c6a512-1295-4272-9138-f99709370657
* More Gigabeat button light fixes. Settings now work properly, startup does ↵Karl Kurbjun2007-05-10
| | | | | | not cause the button lights to flash when disabled. Buttonlights are now shutdown on power off. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13368 a1c6a512-1295-4272-9138-f99709370657
* Add in buttonlight brightness setting for the Gigabeat, and setup the ↵Karl Kurbjun2007-05-08
| | | | | | framework for future players that have adjustable button light brightness settings. Also fixed a bug in the backlight code when the brightness was set to 0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13356 a1c6a512-1295-4272-9138-f99709370657
* Fix the red Gigabeat bootloader: Add a dummy for button_backlight_on with ↵Karl Kurbjun2007-05-08
| | | | | | the rest of the backlight functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13351 a1c6a512-1295-4272-9138-f99709370657
* Basic gigabeat buttonlight support outside of debug menu FS#7112. Also ↵Karl Kurbjun2007-05-07
| | | | | | disables USB PLL and the USB device clock (uneeded to connect to computer) - May offer some power savings. Changed how some pins are initialized. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13346 a1c6a512-1295-4272-9138-f99709370657
* e200: Make the wheel light timeout configurable (under settings > system) ↵Jonathan Gordon2007-04-22
| | | | | | (FS#7067) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13244 a1c6a512-1295-4272-9138-f99709370657
* Fix bootloader warning.Jens Arnold2007-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13137 a1c6a512-1295-4272-9138-f99709370657
* Moved archos backlight code to target tree. Changed old mutlivalue ↵Jens Arnold2007-04-12
| | | | | | CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
* Committed a forgotten file, hopefully fixed the PP crashesMiika Pekkarinen2007-03-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12939 a1c6a512-1295-4272-9138-f99709370657
* Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers2007-03-04
| | | | | | iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
* Fix CONFIG_BACKLIGHT warnings.Jens Arnold2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
* CONFIG_CHARGINGJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
* Turn backlight ON at boot unless bootloader has already done that.Miika Pekkarinen2007-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11992 a1c6a512-1295-4272-9138-f99709370657
* Updated buttonlights for the Gigabeat port. Added LCD controller off and on ↵Steve Gotthardt2007-01-08
| | | | | | for extra power savings - thanks to Greg White. Incorporated feedback from Gary Allen. Added 'battery charging' mode: shows leds during charging. Added 'follow' mode that turns off leds when backlight goes off. Flicker mode and new solid mode only show during disk access. Access settings from Info/debug menu for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11945 a1c6a512-1295-4272-9138-f99709370657
* Added minimal changes to allow Gigabeat and other ports with settable ↵Steve Gotthardt2007-01-04
| | | | | | backlights to fade. Use define: HAVE_BACKLIGHT_SET_FADING (as opposed to the PWM). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11897 a1c6a512-1295-4272-9138-f99709370657
* Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis2006-12-19
| | | | | | the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
* And this too.Miika Pekkarinen2006-12-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11667 a1c6a512-1295-4272-9138-f99709370657
* Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
* Fix sim error(s) (as usual).Michael Sevakis2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11503 a1c6a512-1295-4272-9138-f99709370657
* Coldfire targets: Got the rest of the coldfire code out of backlight.c. ↵Michael Sevakis2006-11-10
| | | | | | Straightened up related items in configs and split backlight_set_brightness between the normal and boot/sim builds like the other functions. Should really have done all that in the first place. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11502 a1c6a512-1295-4272-9138-f99709370657
* H300/X5: Moved backlight brightness code to target tree. Created ↵Michael Sevakis2006-11-10
| | | | | | __backlight_set_brightness in backlight-(target).c. backlight_set_brightness range clamps and calls the backlight driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11488 a1c6a512-1295-4272-9138-f99709370657
* Target tree support for Iriver iFP.Tomasz Malesinski2006-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11485 a1c6a512-1295-4272-9138-f99709370657
* Don't overflow the backlight event queue with on messagesSteve Bavin2006-11-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11420 a1c6a512-1295-4272-9138-f99709370657
* move the iriver h1x0/h3x0 targets to the target treeJonathan Gordon2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
* Move all iPod targets into the target tree. FS#5890Barry Wardell2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
* Add CPU boost tracker to see where boosts are coming fromSteve Bavin2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
* Get rid of build warnings of x5Peter D'Hoye2006-09-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10963 a1c6a512-1295-4272-9138-f99709370657
* New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen2006-09-16
| | | | | | | | | | switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
* Added remote backlight on hold option to players with remote hold switch. ↵Michael Sevakis2006-09-10
| | | | | | 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
* Make backlight fading work again on PP targets. The PP timer cannot handle a ↵Jens Arnold2006-09-01
| | | | | | (real) cycle count of 1, the minimum is 2. This is now checked in timer_register() and timer_set_period(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10849 a1c6a512-1295-4272-9138-f99709370657
* Patch #5223 by Jonathan Gordon: Turn on the main screen's backlight when ↵Hristo Kovachev2006-08-15
| | | | | | using the iriver NON-LCD remote (set the remote backlight to off if you don't want it) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10574 a1c6a512-1295-4272-9138-f99709370657
* Accepted FS #5772 by Michael SevakisRani Hod2006-08-08
| | | | | | | | | | | | 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
* LCD remote support for iAudio X5Linus Nielsen Feltzing2006-07-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10352 a1c6a512-1295-4272-9138-f99709370657
* Remote backlight is in the target tree for X5Linus Nielsen Feltzing2006-07-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10351 a1c6a512-1295-4272-9138-f99709370657
* Patch FS#5712 by Michael Sevakis - X5 Backlight brightness improvement/fixLinus Nielsen Feltzing2006-07-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10322 a1c6a512-1295-4272-9138-f99709370657
* double fault.Rani Hod2006-07-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10305 a1c6a512-1295-4272-9138-f99709370657
* oopsRani Hod2006-07-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10304 a1c6a512-1295-4272-9138-f99709370657