summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMarc Guay <marcguay@rockbox.org>2008-06-21 15:18:36 +0000
committerMarc Guay <marcguay@rockbox.org>2008-06-21 15:18:36 +0000
commitb93667b30699a18daf3699cc969ad858077e406f (patch)
treeb3a1932ff6227f0434e86efded2205a16864898b /bootloader
parentfdd5c3f1a3c18806329a88b8f243c8775f2a8571 (diff)
downloadrockbox-b93667b30699a18daf3699cc969ad858077e406f.tar.gz
rockbox-b93667b30699a18daf3699cc969ad858077e406f.tar.bz2
rockbox-b93667b30699a18daf3699cc969ad858077e406f.zip
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
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/telechips.c26
1 files changed, 17 insertions, 9 deletions
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)