uart_tx: update

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-04-12 19:38:26 +08:00
parent ba91618324
commit ef8f1d5ca9
4 changed files with 481 additions and 481 deletions

View File

@ -5,20 +5,11 @@
static void uart_putc(uint8_t c)
{
while (UART0_REG(UART0_STATUS) & 0x1);
UART0_REG(UART0_TXDATA) = c;
}
int main()
{
UART0_REG(UART0_CTRL) = 0x1;
uart_init();
xdev_out(uart_putc);
xprintf("%d hello world\n", 1);
xprintf("hello world\n");
while (1);
}

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff