2012年5月14日

摘要: 在STM32工程中调用printf函数,需要加入如下代码:#ifdef __GNUC__ /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf set to 'Yes') calls __io_putchar() */ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)#else #define PCHAR_PROTOTYPE int fputc(int ch, FILE *f)#endif /* __GNUC_ 阅读全文

posted @ 2012-05-14 23:48 蓝色星宇 阅读(3465) 评论(0) 推荐(0) 编辑


Copyright © 2024 蓝色星宇
Powered by .NET 8.0 on Kubernetes

跟小D每日学口语 跟小D每日学口语