summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-10-31 00:16:42 +0000
committerDave Chapman <dave@dchapman.com>2008-10-31 00:16:42 +0000
commit42f77d4eb027afed4f4ef80f10c16112c2b7fe2b (patch)
tree2da09bcab257322dce48ddccc4a71d915318aa3a /apps
parent324816f0190dec308f3496a288820a47926b1c17 (diff)
downloadrockbox-42f77d4eb027afed4f4ef80f10c16112c2b7fe2b.tar.gz
rockbox-42f77d4eb027afed4f4ef80f10c16112c2b7fe2b.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c6
1 files changed, 4 insertions, 2 deletions
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 @@
103#endif 103#endif
104 104
105#if defined(SANSA_E200) || defined(PHILIPS_SA9200) 105#if defined(SANSA_E200) || defined(PHILIPS_SA9200)
106#include "i2c-pp.h" 106#include "ascodec.h"
107#include "as3514.h" 107#include "as3514.h"
108#endif 108#endif
109 109
@@ -1228,7 +1228,9 @@ bool dbg_ports(void)
1228 lcd_puts(0, line++, buf); 1228 lcd_puts(0, line++, buf);
1229 snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT)); 1229 snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT));
1230 lcd_puts(0, line++, buf); 1230 lcd_puts(0, line++, buf);
1231 snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", i2c_readbyte(AS3514_I2C_ADDR, AS3514_CHARGER), i2c_readbyte(AS3514_I2C_ADDR, AS3514_IRQ_ENRD0)); 1231 snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X",
1232 ascodec_read(AS3514_CHARGER),
1233 ascodec_read(AS3514_IRQ_ENRD0));
1232 lcd_puts(0, line++, buf); 1234 lcd_puts(0, line++, buf);
1233#endif 1235#endif
1234#endif 1236#endif