forked from len0rd/rockbox
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
parent
2a3e1628a5
commit
89ba7e818c
148 changed files with 679 additions and 687 deletions
|
|
@ -63,7 +63,7 @@ void shutdown(void)
|
|||
ata_sleepnow();
|
||||
}
|
||||
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
|
||||
power_off();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,9 +98,9 @@ void shutdown(void)
|
|||
sleep(HZ*2);
|
||||
|
||||
/* Backlight OFF */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
_remote_backlight_off();
|
||||
remote_backlight_hw_off();
|
||||
#endif
|
||||
|
||||
__reset_cookie();
|
||||
|
|
|
|||
|
|
@ -217,9 +217,9 @@ void main(uint32_t arg, uint32_t addr)
|
|||
system_prepare_fw_start();
|
||||
/* if target defines lcd_enable() in bootloader, take this as a hint that
|
||||
* we should use it to properly stop the lcd before moving one, the
|
||||
* _backlight_off() routine is supposed to disable the lcd at the same time */
|
||||
* backlight_hw_off() routine is supposed to disable the lcd at the same time */
|
||||
#ifdef HAVE_LCD_ENABLE
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
#endif
|
||||
disable_interrupt(IRQ_FIQ_STATUS);
|
||||
commit_discard_idcache();
|
||||
|
|
|
|||
|
|
@ -158,9 +158,9 @@ void shutdown(void)
|
|||
sleep(HZ*2);
|
||||
|
||||
/* Backlight OFF */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
_remote_backlight_off();
|
||||
remote_backlight_hw_off();
|
||||
#endif
|
||||
|
||||
__reset_cookie();
|
||||
|
|
@ -418,12 +418,12 @@ void main(void)
|
|||
__uda1380_reset_hi();
|
||||
|
||||
/* Start with the main backlight OFF. */
|
||||
_backlight_init();
|
||||
_backlight_off();
|
||||
backlight_hw_init();
|
||||
backlight_hw_off();
|
||||
|
||||
/* Remote backlight ON */
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
_remote_backlight_on();
|
||||
remote_backlight_hw_on();
|
||||
#endif
|
||||
|
||||
system_init();
|
||||
|
|
@ -576,7 +576,7 @@ void main(void)
|
|||
sleep(HZ);
|
||||
|
||||
/* Backlight OFF */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
}
|
||||
|
||||
cpu_idle_mode(false);
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ void shutdown(void)
|
|||
|
||||
sleep(HZ*2);
|
||||
|
||||
_backlight_off();
|
||||
_remote_backlight_off();
|
||||
backlight_hw_off();
|
||||
remote_backlight_hw_off();
|
||||
|
||||
__reset_cookie();
|
||||
power_off();
|
||||
|
|
@ -184,10 +184,10 @@ void main(void)
|
|||
restore_irq(mask);
|
||||
|
||||
/* Start with the main backlight OFF. */
|
||||
_backlight_init();
|
||||
_backlight_off();
|
||||
backlight_hw_init();
|
||||
backlight_hw_off();
|
||||
|
||||
_remote_backlight_on();
|
||||
remote_backlight_hw_on();
|
||||
|
||||
system_init();
|
||||
kernel_init();
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ void* main(void)
|
|||
font_init();
|
||||
button_init();
|
||||
i2c_init();
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
|
||||
lcd_set_foreground(LCD_WHITE);
|
||||
lcd_set_background(LCD_BLACK);
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ void* main(void)
|
|||
#endif
|
||||
#if defined(SANSA_E200) || defined(PHILIPS_SA9200)
|
||||
i2c_init();
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
#endif
|
||||
|
||||
if (button_hold())
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ void* main(void)
|
|||
font_init();
|
||||
button_init();
|
||||
i2c_init();
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
|
||||
lcd_set_foreground(LCD_WHITE);
|
||||
lcd_set_background(LCD_BLACK);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ void main(void)
|
|||
| QT1106_DI | QT1106_SLD_SLIDER | QT1106_RES_256);
|
||||
snprintf(mystring, 64, "%x %2.2x",(slider & 0x008000)>>15, slider&0xff);
|
||||
lcd_puts(0,1,mystring);
|
||||
_backlight_set_brightness((slider & 0xFF) >> 4);
|
||||
backlight_hw_brightness((slider & 0xFF) >> 4);
|
||||
|
||||
/*
|
||||
if(slider & 0x008000)
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ static void __shutdown(void)
|
|||
}
|
||||
|
||||
/* Backlight OFF */
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
__reset_cookie();
|
||||
|
||||
power_off();
|
||||
|
|
@ -372,7 +372,7 @@ void main(void)
|
|||
cpu_idle_mode(true);
|
||||
|
||||
/* lowlevel init only */
|
||||
_backlight_init();
|
||||
backlight_hw_init();
|
||||
|
||||
/* Handle wakeup event. Possibilities are:
|
||||
* RTC alarm (HD300)
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ void main(void)
|
|||
i2c_init();
|
||||
fmradio_i2c_init();
|
||||
adc_init();
|
||||
_backlight_init();
|
||||
backlight_hw_init();
|
||||
button_init_device();
|
||||
|
||||
// FM power
|
||||
|
|
@ -259,13 +259,13 @@ void main(void)
|
|||
if (button & BUTTON_MENU) {
|
||||
if (brightness < MAX_BRIGHTNESS_SETTING) {
|
||||
brightness++;
|
||||
_backlight_set_brightness(brightness);
|
||||
backlight_hw_brightness(brightness);
|
||||
}
|
||||
}
|
||||
else if (button & BUTTON_BACK) {
|
||||
if (brightness > MIN_BRIGHTNESS_SETTING) {
|
||||
brightness--;
|
||||
_backlight_set_brightness(brightness);
|
||||
backlight_hw_brightness(brightness);
|
||||
}
|
||||
}
|
||||
snprintf(mystring, 64, "brightness %3d", brightness);
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ void main(void)
|
|||
|
||||
while(1)
|
||||
{
|
||||
_backlight_on();
|
||||
_buttonlight_off();
|
||||
backlight_hw_on();
|
||||
buttonlight_hw_off();
|
||||
sleep(HZ/4);
|
||||
_backlight_off();
|
||||
_buttonlight_on();
|
||||
backlight_hw_off();
|
||||
buttonlight_hw_on();
|
||||
sleep(HZ/4);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,10 +82,10 @@ void show_debug_screen(void)
|
|||
}
|
||||
#if 0
|
||||
if (button & BUTTON_SELECT){
|
||||
_backlight_off();
|
||||
backlight_hw_off();
|
||||
}
|
||||
else{
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
}
|
||||
#endif
|
||||
printf("Btn: 0x%08x",button);
|
||||
|
|
@ -147,7 +147,7 @@ void* main(void)
|
|||
|
||||
show_logo();
|
||||
|
||||
_backlight_on();
|
||||
backlight_hw_on();
|
||||
|
||||
/* Only load the firmware if TCCBOOT is defined - this ensures SDRAM_START is
|
||||
available for loading the firmware. Otherwise display the debug screen. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue