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