summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c5
-rwxr-xr-xfirmware/target/arm/philips/hdd1630/button-hdd1630.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index d3022df..f613c0a 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -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);
diff --git a/firmware/target/arm/philips/hdd1630/button-hdd1630.c b/firmware/target/arm/philips/hdd1630/button-hdd1630.c
index 8976e73..c0ac8d7 100755
--- a/firmware/target/arm/philips/hdd1630/button-hdd1630.c
+++ b/firmware/target/arm/philips/hdd1630/button-hdd1630.c
@@ -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;
}