1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-06-20 19:10:47 +00:00
parent 387c4f2fe8
commit 78da1ff222
2 changed files with 3 additions and 8 deletions

View file

@ -83,9 +83,7 @@ void backlight_start_timer(void)
return ;
/* Prevent cpu frequency changes while dimming. */
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
cpu_boost(true);
#endif
count = 1;
bl_timer_active = true;
@ -156,9 +154,7 @@ void TIMER1(void)
if (idle)
{
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
cpu_boost(true);
#endif
cpu_boost(false);
bl_timer_active = false;
TMR1 = 0;
}
@ -180,9 +176,7 @@ void backlight_allow_timer(bool on)
if (!timer_allowed && bl_timer_active)
{
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
cpu_boost(true);
#endif
cpu_boost(false);
bl_dim_current = bl_dim_target;
bl_timer_active = false;
TMR1 = 0;

View file

@ -35,6 +35,7 @@ void set_cpu_frequency(long frequency);
void cpu_boost(bool on_off);
#else
#define FREQ CPU_FREQ
#define cpu_boost(on_off)
#endif
#define BAUDRATE 9600