summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/backlight.h2
-rw-r--r--firmware/target/arm/olympus/mrobe-100/backlight-mr100.c13
-rw-r--r--firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c22
-rw-r--r--firmware/target/arm/olympus/mrobe-100/lcd-remote-target.h2
-rw-r--r--firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-target.h8
-rw-r--r--firmware/target/coldfire/iaudio/lcd-remote-target.h3
-rw-r--r--firmware/target/coldfire/iriver/lcd-remote-target.h3
7 files changed, 14 insertions, 39 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 3b33e1a019..ceeb979573 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -65,6 +65,8 @@ void lcd_set_sleep_after_backlight_off(int index);
65#endif /* !HAVE_BACKLIGHT */ 65#endif /* !HAVE_BACKLIGHT */
66 66
67#ifdef HAVE_REMOTE_LCD 67#ifdef HAVE_REMOTE_LCD
68void _remote_backlight_on(void);
69void _remote_backlight_off(void);
68void remote_backlight_on(void); 70void remote_backlight_on(void);
69void remote_backlight_off(void); 71void remote_backlight_off(void);
70void remote_backlight_set_timeout(int value); 72void remote_backlight_set_timeout(int value);
diff --git a/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c b/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c
index 7dd80946cd..f3891c5000 100644
--- a/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c
+++ b/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c
@@ -22,7 +22,6 @@
22#include "config.h" 22#include "config.h"
23#include "system.h" 23#include "system.h"
24#include "backlight-target.h" 24#include "backlight-target.h"
25#include "lcd-remote-target.h"
26 25
27#define MIN_BRIGHTNESS 0x80ff08ff 26#define MIN_BRIGHTNESS 0x80ff08ff
28 27
@@ -63,15 +62,3 @@ void _buttonlight_off(void)
63 /* turn off all touchpad leds */ 62 /* turn off all touchpad leds */
64 GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL; 63 GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL;
65} 64}
66
67#ifdef HAVE_REMOTE_LCD
68void _remote_backlight_on(void)
69{
70 lcd_remote_backlight(true);
71}
72
73void _remote_backlight_off(void)
74{
75 lcd_remote_backlight(false);
76}
77#endif
diff --git a/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c b/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c
index 1f7ab47a0f..ca4bbde483 100644
--- a/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c
+++ b/firmware/target/arm/olympus/mrobe-100/lcd-remote-mr100.c
@@ -486,16 +486,6 @@ void lcd_remote_set_contrast(int val)
486 rc_status |= RC_UPDATE_CONTROLLER; 486 rc_status |= RC_UPDATE_CONTROLLER;
487} 487}
488 488
489void lcd_remote_backlight(bool on)
490{
491 if (on)
492 rc_status |= RC_BACKLIGHT_ON;
493 else
494 rc_status &= ~RC_BACKLIGHT_ON;
495
496 rc_status |= RC_UPDATE_CONTROLLER;
497}
498
499void lcd_remote_off(void) 489void lcd_remote_off(void)
500{ 490{
501 /* should only be used to power off at shutdown */ 491 /* should only be used to power off at shutdown */
@@ -560,3 +550,15 @@ void lcd_remote_update_rect(int x, int y, int width, int height)
560 550
561 rc_status |= RC_UPDATE_LCD; 551 rc_status |= RC_UPDATE_LCD;
562} 552}
553
554void _remote_backlight_on(void)
555{
556 rc_status |= RC_BACKLIGHT_ON;
557 rc_status |= RC_UPDATE_CONTROLLER;
558}
559
560void _remote_backlight_off(void)
561{
562 rc_status &= ~RC_BACKLIGHT_ON;
563 rc_status |= RC_UPDATE_CONTROLLER;
564}
diff --git a/firmware/target/arm/olympus/mrobe-100/lcd-remote-target.h b/firmware/target/arm/olympus/mrobe-100/lcd-remote-target.h
index a214690aec..ac576c104e 100644
--- a/firmware/target/arm/olympus/mrobe-100/lcd-remote-target.h
+++ b/firmware/target/arm/olympus/mrobe-100/lcd-remote-target.h
@@ -21,8 +21,6 @@
21#ifndef LCD_REMOTE_TARGET_H 21#ifndef LCD_REMOTE_TARGET_H
22#define LCD_REMOTE_TARGET_H 22#define LCD_REMOTE_TARGET_H
23 23
24void lcd_remote_backlight(bool on);
25
26bool lcd_remote_read_device(unsigned char *data); 24bool lcd_remote_read_device(unsigned char *data);
27 25
28extern unsigned int rc_status; 26extern unsigned int rc_status;
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-target.h b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-target.h
index a3657490eb..2790388833 100644
--- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-target.h
+++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-target.h
@@ -21,16 +21,8 @@
21#ifndef LCD_REMOTE_TARGET_H 21#ifndef LCD_REMOTE_TARGET_H
22#define LCD_REMOTE_TARGET_H 22#define LCD_REMOTE_TARGET_H
23 23
24#define REMOTE_INIT_LCD 1
25#define REMOTE_DEINIT_LCD 2
26
27void lcd_remote_powersave(bool on); 24void lcd_remote_powersave(bool on);
28 25
29#ifndef SIMULATOR
30void _remote_backlight_on(void);
31void _remote_backlight_off(void);
32#endif
33
34void lcd_remote_sleep(void); 26void lcd_remote_sleep(void);
35 27
36int remote_read_device(void); 28int remote_read_device(void);
diff --git a/firmware/target/coldfire/iaudio/lcd-remote-target.h b/firmware/target/coldfire/iaudio/lcd-remote-target.h
index fe55212b81..aaa31116ad 100644
--- a/firmware/target/coldfire/iaudio/lcd-remote-target.h
+++ b/firmware/target/coldfire/iaudio/lcd-remote-target.h
@@ -21,9 +21,6 @@
21#ifndef LCD_REMOTE_TARGET_H 21#ifndef LCD_REMOTE_TARGET_H
22#define LCD_REMOTE_TARGET_H 22#define LCD_REMOTE_TARGET_H
23 23
24#define REMOTE_INIT_LCD 1
25#define REMOTE_DEINIT_LCD 2
26
27void lcd_remote_powersave(bool on); 24void lcd_remote_powersave(bool on);
28void lcd_remote_poweroff(void); /* for when remote is plugged during shutdown*/ 25void lcd_remote_poweroff(void); /* for when remote is plugged during shutdown*/
29 26
diff --git a/firmware/target/coldfire/iriver/lcd-remote-target.h b/firmware/target/coldfire/iriver/lcd-remote-target.h
index 85bc754143..99bda496e8 100644
--- a/firmware/target/coldfire/iriver/lcd-remote-target.h
+++ b/firmware/target/coldfire/iriver/lcd-remote-target.h
@@ -21,9 +21,6 @@
21#ifndef LCD_REMOTE_TARGET_H 21#ifndef LCD_REMOTE_TARGET_H
22#define LCD_REMOTE_TARGET_H 22#define LCD_REMOTE_TARGET_H
23 23
24#define REMOTE_INIT_LCD 1
25#define REMOTE_DEINIT_LCD 2
26
27#ifdef HAVE_REMOTE_LCD_TICKING 24#ifdef HAVE_REMOTE_LCD_TICKING
28void lcd_remote_emireduce(bool state); 25void lcd_remote_emireduce(bool state);
29#endif 26#endif