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
Miika Pekkarinen
0cb7511643
Backlight dimming is now flicker free on all situations.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6781 a1c6a512-1295-4272-9138-f99709370657
2005-06-20 18:28:05 +00:00
Jens Arnold
61b9d34c7c
Iriver: Backlight fading is now configurable. Added a function to stop the 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-20 17:03:09 +00:00
Miika Pekkarinen
6b3a14a7fd
Only stop backlight pwm timer if display is fully dimmed either
...
on or off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6765 a1c6a512-1295-4272-9138-f99709370657
2005-06-19 10:12:11 +00:00
Miika Pekkarinen
2bfd2585a9
Initial support for iriver backlight dimming. Unfortunately dimming
...
remote control's EL-backlight is not possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6747 a1c6a512-1295-4272-9138-f99709370657
2005-06-18 12:53:57 +00:00
Jens Arnold
c3b1eceff1
Added dummy function and simulator stub.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6537 a1c6a512-1295-4272-9138-f99709370657
2005-05-30 06:42:14 +00:00
Christian Gmeiner
7477c09b42
Remote LCD: added own backlight timeout stuff
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6533 a1c6a512-1295-4272-9138-f99709370657
2005-05-30 00:00:22 +00:00
Jens Arnold
2629071b25
More dead code...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6428 a1c6a512-1295-4272-9138-f99709370657
2005-05-08 12:56:48 +00:00
Jörg Hohensohn
9418e92eea
typo (ok, my commits get trivial)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6330 a1c6a512-1295-4272-9138-f99709370657
2005-04-22 19:18:01 +00:00
Linus Nielsen Feltzing
19631f4552
iRiver: Independent backlight timers for the main and remote LCD
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6303 a1c6a512-1295-4272-9138-f99709370657
2005-04-15 16:16:26 +00:00
Christian Gmeiner
cf2b821a7a
IRiver: added remote backlight handling into backlight thread
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6299 a1c6a512-1295-4272-9138-f99709370657
2005-04-15 13:51:19 +00:00
Linus Nielsen Feltzing
f67bd4f2c8
Aligned thread stack
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5805 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 02:43:26 +00:00
Jean-Philippe Bernardy
5f91f4acff
backlight driver for Gmini
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5795 a1c6a512-1295-4272-9138-f99709370657
2005-02-05 10:53:41 +00:00
Jörg Hohensohn
fee8617479
multiple choice configuration CONFIG_BACKLIGHT instead of HAVE_BACKLIGHT, allows better control of how to do this per model
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5491 a1c6a512-1295-4272-9138-f99709370657
2004-12-18 10:29:47 +00:00
Jens Arnold
09280d0422
Player: initialize backlight control pin (for coldstart)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5444 a1c6a512-1295-4272-9138-f99709370657
2004-11-20 00:15:40 +00:00
Linus Nielsen Feltzing
3ad0879f19
Correct polarity for the iRiver backlight pin
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5432 a1c6a512-1295-4272-9138-f99709370657
2004-11-18 23:24:32 +00:00
Jens Arnold
a1a08d0d5f
Removed backlight handling remains for platforms with no backlight (Ondio)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5236 a1c6a512-1295-4272-9138-f99709370657
2004-10-09 19:56:27 +00:00
Linus Nielsen Feltzing
eb5463d158
Ported to iRiver H100
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5209 a1c6a512-1295-4272-9138-f99709370657
2004-10-07 08:38:51 +00:00
Jörg Hohensohn
76994fb50e
no backlight for Ondio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5061 a1c6a512-1295-4272-9138-f99709370657
2004-09-10 13:56:54 +00:00
Jens Arnold
2b0694c694
More const policeing step 3
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
2004-08-03 05:58:46 +00:00
Linus Nielsen Feltzing
6c7011415b
It turns out that the backlight port pin on the player can be set to an input (and pulled up externally) to shut off the backlight. That may save us a few picoamps :-)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4918 a1c6a512-1295-4272-9138-f99709370657
2004-07-22 09:09:26 +00:00
Jörg Hohensohn
3dc1063dcc
hope I killed that warning now
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4288 a1c6a512-1295-4272-9138-f99709370657
2004-01-30 23:55:02 +00:00
Jörg Hohensohn
73681ff4ef
inconsistent argument type for backlight_set_timeout() fixed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4287 a1c6a512-1295-4272-9138-f99709370657
2004-01-30 23:27:44 +00:00
Linus Nielsen Feltzing
bef7ab0c26
The code police strikes back
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 12:15:24 +00:00
Jörg Hohensohn
75bab49a54
set/clear port bits with atomic instructions instead of read-modify-write, saves time+space, allows port usage in ISR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
2003-11-06 01:34:50 +00:00
Daniel Stenberg
acbd9bd0c8
TP Diffenbach pointed out the risk here. Added a check for bad input values
...
here, and I also made the argument named 'index' and made it unsigned to
better match what it actually is used for.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3899 a1c6a512-1295-4272-9138-f99709370657
2003-07-28 09:08:49 +00:00
Björn Stenberg
86587527f5
Added caption backlight: Turns on backlight briefly at the start and end of each track.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3585 a1c6a512-1295-4272-9138-f99709370657
2003-04-23 09:17:34 +00:00
Mats Lidell
74cc9e41fa
Remove use of rockbox-mode.el in local variables list.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Uwe Freese
86ddabf75d
added backlight_get_timeout and backlight_get_on_when_charging
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2994 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 22:01:27 +00:00
Linus Nielsen Feltzing
d3b92e9521
Now backlight really stays on when the charger is connected
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2500 a1c6a512-1295-4272-9138-f99709370657
2002-10-04 11:52:46 +00:00
Daniel Stenberg
ad19f6f912
fixed for player, removed dependency on CHARGER_CTRL
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2465 a1c6a512-1295-4272-9138-f99709370657
2002-10-01 11:06:22 +00:00
Daniel Stenberg
b95fe1afc6
Mark A. Hillebrand's patch that offers a new setting that if enabled, keeps
...
the backlight on all the time while the charger is connected.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2464 a1c6a512-1295-4272-9138-f99709370657
2002-10-01 10:59:36 +00:00
Linus Nielsen Feltzing
51d9ae63ca
Missing break in the SYS_USB_CONNECTED case
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1944 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 09:36:49 +00:00
Linus Nielsen Feltzing
3ed34a6227
New backlight settings with always-off
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1766 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 13:56:06 +00:00
Linus Nielsen Feltzing
29bd562211
backlight_init() no longer clears the ST bit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1542 a1c6a512-1295-4272-9138-f99709370657
2002-08-06 08:13:42 +00:00
Linus Nielsen Feltzing
aec0c643f5
The backlight now turns off in USB mode too
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1491 a1c6a512-1295-4272-9138-f99709370657
2002-07-30 06:35:50 +00:00
Linus Nielsen Feltzing
c3674ef96a
Killed a warning on Players
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1453 a1c6a512-1295-4272-9138-f99709370657
2002-07-26 14:30:48 +00:00
Linus Nielsen Feltzing
1cf053982e
Now wakes up the backlight even after a power loss
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1448 a1c6a512-1295-4272-9138-f99709370657
2002-07-25 22:04:03 +00:00
Linus Nielsen Feltzing
b70a046615
Backlight fix for Players by Grant Wier
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1412 a1c6a512-1295-4272-9138-f99709370657
2002-07-23 00:30:47 +00:00
Linus Nielsen Feltzing
76b4096be7
Added thread names
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1357 a1c6a512-1295-4272-9138-f99709370657
2002-07-15 22:19:49 +00:00
Linus Nielsen Feltzing
f90727b864
Now compiles on Player again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1317 a1c6a512-1295-4272-9138-f99709370657
2002-07-03 08:03:55 +00:00
Linus Nielsen Feltzing
a8e6fbad3e
Now enables the backlight even after a battery switch
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1315 a1c6a512-1295-4272-9138-f99709370657
2002-07-02 23:05:04 +00:00
Linus Nielsen Feltzing
c36919eca3
Increased thread stack size
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1291 a1c6a512-1295-4272-9138-f99709370657
2002-07-01 21:16:07 +00:00
Linus Nielsen Feltzing
5193368445
Better USB behaviour
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1263 a1c6a512-1295-4272-9138-f99709370657
2002-06-30 13:14:16 +00:00
Linus Nielsen Feltzing
392f3853b1
Added USB insertion handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1259 a1c6a512-1295-4272-9138-f99709370657
2002-06-29 23:01:10 +00:00
Björn Stenberg
f80d8a704d
Moved settings.c/h to apps/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1215 a1c6a512-1295-4272-9138-f99709370657
2002-06-27 00:20:00 +00:00
Linus Nielsen Feltzing
6139982672
non-RTC code wrote to PAIOR instead of PADR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1179 a1c6a512-1295-4272-9138-f99709370657
2002-06-25 11:15:33 +00:00
Linus Nielsen Feltzing
2a4de23b5f
First version
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1152 a1c6a512-1295-4272-9138-f99709370657
2002-06-24 13:48:42 +00:00