diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-02-20 04:19:00 +0000 |
---|---|---|
committer | Gerrit Rockbox <gerrit@rockbox.org> | 2016-03-18 20:24:40 +0100 |
commit | a24abd2a4769b9217a584c46a0c23e26e1efe467 (patch) | |
tree | ba2e6879b0a9f3ea406d6db3d9403a14677c2898 | |
parent | 8d50cdca37753104888dfbe320a9cc91ca808d28 (diff) | |
download | rockbox-a24abd2a4769b9217a584c46a0c23e26e1efe467.tar.gz rockbox-a24abd2a4769b9217a584c46a0c23e26e1efe467.zip |
Fix NUM_ADC_CHANNELS for AS3525v2
Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
-rw-r--r-- | firmware/export/as3514.h | 4 |
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); | |||
347 | #define PLLMODE_LRCK_8_23 (0x2 << 1) | 347 | #define PLLMODE_LRCK_8_23 (0x2 << 1) |
348 | 348 | ||
349 | /* ADC channels */ | 349 | /* ADC channels */ |
350 | #if CONFIG_CPU == AS3525v2 | ||
351 | #define NUM_ADC_CHANNELS 16 | ||
352 | #else | ||
350 | #define NUM_ADC_CHANNELS 13 | 353 | #define NUM_ADC_CHANNELS 13 |
354 | #endif | ||
351 | 355 | ||
352 | #define ADC_BVDD 0 /* Battery voltage of 4V LiIo accumulator */ | 356 | #define ADC_BVDD 0 /* Battery voltage of 4V LiIo accumulator */ |
353 | #define ADC_RTCSUP 1 /* RTC backup battery voltage */ | 357 | #define ADC_RTCSUP 1 /* RTC backup battery voltage */ |