Src/main.c
/**
  * @brief  Retargets the C library printf function to the USART.
  * @param  None
  * @retval None
  */
@brief  Retargets the C library printf function to the USART.
@param  None
@retval None
@brief Retargets the C library printf function to the USART . @param None @retval None
int fputc(int ch, FILE *f)
{
  while(__HAL_UART_GET_FLAG(&UartHandle, UART_FLAG_TXE) != 1);
  UartHandle.Instance->DR = (uint8_t)(ch & 0xff);
  return ch;
}
int fputc ( int ch , FILE * f ) { while ( __HAL_UART_GET_FLAG ( & UartHandle , UART_FLAG_TXE ) != 1 ) ; UartHandle . Instance -> DR = ( uint8_t ) ( ch & 0xff ) ; return ch ; }
@brief  Retargets the C library printf function to the USART.
@brief Retargets the C library printf function to the USART .