BaseDrive/uart.c
/*
*   After define @fputc, you can use "printf()" to send message through USART1 
*/
After define @fputc, you can use "printf()" to send message through USART1
After define @fputc you can use " printf () " to send message through USART1
int fputc(int ch, FILE *f)
{
	USART_SendData(USART1, (uint8_t) ch);
	while (USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET);
	return ch;
}
int fputc ( int ch , FILE * f ) { USART_SendData ( USART1 , ( uint8_t ) ch ) ; while ( USART_GetFlagStatus ( USART1 , USART_FLAG_TXE ) == RESET ) ; return ch ; }
After define @fputc, you can use "printf()" to send message through USART1
After define @fputc you can use " printf () " to send message through USART1
/* Place your implementation of fputc here */ /* e.g. write a character to the USART */ /* Loop until the end of transmission */