用GD32 Embedded Builder 直接生成的GD32f310工程,printf打印串口没有输出信息,int fputc(int ch, FILE *f)
{
usart_data_transmit(EVAL_COM, (uint8_t)ch);
while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
return ch;
}
printf("\r\nCK_SYS is %d", rcu_clock_freq_get(CK_SYS));没有输出,点灯和按键响应正常
|