From 42f77d4eb027afed4f4ef80f10c16112c2b7fe2b Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 31 Oct 2008 00:16:42 +0000 Subject: Abstract the PortalPlayer AS3514 handling with an "ascodec" API - inspired by the wmcodec API used with the Wolfson codecs. The intention is to implement this API for the AS3525 and then share code with the Sansa V2 ports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18940 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index ad19c3a7b2..8c4622828d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -103,7 +103,7 @@ #endif #if defined(SANSA_E200) || defined(PHILIPS_SA9200) -#include "i2c-pp.h" +#include "ascodec.h" #include "as3514.h" #endif @@ -1228,7 +1228,9 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT)); lcd_puts(0, line++, buf); - snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", i2c_readbyte(AS3514_I2C_ADDR, AS3514_CHARGER), i2c_readbyte(AS3514_I2C_ADDR, AS3514_IRQ_ENRD0)); + snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", + ascodec_read(AS3514_CHARGER), + ascodec_read(AS3514_IRQ_ENRD0)); lcd_puts(0, line++, buf); #endif #endif -- cgit v1.2.3