mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 00:22:29 -05:00
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:
parent
1774d4d885
commit
aaa8443af9
7 changed files with 27 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue