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天在整啊
轉載於:https://www.cnblogs.com/kwingmei/p/3257248.html