STM32 MX Cube生成的工程中 使用printf向Uart发送数据
摘要:1. 在main函数前面添加: int fputc(int ch,FILE *f){ uint8_t temp[1]={ch}; HAL_UART_Transmit(&huart1,temp,1,2); return(ch);} 2. USE Micro Lib
阅读全文
posted @ 2016-05-30 09:41
posted @ 2016-05-30 09:41
posted @ 2016-05-08 15:16