#include <stdio.h>
int fputc(int ch,FILE *f)
{
uint8_t temp[1]={ch};
LL_USART_TransmitData8(USART1,temp[0]);
while(!LL_USART_IsActiveFlag_TXE(USART1));//需要等待发送完成
//HAL_UART_Transmit(&huart1,temp,1,2);
return(ch);
}
stm32 ll 库 prinft 函数
最新推荐文章于 2024-05-17 08:57:52 发布