From b4275d4941e464c851ae3f5fe33c80f56ea365e5 Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Wed, 21 May 2008 03:55:17 +0000 Subject: Philips GoGear SA9200 port. Working bootloader and normal builds, including sound. No touchpad now, buttons limited to using vol+/vol-/power for up/down/select. Rockbox USB is enabled since the OF is MTP only...read the warnings on the PortalPlayerUsb wiki page. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17591 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index e198bfa..313a2aa 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -99,7 +99,7 @@ #include "debug-target.h" #endif -#if defined(SANSA_E200) +#if defined(SANSA_E200) || defined(PHILIPS_SA9200) #include "i2c-pp.h" #include "as3514.h" #endif @@ -1017,6 +1017,11 @@ static bool dbg_spdif(void) #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ (CONFIG_KEYPAD == SANSA_C200_PAD) # define DEBUG_CANCEL BUTTON_LEFT + +/* This is temporary until the SA9200 touchpad works */ +#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) +# define DEBUG_CANCEL BUTTON_POWER + #endif /* key definitions */ /* Test code!!! */ @@ -1197,7 +1202,7 @@ bool dbg_ports(void) snprintf(buf, sizeof(buf), "REM: %03x PAD: %03x", adc_read(ADC_REMOTE), adc_read(ADC_SCROLLPAD)); lcd_puts(0, line++, buf); -#elif defined(SANSA_E200) +#elif defined(SANSA_E200) || defined(PHILIPS_SA9200) snprintf(buf, sizeof(buf), "ADC_BVDD: %4d", adc_read(ADC_BVDD)); lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_RTCSUP: %4d", adc_read(ADC_RTCSUP)); @@ -1220,6 +1225,7 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_I_MICSUP1:%4d", adc_read(ADC_I_MICSUP1)); lcd_puts(0, line++, buf); +#if !defined(PHILIPS_SA9200) snprintf(buf, sizeof(buf), "ADC_I_MICSUP2:%4d", adc_read(ADC_I_MICSUP2)); lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT)); @@ -1227,6 +1233,7 @@ bool dbg_ports(void) snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", i2c_readbyte(AS3514_I2C_ADDR, AS3514_CHARGER), i2c_readbyte(AS3514_I2C_ADDR, AS3514_IRQ_ENRD0)); lcd_puts(0, line++, buf); #endif +#endif lcd_update(); if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) return false; @@ -2136,7 +2143,7 @@ static bool dbg_save_roms(void) return false; } -#elif defined(CPU_PP) && !(defined(SANSA_E200) || defined(SANSA_C200)) +#elif defined(CPU_PP) && !defined(HAVE_ATA_SD) static bool dbg_save_roms(void) { int fd; @@ -2459,7 +2466,7 @@ struct the_menu_item { }; static const struct the_menu_item menuitems[] = { #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ - (defined(CPU_PP) && !(defined(SANSA_E200) || defined(SANSA_C200))) + (defined(CPU_PP) && !defined(HAVE_ATA_SD)) { "Dump ROM contents", dbg_save_roms }, #endif #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ -- cgit v1.1