mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Added MP3 CRC error count
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1332 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e55edfccc8
commit
bd84ff4d78
1 changed files with 9 additions and 2 deletions
|
@ -33,6 +33,7 @@ static char debugbuf[200];
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
|
#include "mas.h"
|
||||||
|
|
||||||
void debug_init(void)
|
void debug_init(void)
|
||||||
{
|
{
|
||||||
|
@ -291,6 +292,7 @@ void dbg_ports(void)
|
||||||
unsigned short portb;
|
unsigned short portb;
|
||||||
unsigned char portc;
|
unsigned char portc;
|
||||||
char buf[32];
|
char buf[32];
|
||||||
|
unsigned long crc_count;
|
||||||
int button;
|
int button;
|
||||||
int battery_voltage;
|
int battery_voltage;
|
||||||
int batt_int, batt_frac;
|
int batt_int, batt_frac;
|
||||||
|
@ -340,6 +342,11 @@ void dbg_ports(void)
|
||||||
snprintf(buf, 32, "%s, 0x%x ",
|
snprintf(buf, 32, "%s, 0x%x ",
|
||||||
ata_device?"slv":"mst", ata_io_address);
|
ata_device?"slv":"mst", ata_io_address);
|
||||||
break;
|
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);
|
lcd_puts(0, 0, buf);
|
||||||
|
|
||||||
|
@ -362,12 +369,12 @@ void dbg_ports(void)
|
||||||
case BUTTON_LEFT:
|
case BUTTON_LEFT:
|
||||||
currval--;
|
currval--;
|
||||||
if(currval < 0)
|
if(currval < 0)
|
||||||
currval = 10;
|
currval = 11;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BUTTON_RIGHT:
|
case BUTTON_RIGHT:
|
||||||
currval++;
|
currval++;
|
||||||
if(currval > 10)
|
if(currval > 11)
|
||||||
currval = 0;
|
currval = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue