Hi Glenn Kosteva
The TryGetchar API will go and check to verify if there is a new data and continue (in non blocking way), if it exists data, it will be saved. One way to use it could be
while (1)
{
DbgConsole_TryGetchar(&ch);
if(ch)
{
PUTCHAR(ch);
ch=0;
}
}You can use the GETCHAR function which in low-level driver uses nonblocking functions. Another option could be implementing the UART nonblocking transfer.
Hope this helps.
Regards,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------