summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-05 15:09:40 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-05 15:09:40 +0000
commite1446381675be454d91081a2db1d275129970556 (patch)
treefdaaab97282d3c5e339840a13c29311fa6085fd9 /bootloader
parente0646947c9d36d5095659939f73294c2b425fda8 (diff)
downloadrockbox-e1446381675be454d91081a2db1d275129970556.tar.gz
rockbox-e1446381675be454d91081a2db1d275129970556.tar.bz2
rockbox-e1446381675be454d91081a2db1d275129970556.zip
Add Onda VX767 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18422 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/SOURCES2
-rw-r--r--bootloader/ondavx747.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/bootloader/SOURCES b/bootloader/SOURCES
index 2e78caa2a3..c1771ff24f 100644
--- a/bootloader/SOURCES
+++ b/bootloader/SOURCES
@@ -31,7 +31,7 @@ mrobe500.c
telechips.c
#elif defined(MEIZU_M6SL)
meizu_m6sl.c
-#elif defined(ONDA_VX747)
+#elif defined(ONDA_VX747) || defined(ONDA_VX767)
ondavx747.c
#elif defined(CREATIVE_ZVx)
creativezvm.c
diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c
index a3a3571ac4..8dd957eca5 100644
--- a/bootloader/ondavx747.c
+++ b/bootloader/ondavx747.c
@@ -160,7 +160,11 @@ int main(void)
#endif
while(1)
{
+#ifdef ONDA_VX747
btn = button_read_device(&touch);
+#else
+ btn = button_read_device();
+#endif
#define KNOP(x,y) lcd_set_foreground(LCD_BLACK); \
if(btn & x) \
lcd_set_foreground(LCD_WHITE); \
@@ -184,6 +188,7 @@ int main(void)
{
power_off();
}
+#ifdef ONDA_VX747
if(btn & BUTTON_TOUCH)
{
lcd_set_foreground(LCD_RGBPACK(touch & 0xFF, (touch >> 8)&0xFF, (touch >> 16)&0xFF));
@@ -191,6 +196,7 @@ int main(void)
lcd_update();
lcd_set_foreground(LCD_WHITE);
}
+#endif
snprintf(datetime, 30, "%02d/%02d/%04d %02d:%02d:%02d", get_time()->tm_mday, get_time()->tm_mon, get_time()->tm_year,
get_time()->tm_hour, get_time()->tm_min, get_time()->tm_sec);
lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT, datetime);