diff options
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/stubs.c | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 0bbecdae41..ff66c1fab3 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -78,21 +78,19 @@ void audio_set_buffer_margin(int seconds) | |||
78 | } | 78 | } |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | /* Generic firmware stubs. */ | 81 | #ifdef CONFIG_BACKLIGHT |
82 | void backlight_on(void) | 82 | void sim_backlight(int value) |
83 | { | 83 | { |
84 | /* we could do something better here! */ | 84 | DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off"); |
85 | } | ||
86 | |||
87 | void backlight_off(void) | ||
88 | { | ||
89 | /* we could do something better here! */ | ||
90 | } | 85 | } |
86 | #endif | ||
91 | 87 | ||
92 | void backlight_time(int dummy) | 88 | #ifdef HAVE_REMOTE_LCD |
89 | void sim_remote_backlight(int value) | ||
93 | { | 90 | { |
94 | (void)dummy; | 91 | DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off"); |
95 | } | 92 | } |
93 | #endif | ||
96 | 94 | ||
97 | int fat_startsector(void) | 95 | int fat_startsector(void) |
98 | { | 96 | { |
@@ -167,21 +165,6 @@ bool simulate_usb(void) | |||
167 | return false; | 165 | return false; |
168 | } | 166 | } |
169 | 167 | ||
170 | void backlight_set_timeout(int index) | ||
171 | { | ||
172 | (void)index; | ||
173 | } | ||
174 | |||
175 | void backlight_set_on_when_charging(bool beep) | ||
176 | { | ||
177 | (void)beep; | ||
178 | } | ||
179 | |||
180 | void remote_backlight_set_timeout(int index) | ||
181 | { | ||
182 | (void)index; | ||
183 | } | ||
184 | |||
185 | int rtc_read(int address) | 168 | int rtc_read(int address) |
186 | { | 169 | { |
187 | time_t now = time(NULL); | 170 | time_t now = time(NULL); |