Hi,
I'm using the mcu_plus_sdk_243x tcp server example.
I see that DebugP_log() uses UART to print out.
Is there a function to read UART - like getch() ?
How to add it to the example code ?
Thanks,
Eli
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.
Hi,
I'm using the mcu_plus_sdk_243x tcp server example.
I see that DebugP_log() uses UART to print out.
Is there a function to read UART - like getch() ?
How to add it to the example code ?
Thanks,
Eli
Hi Eli,
The SDK has one API to read one line: Debug_Scanf().
There is a UART API to read a char: UART_getChar(). Please refer to the SDK UART example at:
C:\ti\mcu_plus_sdk_am243x_08_06_00_45\examples\drivers\uart\
Hi,
I'm looking at the example.
UART_getChar(uint32_t baseAddr, uint8_t *pChar) - the function takes two parameters
Is the baseAddr should be equal to CONFIG_UART0 which is a define in sysconfig ?
Thanks,
Eli