1
0
Fork 0
forked from len0rd/rockbox

Seperate M:Robe crt0.S, fix the vector tables for the bootloader, and show touchscreen values on single line.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14814 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2007-09-22 06:04:14 +00:00
parent e571cfb070
commit 4a42723c33
7 changed files with 246 additions and 41 deletions

View file

@ -41,13 +41,15 @@
#include "spi-target.h"
#include "uart-target.h"
extern int line;
void main(void)
{
unsigned char* loadbuffer;
/* unsigned char* loadbuffer;
int buffer_size;
int rc;
int(*kernel_entry)(void);
*/
power_init();
system_init();
kernel_init();
@ -115,12 +117,14 @@ void main(void)
unsigned char out[] = {command >> 8, command & 0xff};
unsigned char in[8];
dm320_spi_block_transfer(out, sizeof(out), in, sizeof(in));
printf("%02x%02x %02x%02x %02x%02x %02x%02x\n",
in[0], in[1],
in[2], in[3],
in[4], in[5],
in[6], in[7]);
line--;
}
#if 0
rc = ata_init();