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)
|
||||
{
|
||||
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
|
||||
|
|
|
@ -7,15 +7,10 @@ INPUT(target/coldfire/crt0.o)
|
|||
#elif defined (CPU_ARM)
|
||||
OUTPUT_FORMAT(elf32-littlearm)
|
||||
OUTPUT_ARCH(arm)
|
||||
#ifndef IPOD_ARCH
|
||||
/* the ipods can't have the crt0.o mentioned here, but the others can't do
|
||||
without it! */
|
||||
#ifdef CPU_PP
|
||||
INPUT(target/arm/crt0-pp.o)
|
||||
#else
|
||||
#ifndef CPU_PP
|
||||
/* PortalPlayer-based machines won't work if crt0 is included */
|
||||
INPUT(target/arm/crt0.o)
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
OUTPUT_FORMAT(elf32-sh)
|
||||
INPUT(target/sh/crt0.o)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue