From 8df1a7e29abd51cc455844a9633e1cc5e057065f Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Wed, 29 Oct 2008 01:42:03 +0000 Subject: e200v2: implement the backlight handling (copy/paste from the c200v1/e200v1 code - this should probably be unified, along with other upcoming v2 code), plus clean up the lcd init by calling lcd_init() directly in the bootloader, instead of lcd_init_device(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18910 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/sansa_as3525.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'bootloader') diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index 2a4f7f0ccb..a88e206c3b 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -25,10 +25,11 @@ #include #include #include -#include "lcd.h" -#include "common.h" #include "config.h" +#include "lcd.h" +#include "backlight-target.h" #include "as3525-codec.h" +#include "common.h" int show_logo(void); void main(void) @@ -38,19 +39,15 @@ void main(void) system_init(); - lcd_init_device(); - lcd_clear_display(); + lcd_init(); - lcd_update(); + show_logo(); -#ifdef HAVE_LCD_ENABLE - lcd_enable(true); -#endif + as3525_codec_init(); /* Required for backlight on e200v2 */ - show_logo(); + _backlight_on(); /* show player id to demonstrate communication with codec part */ - as3525_codec_init(); for (i = 0; i < 8; i++) { buf[i] = as3525_codec_read(0x38 + i); } -- cgit v1.2.3