void sci_puts(char *p)
{
struct SCI_REGS *reg;
reg = &SciaRegs;
while(*p != 0)
{
while(!IS_COMU_UART_TXE(reg));
COMU_UART_TXDATA(reg, *p);
p++;
}
}
sci_puts("qurey\n\r"); 目前采用的是这种方式,他不能打印整数值和换行符。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
void sci_puts(char *p)
{
struct SCI_REGS *reg;
reg = &SciaRegs;
while(*p != 0)
{
while(!IS_COMU_UART_TXE(reg));
COMU_UART_TXDATA(reg, *p);
p++;
}
}
sci_puts("qurey\n\r"); 目前采用的是这种方式,他不能打印整数值和换行符。