就是 PUTCHAR_PROTOTYPE 代替了fputc?那PUTCHAR_PROTOTYPE 重新自己编写一个函数

例如

//以便使用 printf 函数
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
PUTCHAR_PROTOTYPE
{
   com_snd(DEBUG_COM, 1, (unsigned char*)&ch);
   return ch;
}

PUTCHAR_PROTOTYPE替换了int fputc(int ch, FILE *f)函数进行了编译, printf 函数条用的时候 其实条用的是 PUTCHAR_PROTOTYPE函数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2022-03-08
  • 2021-11-30
  • 2022-01-10
  • 2021-06-11
相关资源
相似解决方案