void uart_putchar(unsigned char k)
{
while(!(UTRSTAT0&0x04))
;
UTXH0 = k;
}
unsigned char uart_getchar(void)
{
unsigned char c;
while(!(UTRSTAT0&1<<0))
;
c = URXH0;
return c;
}
真是 踏遍铁鞋无觅处, 害我1天在整啊
void uart_putchar(unsigned char k)
{
while(!(UTRSTAT0&0x04))
;
UTXH0 = k;
}
unsigned char uart_getchar(void)
{
unsigned char c;
while(!(UTRSTAT0&1<<0))
;
c = URXH0;
return c;
}
真是 踏遍铁鞋无觅处, 害我1天在整啊