summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-10-30 08:56:06 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-10-30 08:56:06 +0000
commit139f9f28e9179a881c0bdd5c6bed6790591a07cb (patch)
tree21920a9ca8bf5e9123ff230c6aa3ec5e9b7acb1b /firmware/export
parent145ec81d2f879482fbfe192dcf39350f36bda3d7 (diff)
downloadrockbox-139f9f28e9179a881c0bdd5c6bed6790591a07cb.tar.gz
rockbox-139f9f28e9179a881c0bdd5c6bed6790591a07cb.zip
move the iriver h1x0/h3x0 targets to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/adc.h27
-rw-r--r--firmware/export/config-h100.h9
-rw-r--r--firmware/export/config-h120.h8
-rw-r--r--firmware/export/config-h300.h12
4 files changed, 27 insertions, 29 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h
index 95728d432f..4dced55f09 100644
--- a/firmware/export/adc.h
+++ b/firmware/export/adc.h
@@ -24,28 +24,6 @@
24#ifdef TARGET_TREE 24#ifdef TARGET_TREE
25#include "adc-target.h" 25#include "adc-target.h"
26 26
27#elif defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
28#define NUM_ADC_CHANNELS 4
29
30#define ADC_BUTTONS 0
31#define ADC_REMOTE 1
32#define ADC_BATTERY 2
33#define ADC_REMOTEDETECT 3
34#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */
35
36/* ADC values for different remote control types */
37#ifdef IRIVER_H100_SERIES
38#define ADCVAL_H300_LCD_REMOTE 0x5E
39#define ADCVAL_H100_LCD_REMOTE 0x96
40#define ADCVAL_H300_LCD_REMOTE_HOLD 0xCC
41#define ADCVAL_H100_LCD_REMOTE_HOLD 0xEA
42#else /* H300 series */
43#define ADCVAL_H300_LCD_REMOTE 0x35
44#define ADCVAL_H100_LCD_REMOTE 0x54
45#define ADCVAL_H300_LCD_REMOTE_HOLD 0x72
46#define ADCVAL_H100_LCD_REMOTE_HOLD 0x83
47#endif
48
49#elif defined(IRIVER_IFP7XX) 27#elif defined(IRIVER_IFP7XX)
50 28
51#define NUM_ADC_CHANNELS 5 29#define NUM_ADC_CHANNELS 5
@@ -100,9 +78,4 @@
100unsigned short adc_read(int channel); 78unsigned short adc_read(int channel);
101void adc_init(void); 79void adc_init(void);
102 80
103#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
104/* Force a scan now */
105unsigned short adc_scan(int channel);
106#endif
107
108#endif /* _ADC_H_ */ 81#endif /* _ADC_H_ */
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index 12f1066d3a..6f74078e1e 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -2,6 +2,8 @@
2#error "re-run configure this just so wrong" 2#error "re-run configure this just so wrong"
3#endif 3#endif
4 4
5#define TARGET_TREE /* this target is using the target tree system */
6
5/* 7/*
6 * This config file is for iriver iHP-100, iHP-110, iHP-115 8 * This config file is for iriver iHP-100, iHP-110, iHP-115
7 */ 9 */
@@ -145,6 +147,13 @@
145 147
146#endif /* !SIMULATOR */ 148#endif /* !SIMULATOR */
147 149
150#define DEFAULT_CONTRAST_SETTING 40
151#define MIN_CONTRAST_SETTING 5
152#define MAX_CONTRAST_SETTING 63
153#define DEFAULT_REMOTE_CONTRAST_SETTING 42
154#define MIN_REMOTE_CONTRAST_SETTING MIN_CONTRAST_SETTING
155#define MAX_REMOTE_CONTRAST_SETTING MAX_CONTRAST_SETTING
156
148/* Define this for S/PDIF input available */ 157/* Define this for S/PDIF input available */
149#define HAVE_SPDIF_IN 158#define HAVE_SPDIF_IN
150 159
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index 21451dcdac..1476102100 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -1,3 +1,4 @@
1#define TARGET_TREE /* this target is using the target tree system */
1/* 2/*
2 * This config file is for iriver H120 and H140 3 * This config file is for iriver H120 and H140
3 */ 4 */
@@ -142,6 +143,13 @@
142 143
143#endif /* !SIMULATOR */ 144#endif /* !SIMULATOR */
144 145
146#define DEFAULT_CONTRAST_SETTING 40
147#define MIN_CONTRAST_SETTING 5
148#define MAX_CONTRAST_SETTING 63
149#define DEFAULT_REMOTE_CONTRAST_SETTING 42
150#define MIN_REMOTE_CONTRAST_SETTING MIN_CONTRAST_SETTING
151#define MAX_REMOTE_CONTRAST_SETTING MAX_CONTRAST_SETTING
152
145/* Define this for S/PDIF input available */ 153/* Define this for S/PDIF input available */
146#define HAVE_SPDIF_IN 154#define HAVE_SPDIF_IN
147 155
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h
index c9aad436f1..31f0f6729f 100644
--- a/firmware/export/config-h300.h
+++ b/firmware/export/config-h300.h
@@ -1,3 +1,4 @@
1#define TARGET_TREE /* this target is using the target tree system */
1/* 2/*
2 * This config file is for iriver H320, H340 3 * This config file is for iriver H320, H340
3 */ 4 */
@@ -144,8 +145,15 @@
144#define HAVE_EEPROM 145#define HAVE_EEPROM
145 146
146#endif /* SIMULATOR */ 147#endif /* SIMULATOR */
147 148/* Main LCD contrast range and defaults */
148#define DEFAULT_REMOTE_CONTRAST_SETTING 42 149#define MIN_CONTRAST_SETTING 5
150#define MAX_CONTRAST_SETTING 63
151#define DEFAULT_CONTRAST_SETTING 40
152
153/* Remote LCD contrast range and defaults */
154#define MIN_REMOTE_CONTRAST_SETTING MIN_CONTRAST_SETTING
155#define MAX_REMOTE_CONTRAST_SETTING MAX_CONTRAST_SETTING
156#define DEFAULT_REMOTE_CONTRAST_SETTING 42
149 157
150/* Define this for FM radio input available */ 158/* Define this for FM radio input available */
151#define HAVE_FMRADIO_IN 159#define HAVE_FMRADIO_IN