summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-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
4 files changed, 12 insertions, 33 deletions
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 @@
#include "config.h"
#include "system.h"
#include "backlight-target.h"
-#include "lcd-remote-target.h"
#define MIN_BRIGHTNESS 0x80ff08ff
@@ -63,15 +62,3 @@ void _buttonlight_off(void)
/* turn off all touchpad leds */
GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL;
}
-
-#ifdef HAVE_REMOTE_LCD
-void _remote_backlight_on(void)
-{
- lcd_remote_backlight(true);
-}
-
-void _remote_backlight_off(void)
-{
- lcd_remote_backlight(false);
-}
-#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)
rc_status |= RC_UPDATE_CONTROLLER;
}
-void lcd_remote_backlight(bool on)
-{
- if (on)
- rc_status |= RC_BACKLIGHT_ON;
- else
- rc_status &= ~RC_BACKLIGHT_ON;
-
- rc_status |= RC_UPDATE_CONTROLLER;
-}
-
void lcd_remote_off(void)
{
/* 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)
rc_status |= RC_UPDATE_LCD;
}
+
+void _remote_backlight_on(void)
+{
+ rc_status |= RC_BACKLIGHT_ON;
+ rc_status |= RC_UPDATE_CONTROLLER;
+}
+
+void _remote_backlight_off(void)
+{
+ rc_status &= ~RC_BACKLIGHT_ON;
+ rc_status |= RC_UPDATE_CONTROLLER;
+}
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 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
-void lcd_remote_backlight(bool on);
-
bool lcd_remote_read_device(unsigned char *data);
extern 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 @@
#ifndef LCD_REMOTE_TARGET_H
#define LCD_REMOTE_TARGET_H
-#define REMOTE_INIT_LCD 1
-#define REMOTE_DEINIT_LCD 2
-
void lcd_remote_powersave(bool on);
-#ifndef SIMULATOR
-void _remote_backlight_on(void);
-void _remote_backlight_off(void);
-#endif
-
void lcd_remote_sleep(void);
int remote_read_device(void);