Philips HDD1630: add ADC info to debug screen. Make button_click work again (bad copy/paste job).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19822 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2009-01-23 03:14:34 +00:00
parent 17862d2061
commit ce7c62ce29
2 changed files with 6 additions and 1 deletions

View file

@ -1223,6 +1223,11 @@ extern unsigned char serbuf[];
snprintf(buf, sizeof(buf), "REM: %03x PAD: %03x",
adc_read(ADC_REMOTE), adc_read(ADC_SCROLLPAD));
lcd_puts(0, line++, buf);
#elif defined(PHILIPS_HDD1630)
line++;
snprintf(buf, sizeof(buf), "BATT: %03x UNK1: %03x",
adc_read(ADC_BATTERY), adc_read(ADC_UNKNOWN_1));
lcd_puts(0, line++, buf);
#elif defined(SANSA_E200) || defined(PHILIPS_SA9200)
snprintf(buf, sizeof(buf), "ADC_BVDD: %4d", adc_read(ADC_BVDD));
lcd_puts(0, line++, buf);

View file

@ -40,7 +40,7 @@ static int int_btn = BUTTON_NONE;
void button_click(void)
{
GPO32_ENABLE |= 0x2000;
GPIOD_OUTPUT_VAL |= 0x8;
GPO32_VAL |= 0x2000;
udelay(1000);
GPO32_VAL &= ~0x2000;
}