From b93667b30699a18daf3699cc969ad858077e406f Mon Sep 17 00:00:00 2001 From: Marc Guay Date: Sat, 21 Jun 2008 15:18:36 +0000 Subject: Add the Sansa c100 as a build target with basic drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17742 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/telechips.c | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'bootloader/telechips.c') diff --git a/bootloader/telechips.c b/bootloader/telechips.c index 7563a18632..d5239d1863 100644 --- a/bootloader/telechips.c +++ b/bootloader/telechips.c @@ -61,13 +61,14 @@ void show_debug_screen(void) int power_count = 0; int count = 0; bool do_power_off = false; - - lcd_puts_scroll(0,0,"this is a very long line to test scrolling"); + + /*lcd_puts_scroll(0,0,"this is a very long line to test scrolling");*/ while(!do_power_off) { + line = 1; button = button_get(false); - - /* Power-off if POWER button has been held for a long time + + /* Power-off if POWER button has been held for a long time This loop is currently running at about 100 iterations/second */ if (button & POWEROFF_BUTTON) { @@ -77,19 +78,25 @@ void show_debug_screen(void) } else { power_count = 0; } - - printf("Btn: 0x%08x",button); + + if (button & BUTTON_SELECT){ + _backlight_off(); + } + else{ + _backlight_on(); + } + + /*printf("Btn: 0x%08x",button); printf("Tick: %d",current_tick); - printf("GPIOA: 0x%08x",GPIOA); printf("GPIOB: 0x%08x",GPIOB); printf("GPIOC: 0x%08x",GPIOC); printf("GPIOD: 0x%08x",GPIOD); -// printf("GPIOE: 0x%08x",GPIOE); + printf("GPIOE: 0x%08x",GPIOE);*/ #if 0 int i; - for (i = 0; i<4; i++) + for (i = 1; i<4; i++) { printf("ADC%d: 0x%04x",i,adc_read(i)); } @@ -109,6 +116,7 @@ void show_debug_screen(void) printf("(NOT) POWERED OFF"); while (true); + } #else /* !CPU_TCC77X */ void show_debug_screen(void) -- cgit v1.2.3