还真是,getchar调的是这个函数,为什么回死循环
int DbgConsole_Getchar(void)
{
char ch;
/* Do nothing if the debug UART is not initialized. */
if (s_debugConsole.type == DEBUG_CONSOLE_DEVICE_TYPE_NONE)
{
return -1;
}
while (kStatus_Success != s_debugConsole.ops.rx_union.GetChar(s_debugConsole.base, (uint8_t *)(&ch), 1))
{
return -1;
}