#include "stdio.h"

#ifdef __GNUC__
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#endif 
PUTCHAR_PROTOTYPE
{
HAL_UART_Transmit(&huart2 , (uint8_t *)&ch, 1, 0xFFFF);
return ch;
}

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2021-11-10
  • 2021-08-07
  • 2021-09-24
  • 2021-11-21
  • 2022-12-23
  • 2021-07-07
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2021-10-26
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案