diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-04 14:33:35 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-04 14:33:35 +0000 |
commit | bd84ff4d785a597fe4110cb1565d80b948b1f210 (patch) | |
tree | 320e261ded0bb4d597286a81cfe4065179857c24 /firmware/debug.c | |
parent | e55edfccc830dfdfb1f52d39957c7a24089d84e0 (diff) | |
download | rockbox-bd84ff4d785a597fe4110cb1565d80b948b1f210.tar.gz rockbox-bd84ff4d785a597fe4110cb1565d80b948b1f210.tar.bz2 rockbox-bd84ff4d785a597fe4110cb1565d80b948b1f210.zip |
Added MP3 CRC error count
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1332 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.c')
-rw-r--r-- | firmware/debug.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index e94350aee3..e4ef9c9df4 100644 --- a/firmware/debug.c +++ b/firmware/debug.c @@ -33,6 +33,7 @@ static char debugbuf[200]; #include "system.h" #include "lcd.h" #include "adc.h" +#include "mas.h" void debug_init(void) { @@ -291,6 +292,7 @@ void dbg_ports(void) unsigned short portb; unsigned char portc; char buf[32]; + unsigned long crc_count; int button; int battery_voltage; int batt_int, batt_frac; @@ -340,6 +342,11 @@ void dbg_ports(void) snprintf(buf, 32, "%s, 0x%x ", ata_device?"slv":"mst", ata_io_address); break; + case 11: + mas_readmem(MAS_BANK_D0, 0x303, &crc_count, 1); + + snprintf(buf, 32, "CRC: %d ", crc_count); + break; } lcd_puts(0, 0, buf); @@ -362,12 +369,12 @@ void dbg_ports(void) case BUTTON_LEFT: currval--; if(currval < 0) - currval = 10; + currval = 11; break; case BUTTON_RIGHT: currval++; - if(currval > 10) + if(currval > 11) currval = 0; break; } |