TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F28069M: include <stdio> 重映射printf,报错

Part Number:TMS320F28069M

//串口中断重映射 uint16_t fputc(uint16_t ch, FILE *f,HAL_Handle handle){ HAL_Obj *obj = (HAL_Obj *)handle; while(SCI_txReady(obj->sciAHandle)==0); SCI_write(obj->sciAHandle,ch); return ch; }

报错:declaration is incompatible with “int fputc(int , FILE *)”

Green Deng:

你好,看一下这个帖子中的回复是否能解决问题:https://e2echina.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/205519/tms320f28069m-ti-c2000ware_3_04_00_00_software-device_support-f2806x-examples-c28-scia_loopback_interrupts 

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28069M: include <stdio> 重映射printf,报错
分享到: 更多 (0)