summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-02-20 04:19:00 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-03-18 20:24:40 +0100
commita24abd2a4769b9217a584c46a0c23e26e1efe467 (patch)
treeba2e6879b0a9f3ea406d6db3d9403a14677c2898
parent8d50cdca37753104888dfbe320a9cc91ca808d28 (diff)
downloadrockbox-a24abd2.tar.gz
rockbox-a24abd2.tar.bz2
rockbox-a24abd2.zip
Fix NUM_ADC_CHANNELS for AS3525v2
Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
-rw-r--r--firmware/export/as3514.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
index 783683e593..7a617d469b 100644
--- a/firmware/export/as3514.h
+++ b/firmware/export/as3514.h
@@ -347,7 +347,11 @@ void audiohw_set_sampr_dividers(int fsel);
#define PLLMODE_LRCK_8_23 (0x2 << 1)
/* ADC channels */
+#if CONFIG_CPU == AS3525v2
+#define NUM_ADC_CHANNELS 16
+#else
#define NUM_ADC_CHANNELS 13
+#endif
#define ADC_BVDD 0 /* Battery voltage of 4V LiIo accumulator */
#define ADC_RTCSUP 1 /* RTC backup battery voltage */