Get one character from the USART
I want to get one character at position x from the USART.Here is my current code:What do I have to do differently?char *getchar(int position){ char data[1]; data[0]=HAL_UART_Receive_IT(&huart2, data, 1); return data; }