summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c
diff options
context:
space:
mode:
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.c50
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
48static bool remote_hold_button=false;
49
50bool remote_initialized=true; 48bool remote_initialized=true;
51 49
52static unsigned char remote_contrast=DEFAULT_REMOTE_CONTRAST_SETTING; 50static 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
295bool remote_button_hold(void)
296{
297 return remote_hold_button;
298}
299
300int 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
343void _remote_backlight_on(void) 293void _remote_backlight_on(void)
344{ 294{
345 remote_power|=0x40; 295 remote_power|=0x40;