forked from len0rd/rockbox
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
This commit is contained in:
parent
55c929747a
commit
2740914ee1
2 changed files with 23 additions and 12 deletions
|
@ -38,13 +38,29 @@
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
|
volatile unsigned int* ptr;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
volatile unsigned short *ptr = (unsigned short *)0x14700000;
|
|
||||||
|
|
||||||
for(i=0; i< 10000; i++)
|
while(1)
|
||||||
*ptr++=i;
|
{
|
||||||
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
|
/* These functions are present in the firmware library, but we reimplement
|
||||||
|
|
|
@ -7,15 +7,10 @@ INPUT(target/coldfire/crt0.o)
|
||||||
#elif defined (CPU_ARM)
|
#elif defined (CPU_ARM)
|
||||||
OUTPUT_FORMAT(elf32-littlearm)
|
OUTPUT_FORMAT(elf32-littlearm)
|
||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
#ifndef IPOD_ARCH
|
#ifndef CPU_PP
|
||||||
/* the ipods can't have the crt0.o mentioned here, but the others can't do
|
/* PortalPlayer-based machines won't work if crt0 is included */
|
||||||
without it! */
|
|
||||||
#ifdef CPU_PP
|
|
||||||
INPUT(target/arm/crt0-pp.o)
|
|
||||||
#else
|
|
||||||
INPUT(target/arm/crt0.o)
|
INPUT(target/arm/crt0.o)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
OUTPUT_FORMAT(elf32-sh)
|
OUTPUT_FORMAT(elf32-sh)
|
||||||
INPUT(target/sh/crt0.o)
|
INPUT(target/sh/crt0.o)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue