diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-05 15:09:40 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-09-05 15:09:40 +0000 |
commit | e1446381675be454d91081a2db1d275129970556 (patch) | |
tree | fdaaab97282d3c5e339840a13c29311fa6085fd9 /bootloader/ondavx747.c | |
parent | e0646947c9d36d5095659939f73294c2b425fda8 (diff) | |
download | rockbox-e1446381675be454d91081a2db1d275129970556.tar.gz 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.c | 6 |
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) | |||
160 | #endif | 160 | #endif |
161 | while(1) | 161 | while(1) |
162 | { | 162 | { |
163 | #ifdef ONDA_VX747 | ||
163 | btn = button_read_device(&touch); | 164 | btn = button_read_device(&touch); |
165 | #else | ||
166 | btn = button_read_device(); | ||
167 | #endif | ||
164 | #define KNOP(x,y) lcd_set_foreground(LCD_BLACK); \ | 168 | #define KNOP(x,y) lcd_set_foreground(LCD_BLACK); \ |
165 | if(btn & x) \ | 169 | if(btn & x) \ |
166 | lcd_set_foreground(LCD_WHITE); \ | 170 | lcd_set_foreground(LCD_WHITE); \ |
@@ -184,6 +188,7 @@ int main(void) | |||
184 | { | 188 | { |
185 | power_off(); | 189 | power_off(); |
186 | } | 190 | } |
191 | #ifdef ONDA_VX747 | ||
187 | if(btn & BUTTON_TOUCH) | 192 | if(btn & BUTTON_TOUCH) |
188 | { | 193 | { |
189 | lcd_set_foreground(LCD_RGBPACK(touch & 0xFF, (touch >> 8)&0xFF, (touch >> 16)&0xFF)); | 194 | lcd_set_foreground(LCD_RGBPACK(touch & 0xFF, (touch >> 8)&0xFF, (touch >> 16)&0xFF)); |
@@ -191,6 +196,7 @@ int main(void) | |||
191 | lcd_update(); | 196 | lcd_update(); |
192 | lcd_set_foreground(LCD_WHITE); | 197 | lcd_set_foreground(LCD_WHITE); |
193 | } | 198 | } |
199 | #endif | ||
194 | snprintf(datetime, 30, "%02d/%02d/%04d %02d:%02d:%02d", get_time()->tm_mday, get_time()->tm_mon, get_time()->tm_year, | 200 | snprintf(datetime, 30, "%02d/%02d/%04d %02d:%02d:%02d", get_time()->tm_mday, get_time()->tm_mon, get_time()->tm_year, |
195 | get_time()->tm_hour, get_time()->tm_min, get_time()->tm_sec); | 201 | get_time()->tm_hour, get_time()->tm_min, get_time()->tm_sec); |
196 | lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT, datetime); | 202 | lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT, datetime); |