diff options
author | Marc Guay <marcguay@rockbox.org> | 2008-06-21 15:18:36 +0000 |
---|---|---|
committer | Marc Guay <marcguay@rockbox.org> | 2008-06-21 15:18:36 +0000 |
commit | b93667b30699a18daf3699cc969ad858077e406f (patch) | |
tree | b3a1932ff6227f0434e86efded2205a16864898b /bootloader | |
parent | fdd5c3f1a3c18806329a88b8f243c8775f2a8571 (diff) | |
download | rockbox-b93667b30699a18daf3699cc969ad858077e406f.tar.gz 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.c | 26 |
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) | |||
61 | int power_count = 0; | 61 | int power_count = 0; |
62 | int count = 0; | 62 | int count = 0; |
63 | bool do_power_off = false; | 63 | bool do_power_off = false; |
64 | 64 | ||
65 | lcd_puts_scroll(0,0,"this is a very long line to test scrolling"); | 65 | /*lcd_puts_scroll(0,0,"this is a very long line to test scrolling");*/ |
66 | while(!do_power_off) { | 66 | while(!do_power_off) { |
67 | |||
67 | line = 1; | 68 | line = 1; |
68 | button = button_get(false); | 69 | button = button_get(false); |
69 | 70 | ||
70 | /* Power-off if POWER button has been held for a long time | 71 | /* Power-off if POWER button has been held for a long time |
71 | This loop is currently running at about 100 iterations/second | 72 | This loop is currently running at about 100 iterations/second |
72 | */ | 73 | */ |
73 | if (button & POWEROFF_BUTTON) { | 74 | if (button & POWEROFF_BUTTON) { |
@@ -77,19 +78,25 @@ void show_debug_screen(void) | |||
77 | } else { | 78 | } else { |
78 | power_count = 0; | 79 | power_count = 0; |
79 | } | 80 | } |
80 | 81 | ||
81 | printf("Btn: 0x%08x",button); | 82 | if (button & BUTTON_SELECT){ |
83 | _backlight_off(); | ||
84 | } | ||
85 | else{ | ||
86 | _backlight_on(); | ||
87 | } | ||
88 | |||
89 | /*printf("Btn: 0x%08x",button); | ||
82 | printf("Tick: %d",current_tick); | 90 | printf("Tick: %d",current_tick); |
83 | |||
84 | printf("GPIOA: 0x%08x",GPIOA); | 91 | printf("GPIOA: 0x%08x",GPIOA); |
85 | printf("GPIOB: 0x%08x",GPIOB); | 92 | printf("GPIOB: 0x%08x",GPIOB); |
86 | printf("GPIOC: 0x%08x",GPIOC); | 93 | printf("GPIOC: 0x%08x",GPIOC); |
87 | printf("GPIOD: 0x%08x",GPIOD); | 94 | printf("GPIOD: 0x%08x",GPIOD); |
88 | // printf("GPIOE: 0x%08x",GPIOE); | 95 | printf("GPIOE: 0x%08x",GPIOE);*/ |
89 | 96 | ||
90 | #if 0 | 97 | #if 0 |
91 | int i; | 98 | int i; |
92 | for (i = 0; i<4; i++) | 99 | for (i = 1; i<4; i++) |
93 | { | 100 | { |
94 | printf("ADC%d: 0x%04x",i,adc_read(i)); | 101 | printf("ADC%d: 0x%04x",i,adc_read(i)); |
95 | } | 102 | } |
@@ -109,6 +116,7 @@ void show_debug_screen(void) | |||
109 | 116 | ||
110 | printf("(NOT) POWERED OFF"); | 117 | printf("(NOT) POWERED OFF"); |
111 | while (true); | 118 | while (true); |
119 | |||
112 | } | 120 | } |
113 | #else /* !CPU_TCC77X */ | 121 | #else /* !CPU_TCC77X */ |
114 | void show_debug_screen(void) | 122 | void show_debug_screen(void) |