1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2008-10-29 01:42:03 +00:00
parent b771428d86
commit 8df1a7e29a
6 changed files with 93 additions and 25 deletions

View file

@ -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_update();
#ifdef HAVE_LCD_ENABLE
lcd_enable(true);
#endif
lcd_init();
show_logo();
as3525_codec_init(); /* Required for backlight on e200v2 */
_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);
}