在线时间393 小时
UID123826
注册时间2009-4-22
NXP金币0
TA的每日心情 | 难过 2021-12-15 16:01 |
---|
签到天数: 1 天 [LV.1]初来乍到
中级会员
- 积分
- 373
- 最后登录
- 2023-8-16
|
发表于 2022-3-24 13:46:44
|
显示全部楼层
不是的。reset收到一个乱码是因为上断电时,IO口会产生杂波,导致串口以为收到了数据,可以用示波器看一下波形。eclipse使用的是gcc的编译环境。
#ifdef __GNUC__
/* With GCC/RAISONANCE, small debug_printf (option LD Linker->Libraries->Small debug_printf
set to 'Yes') calls __io_putchar() */
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#endif /* __GNUC__ */
PUTCHAR_PROTOTYPE
{
/* Place your implementation of fputc here */
//这里填写串口发送代码。
return (ch);
}
|
|