diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-11 11:01:55 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-11 11:01:55 +0000 |
| commit | ce505b8a01d3fcebeab5bcced0688d62eae1083e (patch) | |
| tree | adc78b407d64dca0e9e053d7caa2f262e6dbd92d /bootloader/sansa_as3525.c | |
| parent | d5ea63a1e89c60f732834d82ece8aca67564756c (diff) | |
| download | rockbox-ce505b8a01d3fcebeab5bcced0688d62eae1083e.zip rockbox-ce505b8a01d3fcebeab5bcced0688d62eae1083e.tar.gz rockbox-ce505b8a01d3fcebeab5bcced0688d62eae1083e.tar.bz2 rockbox-ce505b8a01d3fcebeab5bcced0688d62eae1083e.tar.xz | |
the delay in the as3525 bootloader was driving me mad so remove it and get the bootloader closer to where a "finished" one should be (only show info if sometrhing needs to be shown, which is always for now.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19085 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/sansa_as3525.c')
| -rw-r--r-- | bootloader/sansa_as3525.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bootloader/sansa_as3525.c b/bootloader/sansa_as3525.c index e6152c7..d59e7e7 100644 --- a/bootloader/sansa_as3525.c +++ b/bootloader/sansa_as3525.c @@ -28,6 +28,7 @@ #include "config.h" #include "lcd.h" #include "backlight-target.h" +#include "button-target.h" #include "ascodec-target.h" #include "common.h" #include "storage.h" @@ -41,7 +42,6 @@ void main(void) int buffer_size; void(*kernel_entry)(void); int ret; - int delay; system_init(); kernel_init(); @@ -52,9 +52,16 @@ void main(void) ascodec_init(); /* Required for backlight on e200v2 */ _backlight_on(); - delay = 0x3000000; - while(delay--); /* show splash screen */ - reset_screen(); +#if 0 /* remove me when the bootloader can be considered finished */ + int btn = button_read_device(); + + /* Enable bootloader messages if any button is pressed */ + if (btn) +#endif + { + lcd_clear_display(); + verbose = true; + } asm volatile( "mrs r0, cpsr \n" |