Based on Ludovic Lange excellent work, I've modified things to increase

likeliness that this works on an FM Recorder.

Reports please!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3143 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2003-01-21 19:37:29 +00:00
parent 1774d4d885
commit aaa8443af9
7 changed files with 27 additions and 11 deletions

View file

@ -38,12 +38,6 @@
#define ADC_UNREG_POWER 6 /* Battery voltage with a better scaling */
#define ADC_EXT_POWER 7 /* The external power voltage, V=X*0.0148 */
#ifdef ARCHOS_RECORDER
#define BATTERY_SCALE_FACTOR 6465
#else
#define BATTERY_SCALE_FACTOR 6546
#endif
#define EXT_SCALE_FACTOR 14800
unsigned short adc_read(int channel);