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.

TMS320F28034: 这个芯片能用串口重定向printf函数吗?用来打印流程进展字符。

Part Number: TMS320F28034

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");  目前采用的是这种方式,他不能打印整数值和换行符。