summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/backlight.h18
-rw-r--r--firmware/export/config-fmrecorder.h6
-rw-r--r--firmware/export/config-h100.h6
-rw-r--r--firmware/export/config-h120.h6
-rw-r--r--firmware/export/config-h300.h6
-rw-r--r--firmware/export/config-ipodcolor.h6
-rw-r--r--firmware/export/config-ipodnano.h6
-rw-r--r--firmware/export/config-player.h6
-rw-r--r--firmware/export/config-recorder.h6
-rw-r--r--firmware/export/config-recorderv2.h6
-rw-r--r--firmware/export/lcd-remote.h2
11 files changed, 40 insertions, 34 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 6fee2c0db5..6d3d4d5451 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -21,24 +21,32 @@
21 21
22#include "config.h" 22#include "config.h"
23 23
24void backlight_init(void);
25void backlight_on(void); 24void backlight_on(void);
26void backlight_off(void); 25void backlight_off(void);
27void backlight_tick(void);
28int backlight_get_timeout(void);
29void backlight_set_timeout(int index); 26void backlight_set_timeout(int index);
27#ifdef CONFIG_BACKLIGHT
28void backlight_init(void);
29int backlight_get_timeout(void);
30#if CONFIG_BACKLIGHT == BL_IRIVER_H100 30#if CONFIG_BACKLIGHT == BL_IRIVER_H100
31void backlight_set_fade_in(int index); 31void backlight_set_fade_in(int index);
32void backlight_set_fade_out(int index); 32void backlight_set_fade_out(int index);
33#endif 33#endif
34bool backlight_get_on_when_charging(void); 34bool backlight_get_on_when_charging(void);
35void backlight_set_on_when_charging(bool yesno); 35void backlight_set_on_when_charging(bool yesno);
36void remote_backlight_on(void);
37void remote_backlight_off(void);
38extern const char backlight_timeout_value[]; 36extern const char backlight_timeout_value[];
37#else
38#define backlight_init()
39#endif
39 40
40#ifdef HAVE_REMOTE_LCD 41#ifdef HAVE_REMOTE_LCD
42void remote_backlight_on(void);
43void remote_backlight_off(void);
41void remote_backlight_set_timeout(int index); 44void remote_backlight_set_timeout(int index);
45void remote_backlight_set_on_when_charging(bool yesno);
42#endif 46#endif
43 47
48#ifdef SIMULATOR
49void sim_backlight(int value);
50void sim_remote_backlight(int value);
51#endif
44#endif 52#endif
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index ac6f37c8c9..28d8239c22 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -32,6 +32,9 @@
32/* Define this for S/PDIF input available */ 32/* Define this for S/PDIF input available */
33#define HAVE_SPDIF_IN 33#define HAVE_SPDIF_IN
34 34
35/* Define this for LCD backlight available */
36#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
37
35#ifndef SIMULATOR 38#ifndef SIMULATOR
36 39
37/* Define this if you have a SH7034 */ 40/* Define this if you have a SH7034 */
@@ -83,9 +86,6 @@
83/* Software controlled LED */ 86/* Software controlled LED */
84#define CONFIG_LED LED_REAL 87#define CONFIG_LED LED_REAL
85 88
86/* Define this for LCD backlight available */
87#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
88
89/* define this if the unit can be powered or charged via USB */ 89/* define this if the unit can be powered or charged via USB */
90#define HAVE_USB_POWER 90#define HAVE_USB_POWER
91 91
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index ef13380538..1327be7e27 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -38,6 +38,9 @@
38 38
39#define CONFIG_LCD LCD_S1D15E06 39#define CONFIG_LCD LCD_S1D15E06
40 40
41/* Define this for LCD backlight available */
42#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
43
41/* Define this if you have a software controlled poweroff */ 44/* Define this if you have a software controlled poweroff */
42#define HAVE_SW_POWEROFF 45#define HAVE_SW_POWEROFF
43 46
@@ -77,9 +80,6 @@
77/* The size of the flash ROM */ 80/* The size of the flash ROM */
78#define FLASH_SIZE 0x200000 81#define FLASH_SIZE 0x200000
79 82
80/* Define this for LCD backlight available */
81#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
82
83/* Define this to the CPU frequency */ 83/* Define this to the CPU frequency */
84#define CPU_FREQ 11289600 84#define CPU_FREQ 11289600
85 85
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index d67973c0b3..fd001a470e 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -31,6 +31,9 @@
31 31
32#define CONFIG_LCD LCD_S1D15E06 32#define CONFIG_LCD LCD_S1D15E06
33 33
34/* Define this for LCD backlight available */
35#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
36
34/* Define this if you have a software controlled poweroff */ 37/* Define this if you have a software controlled poweroff */
35#define HAVE_SW_POWEROFF 38#define HAVE_SW_POWEROFF
36 39
@@ -72,9 +75,6 @@
72/* The size of the flash ROM */ 75/* The size of the flash ROM */
73#define FLASH_SIZE 0x200000 76#define FLASH_SIZE 0x200000
74 77
75/* Define this for LCD backlight available */
76#define CONFIG_BACKLIGHT BL_IRIVER_H100 /* port controlled */
77
78/* Define this to the CPU frequency */ 78/* Define this to the CPU frequency */
79#define CPU_FREQ 11289600 79#define CPU_FREQ 11289600
80 80
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h
index 256cdeac77..5524a55dc0 100644
--- a/firmware/export/config-h300.h
+++ b/firmware/export/config-h300.h
@@ -36,6 +36,9 @@
36/* Define this if you have an remote lcd */ 36/* Define this if you have an remote lcd */
37#define HAVE_REMOTE_LCD 37#define HAVE_REMOTE_LCD
38 38
39/* Define this for LCD backlight available */
40#define CONFIG_BACKLIGHT BL_IRIVER_H300 /* port controlled PWM */
41
39/* Define this if you have a software controlled poweroff */ 42/* Define this if you have a software controlled poweroff */
40#define HAVE_SW_POWEROFF 43#define HAVE_SW_POWEROFF
41 44
@@ -69,9 +72,6 @@
69/* The size of the flash ROM */ 72/* The size of the flash ROM */
70#define FLASH_SIZE 0x400000 73#define FLASH_SIZE 0x400000
71 74
72/* Define this for LCD backlight available */
73#define CONFIG_BACKLIGHT BL_IRIVER_H300 /* port controlled PWM */
74
75/* Define this to the CPU frequency */ 75/* Define this to the CPU frequency */
76#define CPU_FREQ 11289600 76#define CPU_FREQ 11289600
77 77
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 0e1637d765..c1068b06eb 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -38,6 +38,9 @@
38/* Define this if you have the WM8975 audio codec */ 38/* Define this if you have the WM8975 audio codec */
39#define HAVE_WM8975 39#define HAVE_WM8975
40 40
41/* Define this for LCD backlight available */
42#define CONFIG_BACKLIGHT BL_IPOD4G /* port controlled */
43
41#ifndef SIMULATOR 44#ifndef SIMULATOR
42 45
43/* Define this if you have a PortalPlayer PP5020 */ 46/* Define this if you have a PortalPlayer PP5020 */
@@ -60,9 +63,6 @@
60/* The start address index for ROM builds */ 63/* The start address index for ROM builds */
61#define ROM_START 0x00000000 64#define ROM_START 0x00000000
62 65
63/* Define this for LCD backlight available */
64#define CONFIG_BACKLIGHT BL_IPOD4G /* port controlled */
65
66/* Define this to the CPU frequency */ 66/* Define this to the CPU frequency */
67#define CPU_FREQ 11289600 67#define CPU_FREQ 11289600
68 68
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 3423079be0..99eb67b5bf 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -38,6 +38,9 @@
38/* Define this if you have the WM8975 audio codec */ 38/* Define this if you have the WM8975 audio codec */
39#define HAVE_WM8975 39#define HAVE_WM8975
40 40
41/* Define this for LCD backlight available */
42#define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */
43
41#ifndef SIMULATOR 44#ifndef SIMULATOR
42 45
43/* The Nano actually has a PP5021 - but it's register compatible with 46/* The Nano actually has a PP5021 - but it's register compatible with
@@ -62,9 +65,6 @@
62/* The start address index for ROM builds */ 65/* The start address index for ROM builds */
63#define ROM_START 0x00000000 66#define ROM_START 0x00000000
64 67
65/* Define this for LCD backlight available */
66#define CONFIG_BACKLIGHT BL_IPODNANO /* port controlled */
67
68/* Define this to the CPU frequency */ 68/* Define this to the CPU frequency */
69#define CPU_FREQ 11289600 69#define CPU_FREQ 11289600
70 70
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index e12e2234e1..f3b1bbddd7 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -20,6 +20,9 @@
20/* Define this if you have a DAC3550A */ 20/* Define this if you have a DAC3550A */
21#define HAVE_DAC3550A 21#define HAVE_DAC3550A
22 22
23/* Define this for LCD backlight available */
24#define CONFIG_BACKLIGHT BL_PA14_LO /* port PA14, low active */
25
23#ifndef SIMULATOR 26#ifndef SIMULATOR
24 27
25/* Define this if you have a SH7034 */ 28/* Define this if you have a SH7034 */
@@ -70,9 +73,6 @@
70/* Software controlled LED */ 73/* Software controlled LED */
71#define CONFIG_LED LED_REAL 74#define CONFIG_LED LED_REAL
72 75
73/* Define this for LCD backlight available */
74#define CONFIG_BACKLIGHT BL_PA14_LO /* port PA14, low active */
75
76#define CONFIG_LCD LCD_SSD1801 76#define CONFIG_LCD LCD_SSD1801
77 77
78#define BOOTFILE_EXT "mod" 78#define BOOTFILE_EXT "mod"
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index c674b63996..32c29b2ec5 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -26,6 +26,9 @@
26/* Define this for S/PDIF input available */ 26/* Define this for S/PDIF input available */
27#define HAVE_SPDIF_IN 27#define HAVE_SPDIF_IN
28 28
29/* Define this for LCD backlight available */
30#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
31
29#ifndef SIMULATOR 32#ifndef SIMULATOR
30 33
31/* Define this if you have a SH7034 */ 34/* Define this if you have a SH7034 */
@@ -74,9 +77,6 @@
74/* Software controlled LED */ 77/* Software controlled LED */
75#define CONFIG_LED LED_REAL 78#define CONFIG_LED LED_REAL
76 79
77/* Define this for LCD backlight available */
78#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
79
80/* Define this for S/PDIF output available */ 80/* Define this for S/PDIF output available */
81#define HAVE_SPDIF_OUT 81#define HAVE_SPDIF_OUT
82 82
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index 1de321799e..fbe99812dc 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -29,6 +29,9 @@
29/* Define this for S/PDIF input available */ 29/* Define this for S/PDIF input available */
30#define HAVE_SPDIF_IN 30#define HAVE_SPDIF_IN
31 31
32/* Define this for LCD backlight available */
33#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
34
32#ifndef SIMULATOR 35#ifndef SIMULATOR
33 36
34/* Define this if you have a SH7034 */ 37/* Define this if you have a SH7034 */
@@ -83,9 +86,6 @@
83/* Software controlled LED */ 86/* Software controlled LED */
84#define CONFIG_LED LED_REAL 87#define CONFIG_LED LED_REAL
85 88
86/* Define this for LCD backlight available */
87#define CONFIG_BACKLIGHT BL_RTC /* on I2C controlled RTC port */
88
89/* define this if the unit can be powered or charged via USB */ 89/* define this if the unit can be powered or charged via USB */
90#define HAVE_USB_POWER 90#define HAVE_USB_POWER
91 91
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h
index 6d5091fc66..491e055b17 100644
--- a/firmware/export/lcd-remote.h
+++ b/firmware/export/lcd-remote.h
@@ -30,8 +30,6 @@
30#define STYLE_INVERT 1 30#define STYLE_INVERT 1
31 31
32extern void lcd_remote_init(void); 32extern void lcd_remote_init(void);
33extern void lcd_remote_backlight_on(void);
34extern void lcd_remote_backlight_off(void);
35extern int lcd_remote_default_contrast(void); 33extern int lcd_remote_default_contrast(void);
36extern void lcd_remote_set_contrast(int val); 34extern void lcd_remote_set_contrast(int val);
37extern void lcd_remote_emireduce(bool state); 35extern void lcd_remote_emireduce(bool state);