summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c5240d0de8..99c00fa1eb 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -78,6 +78,9 @@
78#include "spdif.h" 78#include "spdif.h"
79#endif 79#endif
80#endif 80#endif
81#ifdef IRIVER_H300_SERIES
82#include "pcf50606.h" /* for pcf50606_read */
83#endif
81 84
82#ifdef IAUDIO_X5 85#ifdef IAUDIO_X5
83#include "lcd-remote-target.h" 86#include "lcd-remote-target.h"
@@ -1059,6 +1062,16 @@ bool dbg_ports(void)
1059 lcd_puts(0, line++, buf); 1062 lcd_puts(0, line++, buf);
1060 snprintf(buf, sizeof(buf), "GPIO1_ENABLE: %08x", gpio1_enable); 1063 snprintf(buf, sizeof(buf), "GPIO1_ENABLE: %08x", gpio1_enable);
1061 lcd_puts(0, line++, buf); 1064 lcd_puts(0, line++, buf);
1065#if defined(IRIVER_H300_SERIES)
1066 snprintf(buf, sizeof(buf), "GPOOD0: %08x", (unsigned int)pcf50606_read(0x37));
1067 lcd_puts(0, line++, buf);
1068 snprintf(buf, sizeof(buf), "GPOOD1: %08x", (unsigned int)pcf50606_read(0x38));
1069 lcd_puts(0, line++, buf);
1070 snprintf(buf, sizeof(buf), "GPOOD2: %08x", (unsigned int)pcf50606_read(0x39));
1071 lcd_puts(0, line++, buf);
1072 snprintf(buf, sizeof(buf), "GPOOD3: %08x", (unsigned int)pcf50606_read(0x3A));
1073 lcd_puts(0, line++, buf);
1074#endif
1062 1075
1063 adc_buttons = adc_read(ADC_BUTTONS); 1076 adc_buttons = adc_read(ADC_BUTTONS);
1064 adc_remote = adc_read(ADC_REMOTE); 1077 adc_remote = adc_read(ADC_REMOTE);
@@ -1422,6 +1435,14 @@ static bool view_battery(void)
1422 snprintf(buf, 30, "long delta: %d", long_delta); 1435 snprintf(buf, 30, "long delta: %d", long_delta);
1423 lcd_puts(0, 6, buf); 1436 lcd_puts(0, 6, buf);
1424 lcd_puts(0, 7, power_message); 1437 lcd_puts(0, 7, power_message);
1438 snprintf(buf, 30, "USB Inserted: %s",
1439 usb_inserted() ? "yes" : "no");
1440 lcd_puts(0, 8, buf);
1441#if defined IRIVER_H300_SERIES
1442 snprintf(buf, 30, "USB Charging Enabled: %s",
1443 usb_charging_enabled() ? "yes" : "no");
1444 lcd_puts(0, 9, buf);
1445#endif
1425#else /* CONFIG_CHARGING != CHARGING_CONTROL */ 1446#else /* CONFIG_CHARGING != CHARGING_CONTROL */
1426#if defined IPOD_NANO || defined IPOD_VIDEO 1447#if defined IPOD_NANO || defined IPOD_VIDEO
1427 int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false; 1448 int usb_pwr = (GPIOL_INPUT_VAL & 0x10)?true:false;