diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-01 21:50:07 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-01 21:50:07 +0000 |
| commit | 2d3a67640948f8bfe41cbc40bf31852a74729674 (patch) | |
| tree | db44e45334194f1537a70108e62279ea5697d3fb | |
| parent | c22940a4efc8ea07fcb764e34e06e87f78be696c (diff) | |
| download | rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.zip rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.tar.gz rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.tar.bz2 rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.tar.xz | |
Removed debug display code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1293 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/main.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/apps/main.c b/apps/main.c index 4dee1a4..693577a 100644 --- a/apps/main.c +++ b/apps/main.c @@ -43,60 +43,15 @@ #include "version.h" -#include "sh7034.h" #include "sprintf.h" char appsversion[]=APPSVERSION; void init(void); -#ifndef SIMULATOR -/* Test code!!! */ -void dbg_ports(void) -{ - unsigned short porta; - unsigned short portb; - unsigned char portc; - char buf[32]; - - lcd_clear_display(); - - while(1) - { - porta = PADR; - portb = PBDR; - portc = PCDR; - - snprintf(buf, 32, "PADR: %04x", porta); - lcd_puts(0, 0, buf); - snprintf(buf, 32, "PBDR: %04x", portb); - lcd_puts(0, 1, buf); - snprintf(buf, 32, "PCDR: %02x", portc); - lcd_puts(0, 2, buf); - - snprintf(buf, 32, "AN0: %03x AN4: %03x", adc_read(0), adc_read(4)); - lcd_puts(0, 3, buf); - snprintf(buf, 32, "AN1: %03x AN5: %03x", adc_read(1), adc_read(5)); - lcd_puts(0, 4, buf); - snprintf(buf, 32, "AN2: %03x AN6: %03x", adc_read(2), adc_read(6)); - lcd_puts(0, 5, buf); - snprintf(buf, 32, "AN3: %03x AN7: %03x", adc_read(3), adc_read(7)); - lcd_puts(0, 6, buf); - - lcd_update(); - sleep(HZ/10); - - /* Toggle the charger */ - if ((portb & PBDR_BTN_ON) == 0) - PBDR ^= 0x20; - } -} -#endif - void app_main(void) { init(); -// dbg_ports(); browse_root(); } |