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 /apps | |
parent | c22940a4efc8ea07fcb764e34e06e87f78be696c (diff) | |
download | rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.tar.gz rockbox-2d3a67640948f8bfe41cbc40bf31852a74729674.zip |
Removed debug display code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1293 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 4dee1a482c..693577a72f 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -43,60 +43,15 @@ | |||
43 | 43 | ||
44 | #include "version.h" | 44 | #include "version.h" |
45 | 45 | ||
46 | #include "sh7034.h" | ||
47 | #include "sprintf.h" | 46 | #include "sprintf.h" |
48 | 47 | ||
49 | char appsversion[]=APPSVERSION; | 48 | char appsversion[]=APPSVERSION; |
50 | 49 | ||
51 | void init(void); | 50 | void init(void); |
52 | 51 | ||
53 | #ifndef SIMULATOR | ||
54 | /* Test code!!! */ | ||
55 | void dbg_ports(void) | ||
56 | { | ||
57 | unsigned short porta; | ||
58 | unsigned short portb; | ||
59 | unsigned char portc; | ||
60 | char buf[32]; | ||
61 | |||
62 | lcd_clear_display(); | ||
63 | |||
64 | while(1) | ||
65 | { | ||
66 | porta = PADR; | ||
67 | portb = PBDR; | ||
68 | portc = PCDR; | ||
69 | |||
70 | snprintf(buf, 32, "PADR: %04x", porta); | ||
71 | lcd_puts(0, 0, buf); | ||
72 | snprintf(buf, 32, "PBDR: %04x", portb); | ||
73 | lcd_puts(0, 1, buf); | ||
74 | snprintf(buf, 32, "PCDR: %02x", portc); | ||
75 | lcd_puts(0, 2, buf); | ||
76 | |||
77 | snprintf(buf, 32, "AN0: %03x AN4: %03x", adc_read(0), adc_read(4)); | ||
78 | lcd_puts(0, 3, buf); | ||
79 | snprintf(buf, 32, "AN1: %03x AN5: %03x", adc_read(1), adc_read(5)); | ||
80 | lcd_puts(0, 4, buf); | ||
81 | snprintf(buf, 32, "AN2: %03x AN6: %03x", adc_read(2), adc_read(6)); | ||
82 | lcd_puts(0, 5, buf); | ||
83 | snprintf(buf, 32, "AN3: %03x AN7: %03x", adc_read(3), adc_read(7)); | ||
84 | lcd_puts(0, 6, buf); | ||
85 | |||
86 | lcd_update(); | ||
87 | sleep(HZ/10); | ||
88 | |||
89 | /* Toggle the charger */ | ||
90 | if ((portb & PBDR_BTN_ON) == 0) | ||
91 | PBDR ^= 0x20; | ||
92 | } | ||
93 | } | ||
94 | #endif | ||
95 | |||
96 | void app_main(void) | 52 | void app_main(void) |
97 | { | 53 | { |
98 | init(); | 54 | init(); |
99 | // dbg_ports(); | ||
100 | browse_root(); | 55 | browse_root(); |
101 | } | 56 | } |
102 | 57 | ||