forked from len0rd/rockbox
Added iRiver ADC channel info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5429 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fea2472326
commit
27d00ca527
1 changed files with 11 additions and 0 deletions
|
|
@ -19,6 +19,16 @@
|
||||||
#ifndef _ADC_H_
|
#ifndef _ADC_H_
|
||||||
#define _ADC_H_
|
#define _ADC_H_
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#ifdef IRIVER_H100
|
||||||
|
#define NUM_ADC_CHANNELS 4
|
||||||
|
|
||||||
|
#define ADC_BUTTONS 0
|
||||||
|
#define ADC_REMOTE 1
|
||||||
|
#define ADC_BATTERY 2
|
||||||
|
|
||||||
|
#else
|
||||||
#define NUM_ADC_CHANNELS 8
|
#define NUM_ADC_CHANNELS 8
|
||||||
|
|
||||||
#ifdef HAVE_ONDIO_ADC
|
#ifdef HAVE_ONDIO_ADC
|
||||||
|
|
@ -56,6 +66,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EXT_SCALE_FACTOR 14800
|
#define EXT_SCALE_FACTOR 14800
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned short adc_read(int channel);
|
unsigned short adc_read(int channel);
|
||||||
void adc_init(void);
|
void adc_init(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue