This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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 *)”