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.
在串口通信中,打开了多个串口,那么函数extern void UARTprintf(const char *pcString, ...);是通过哪个串口发出去的?
UARTprintf这个函数来自C:\ti\TivaWare_C_Series-2.1.0.12573\utils\uartstdio.c
TivaWare中默认的使用串口0。在这个文件中:
//*****************************************************************************
//
// The base address of the chosen UART.
//
//*****************************************************************************
static uint32_t g_ui32Base = 0;