diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c index 2e3a8bed3d..2a600d7d18 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c | |||
@@ -45,8 +45,6 @@ static enum remote_draw_states | |||
45 | DRAW_PAUSE, | 45 | DRAW_PAUSE, |
46 | } remote_state_draw = DRAW_TOP, remote_state_draw_next; | 46 | } remote_state_draw = DRAW_TOP, remote_state_draw_next; |
47 | 47 | ||
48 | static bool remote_hold_button=false; | ||
49 | |||
50 | bool remote_initialized=true; | 48 | bool remote_initialized=true; |
51 | 49 | ||
52 | static unsigned char remote_contrast=DEFAULT_REMOTE_CONTRAST_SETTING; | 50 | static unsigned char remote_contrast=DEFAULT_REMOTE_CONTRAST_SETTING; |
@@ -292,54 +290,6 @@ void lcd_remote_update_rect(int x, int y, int width, int height) | |||
292 | remote_state_control=REMOTE_CONTROL_DRAW; | 290 | remote_state_control=REMOTE_CONTROL_DRAW; |
293 | } | 291 | } |
294 | 292 | ||
295 | bool remote_button_hold(void) | ||
296 | { | ||
297 | return remote_hold_button; | ||
298 | } | ||
299 | |||
300 | int remote_read_device(void) | ||
301 | { | ||
302 | static char read_buffer[5]; | ||
303 | int read_button = BUTTON_NONE; | ||
304 | |||
305 | static int oldbutton=BUTTON_NONE; | ||
306 | |||
307 | /* Handle remote buttons */ | ||
308 | if(uart1_gets_queue(read_buffer, 5)>=0) | ||
309 | { | ||
310 | int button_location; | ||
311 | |||
312 | for(button_location=0;button_location<4;button_location++) | ||
313 | { | ||
314 | if((read_buffer[button_location]&0xF0)==0xF0 | ||
315 | && (read_buffer[button_location+1]&0xF0)!=0xF0) | ||
316 | break; | ||
317 | } | ||
318 | |||
319 | if(button_location==4) | ||
320 | button_location=0; | ||
321 | |||
322 | button_location++; | ||
323 | |||
324 | read_button |= read_buffer[button_location]; | ||
325 | |||
326 | /* Find the hold status location */ | ||
327 | if(button_location==4) | ||
328 | button_location=0; | ||
329 | else | ||
330 | button_location++; | ||
331 | |||
332 | remote_hold_button=((read_buffer[button_location]&0x80)?true:false); | ||
333 | |||
334 | uart1_clear_queue(); | ||
335 | oldbutton=read_button; | ||
336 | } | ||
337 | else | ||
338 | read_button=oldbutton; | ||
339 | |||
340 | return read_button; | ||
341 | } | ||
342 | |||
343 | void _remote_backlight_on(void) | 293 | void _remote_backlight_on(void) |
344 | { | 294 | { |
345 | remote_power|=0x40; | 295 | remote_power|=0x40; |