summaryrefslogtreecommitdiffstats
path: root/firmware/export/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/adc.h')
-rw-r--r--firmware/export/adc.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h
index 4082e4b39b..027c7154f0 100644
--- a/firmware/export/adc.h
+++ b/firmware/export/adc.h
@@ -21,7 +21,15 @@
#include "config.h"
-#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
+#ifdef IAUDIO_X5
+#define NUM_ADC_CHANNELS 3
+
+#define ADC_BUTTONS 0
+#define ADC_REMOTE 1
+#define ADC_BATTERY 2
+#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */
+
+#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
#define NUM_ADC_CHANNELS 4
#define ADC_BUTTONS 0