summaryrefslogtreecommitdiff
path: root/bootloader/ondavx747.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/ondavx747.c')
-rw-r--r--[-rwxr-xr-x]bootloader/ondavx747.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c
index 0695dc0190..09acbc8166 100755..100644
--- a/bootloader/ondavx747.c
+++ b/bootloader/ondavx747.c
@@ -29,13 +29,13 @@
29#include "lcd.h" 29#include "lcd.h"
30#include "ata.h" 30#include "ata.h"
31#include "usb.h" 31#include "usb.h"
32#include "storage.h"
33#include "system.h" 32#include "system.h"
34#include "button.h" 33#include "button.h"
35#include "timefuncs.h" 34#include "timefuncs.h"
36#include "rtc.h" 35#include "rtc.h"
37#include "common.h" 36#include "common.h"
38#include "mipsregs.h" 37#include "mipsregs.h"
38#include "storage.h"
39 39
40#ifdef ONDA_VX747P 40#ifdef ONDA_VX747P
41 #define ONDA_VX747 41 #define ONDA_VX747
@@ -112,19 +112,14 @@ int main(void)
112 KNOP(BUTTON_POWER, 3); 112 KNOP(BUTTON_POWER, 3);
113 lcd_set_foreground(LCD_WHITE); 113 lcd_set_foreground(LCD_WHITE);
114 if(button_hold()) 114 if(button_hold())
115 {
116 printf("BUTTON_HOLD"); 115 printf("BUTTON_HOLD");
117 asm("break 0x7");
118 }
119 if(btn & BUTTON_POWER) 116 if(btn & BUTTON_POWER)
120 {
121 power_off(); 117 power_off();
122 }
123#ifdef ONDA_VX747 118#ifdef ONDA_VX747
124 if(btn & BUTTON_TOUCH) 119 if(btn & BUTTON_TOUCH)
125 { 120 {
126 lcd_set_foreground(LCD_RGBPACK(touch & 0xFF, (touch >> 8)&0xFF, (touch >> 16)&0xFF)); 121 lcd_set_foreground(LCD_RGBPACK(touch & 0xFF, (touch >> 8)&0xFF, (touch >> 16)&0xFF));
127 lcd_fillrect((touch>>16)-10, (touch&0xFFFF)-5, 10, 10); 122 lcd_fillrect((touch>>16)-5, (touch&0xFFFF)-5, 5, 5);
128 lcd_update(); 123 lcd_update();
129 lcd_set_foreground(LCD_WHITE); 124 lcd_set_foreground(LCD_WHITE);
130 } 125 }