1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 18:54:39 +02:00

change serial_puti to serial_putc

This commit is contained in:
xiangfu 2008-07-24 23:12:37 -04:00
parent b92d8222aa
commit 07ac5def3b
3 changed files with 4 additions and 8 deletions

View File

@ -23,10 +23,6 @@
#define rUTXH0 (*(volatile unsigned char *)0x50000023) #define rUTXH0 (*(volatile unsigned char *)0x50000023)
#define UTRSTAT (*(volatile unsigned char *)0x50000010) #define UTRSTAT (*(volatile unsigned char *)0x50000010)
/* void serial_putc (const char c);
#define PUT_CHAR() (rUTXH0
#define ORANGE_OFF() (GPBDAT &= ~(0x1))
*/
void serial_puti (const int i);

View File

@ -25,9 +25,9 @@
/* /*
* Output a single byte to the serial port. * Output a single byte to the serial port.
*/ */
void serial_puti (const int i) void serial_putc (const char c)
{ {
while (!(UTRSTAT & 0x2)); while (!(UTRSTAT & 0x2));
rUTXH0 |= i; rUTXH0 = c;
} }

View File

@ -40,7 +40,7 @@ unsigned char buf[2048];
int start_kboot(void) int start_kboot(void)
{ {
/*1 say hello to uart */ /*1 say hello to uart */
serial_puti (123); serial_putc ('a');
blue_on(1); blue_on(1);
/*2. test nand flash */ /*2. test nand flash */
if(nand_read_ll(buf, 0x40000, sizeof(buf))==-1) { if(nand_read_ll(buf, 0x40000, sizeof(buf))==-1) {