PUTCHAR_PROTOTYPE
{ /* Place your implementation of fputc here */ /* e.g. write a character to the USART */ USART_SendData(USARTx_PRINTF, (uint8_t) ch);
/* Loop until the end of transmission */ while (USART_GetFlagStatus(USARTx_PRINTF, USART_FLAG_TC) == RESET) {}
return ch;
}