summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-10-10 19:02:49 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-10-10 19:02:49 +0000
commit2740914ee1d9274d77dfb4be6624fb557272ab6f (patch)
tree66615eb47fd3307be1d270fba4d2cbeb0a7efb42 /bootloader
parent55c929747a7524548d26de690ad1c7c111467083 (diff)
downloadrockbox-2740914ee1d9274d77dfb4be6624fb557272ab6f.tar.gz
rockbox-2740914ee1d9274d77dfb4be6624fb557272ab6f.tar.bz2
rockbox-2740914ee1d9274d77dfb4be6624fb557272ab6f.zip
Changes to make Sansa bootloader run. Thanks to Peter Praest.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/e200.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/bootloader/e200.c b/bootloader/e200.c
index 639c564ca9..91217f5c70 100644
--- a/bootloader/e200.c
+++ b/bootloader/e200.c
@@ -38,13 +38,29 @@
void main(void)
{
+ volatile unsigned int* ptr;
int i;
-
- volatile unsigned short *ptr = (unsigned short *)0x14700000;
- for(i=0; i< 10000; i++)
- *ptr++=i;
- while(1);
+ while(1)
+ {
+ // blink wheel backlight
+ ptr = (volatile unsigned int*)0x70000020;
+ if((*ptr) & (1 << 13))
+ {
+ *ptr = (*ptr) & ~(1 << 13);
+
+ }
+ else
+ {
+ *ptr = (*ptr) | (1 << 13);
+ }
+
+ // wait a while
+ for(i = 0; i < 0xfffff; i++)
+ {
+ }
+
+ }
}
/* These functions are present in the firmware library, but we reimplement