summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-04 13:36:54 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-04 13:36:54 +0000
commitb7beef2dba926f2b45dce1f687a84b496473e2e5 (patch)
tree07b2e7da247271c6bef723fe68989880b3d1baa0
parent93ce7d0bee0fa1ab0034533784841d24e5d02348 (diff)
Added Battery scale factor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1328 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/adc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/adc.h b/firmware/drivers/adc.h
index 61a5952174..9785f8fdef 100644
--- a/firmware/drivers/adc.h
+++ b/firmware/drivers/adc.h
@@ -30,6 +30,12 @@
#define ADC_UNREG_POWER 6
#define ADC_EXT_POWER 7
+#ifdef ARCHOS_RECORDER
+#define BATTERY_SCALE_FACTOR 6465
+#else
+#define BATTERY_SCALE_FACTOR 6546
+#endif
+
unsigned short adc_read(int channel);
void adc_init(void);