diff options
Diffstat (limited to 'firmware/target/arm/olympus')
3 files changed, 12 insertions, 25 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 @@ | |||
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 | ||
68 | void _remote_backlight_on(void) | ||
69 | { | ||
70 | lcd_remote_backlight(true); | ||
71 | } | ||
72 | |||
73 | void _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 | ||
489 | void 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 | |||
499 | void lcd_remote_off(void) | 489 | void 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 | |||
554 | void _remote_backlight_on(void) | ||
555 | { | ||
556 | rc_status |= RC_BACKLIGHT_ON; | ||
557 | rc_status |= RC_UPDATE_CONTROLLER; | ||
558 | } | ||
559 | |||
560 | void _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 | ||
24 | void lcd_remote_backlight(bool on); | ||
25 | |||
26 | bool lcd_remote_read_device(unsigned char *data); | 24 | bool lcd_remote_read_device(unsigned char *data); |
27 | 25 | ||
28 | extern unsigned int rc_status; | 26 | extern unsigned int rc_status; |