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 蓝色星宇 阅读(3495) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3

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