summaryrefslogtreecommitdiffstats
path: root/bootloader/ondavx747.c
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/ondavx747.c
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/ondavx747.c')
-rw-r--r--bootloader/ondavx747.c6
1 files changed, 6 insertions, 0 deletions
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);