summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-10 21:44:48 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-10 21:44:48 +0000
commit4bf4d2bb55535c9c90afff717bcf046bd19af982 (patch)
tree0c1a8c5a4a636339699059c7300cb45f6cd129e4 /bootloader
parent4396b5b101dba2af84ad92bdefd16c5b6210f910 (diff)
downloadrockbox-4bf4d2bb55535c9c90afff717bcf046bd19af982.tar.gz
rockbox-4bf4d2bb55535c9c90afff717bcf046bd19af982.tar.bz2
rockbox-4bf4d2bb55535c9c90afff717bcf046bd19af982.zip
* Get interrupts working (but crashes after 10-30secs)
* Make current_tick increase * Convert button driver into SADC driver * Make touchscreen handling work better (still needs good calibration routine) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18240 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/ondavx747.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c
index a9230e7ac5..41fb00b28a 100644
--- a/bootloader/ondavx747.c
+++ b/bootloader/ondavx747.c
@@ -43,7 +43,8 @@ static void audiotest(void)
}
int main(void)
-{
+{
+ cli();
kernel_init();
lcd_init();
font_init();
@@ -55,6 +56,8 @@ int main(void)
ata_init();
+ sti();
+
/* To make Windows say "ding-dong".. */
REG8(USB_REG_POWER) &= ~USB_POWER_SOFTCONN;
@@ -136,12 +139,10 @@ int main(void)
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);
- snprintf(datetime, 30, "%d", REG_TCU_TCNT0);
+ snprintf(datetime, 30, "%d", current_tick);
lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT*2, datetime);
snprintf(datetime, 30, "X: %d Y: %d", touch>>16, touch & 0xFFFF);
lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT*3, datetime);
- snprintf(datetime, 30, "%d", read_c0_count());
- lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*strlen(datetime), LCD_HEIGHT-SYSFONT_HEIGHT*4, datetime);
lcd_update();
}