mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 18:44:40 +02:00
change serial_puti to serial_putc
This commit is contained in:
parent
b92d8222aa
commit
07ac5def3b
@ -23,10 +23,6 @@
|
||||
#define rUTXH0 (*(volatile unsigned char *)0x50000023)
|
||||
#define UTRSTAT (*(volatile unsigned char *)0x50000010)
|
||||
|
||||
/*
|
||||
#define PUT_CHAR() (rUTXH0
|
||||
#define ORANGE_OFF() (GPBDAT &= ~(0x1))
|
||||
*/
|
||||
void serial_putc (const char c);
|
||||
|
||||
void serial_puti (const int i);
|
||||
|
||||
|
@ -25,9 +25,9 @@
|
||||
/*
|
||||
* Output a single byte to the serial port.
|
||||
*/
|
||||
void serial_puti (const int i)
|
||||
void serial_putc (const char c)
|
||||
{
|
||||
while (!(UTRSTAT & 0x2));
|
||||
|
||||
rUTXH0 |= i;
|
||||
rUTXH0 = c;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ unsigned char buf[2048];
|
||||
int start_kboot(void)
|
||||
{
|
||||
/*1 say hello to uart */
|
||||
serial_puti (123);
|
||||
serial_putc ('a');
|
||||
blue_on(1);
|
||||
/*2. test nand flash */
|
||||
if(nand_read_ll(buf, 0x40000, sizeof(buf))==-1) {
|
||||
|
Loading…
Reference in New Issue
Block a user