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.

TMS570LS3137: Compilation issue in Spi_PBcfg.c

Part Number: TMS570LS3137


In AUTOSAR_MCAL_TMS570LSx-05.30.00, the generated extern declarations from Spi_PBcfg.c are as follows

extern CDD_PM_TPS_Callback();
extern CDD_LSD_TLE_Callback();
extern CDD_IO_MCP_Callback();
extern CDD_IO_TIC_Callback();
extern CDD_PLCModem_Callback();
extern Fls_30_Spi01_DrvSequenceCbk();
extern Fls_30_Spi01_DrvSequenceCbk();
extern Fls_30_Spi01_DrvSequenceCbk();

(missing return type and empty argument list (“variadic”))

And here is the compiler warning for the five callback declarations at the top:

"GenData/src/Spi_PBcfg.c", line 1234: warning: a value of type "int (*)()" cannot be used to initialize an entity of type "void (*)(void)"

The warnings have to be fixed.