diff options
author | Dave Chapman <dave@dchapman.com> | 2008-10-29 01:42:03 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-10-29 01:42:03 +0000 |
commit | 8df1a7e29abd51cc455844a9633e1cc5e057065f (patch) | |
tree | feff4d97ffbbc1bf2d55076fa72f4d160c61de4e /bootloader/sansa_as3525.c | |
parent | b771428d862cb6d1780f896550c177f2d5ae72a8 (diff) |
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
Diffstat (limited to 'bootloader/sansa_as3525.c')
-rw-r--r-- | bootloader/sansa_as3525.c | 17 |
1 files changed, 7 insertions, 10 deletions
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 <stdio.h> #include <system.h> #include <inttypes.h> -#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); } |