diff options
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r-- | apps/main_menu.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index e9285058d3..7ec57bc7ee 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c | |||
@@ -159,6 +159,9 @@ void main_menu(void) | |||
159 | /*---------------------------------------------------*/ | 159 | /*---------------------------------------------------*/ |
160 | #ifndef SIMULATOR | 160 | #ifndef SIMULATOR |
161 | #ifdef ARCHOS_RECORDER | 161 | #ifdef ARCHOS_RECORDER |
162 | extern int ata_device; | ||
163 | extern int ata_io_address; | ||
164 | |||
162 | /* Test code!!! */ | 165 | /* Test code!!! */ |
163 | void dbg_ports(void) | 166 | void dbg_ports(void) |
164 | { | 167 | { |
@@ -180,8 +183,6 @@ void dbg_ports(void) | |||
180 | lcd_puts(0, 0, buf); | 183 | lcd_puts(0, 0, buf); |
181 | snprintf(buf, 32, "PBDR: %04x", portb); | 184 | snprintf(buf, 32, "PBDR: %04x", portb); |
182 | lcd_puts(0, 1, buf); | 185 | lcd_puts(0, 1, buf); |
183 | snprintf(buf, 32, "PCDR: %02x", portc); | ||
184 | lcd_puts(0, 2, buf); | ||
185 | 186 | ||
186 | snprintf(buf, 32, "AN0: %03x AN4: %03x", adc_read(0), adc_read(4)); | 187 | snprintf(buf, 32, "AN0: %03x AN4: %03x", adc_read(0), adc_read(4)); |
187 | lcd_puts(0, 3, buf); | 188 | lcd_puts(0, 3, buf); |
@@ -191,6 +192,10 @@ void dbg_ports(void) | |||
191 | lcd_puts(0, 5, buf); | 192 | lcd_puts(0, 5, buf); |
192 | snprintf(buf, 32, "AN3: %03x AN7: %03x", adc_read(3), adc_read(7)); | 193 | snprintf(buf, 32, "AN3: %03x AN7: %03x", adc_read(3), adc_read(7)); |
193 | lcd_puts(0, 6, buf); | 194 | lcd_puts(0, 6, buf); |
195 | |||
196 | snprintf(buf, 32, "%s : 0x%x", | ||
197 | ata_device?"slave":"master", ata_io_address); | ||
198 | lcd_puts(0, 7, buf); | ||
194 | 199 | ||
195 | lcd_update(); | 200 | lcd_update(); |
196 | sleep(HZ/10); | 201 | sleep(HZ/10); |