summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-16bit.c2
-rwxr-xr-xfirmware/target/coldfire/iaudio/x5/lcd-x5.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-16bit.c b/firmware/drivers/lcd-16bit.c
index ebf714709c..4297937abd 100644
--- a/firmware/drivers/lcd-16bit.c
+++ b/firmware/drivers/lcd-16bit.c
@@ -72,11 +72,13 @@ static const char scroll_tick_table[16] = {
72 100, 80, 64, 50, 40, 32, 25, 20, 16, 12, 10, 8, 6, 5, 4, 3 72 100, 80, 64, 50, 40, 32, 25, 20, 16, 12, 10, 8, 6, 5, 4, 3
73}; 73};
74 74
75#ifndef TARGET_TREE
75/* probably just a dummy */ 76/* probably just a dummy */
76int lcd_default_contrast(void) 77int lcd_default_contrast(void)
77{ 78{
78 return 28; 79 return 28;
79} 80}
81#endif
80 82
81/* LCD init */ 83/* LCD init */
82void lcd_init(void) 84void lcd_init(void)
diff --git a/firmware/target/coldfire/iaudio/x5/lcd-x5.c b/firmware/target/coldfire/iaudio/x5/lcd-x5.c
index 1adcf6aaea..7c155eac8f 100755
--- a/firmware/target/coldfire/iaudio/x5/lcd-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/lcd-x5.c
@@ -137,6 +137,11 @@ inline void lcd_write_data(const unsigned short* p_bytes, int count)
137 137
138/*** hardware configuration ***/ 138/*** hardware configuration ***/
139 139
140int lcd_default_contrast(void)
141{
142 return 16;
143}
144
140void lcd_set_contrast(int val) 145void lcd_set_contrast(int val)
141{ 146{
142 if (val >= 15) // val must'nt be 15 or 31 147 if (val >= 15) // val must'nt be 15 or 31