Fix reds and yellows (hopefully). Some targets apparently didn't properly #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-03-17 03:36:36 +00:00
parent 68f9ef2d57
commit 4ed387d603
16 changed files with 78 additions and 46 deletions

View file

@ -22,11 +22,11 @@
* KIND, either express or implied.
*
****************************************************************************/
#include "lcd.h"
#include "system.h"
#include <string.h>
#include "backlight-target.h"
#include "cpu.h"
#include "system.h"
#include "backlight-target.h"
#include "lcd.h"
/* Power and display status */
static bool power_on = false; /* Is the power turned on? */
@ -427,7 +427,7 @@ void lcd_init_device(void)
LCD_REG_6 |= 1; /* Start DMA */
}
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
void lcd_enable(bool on)
{
if (on == display_on)
@ -455,7 +455,7 @@ bool lcd_active(void)
{
return display_on;
}
#endif
void lcd_sleep(void)
{
LCD_REG_6 &= ~1;