Read a character from the UART
I want to read one character from the UAR and display it.I am using CoolTerm.But nothing is displayed.What's wrong with my getchar function?Or is the code in the while loop wrong?char getchar() { char data[1]; HAL_UART_Receive(&huart2, (void*)dat...