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.

[参考译文] TM4C129XNCZAD:TivaWare 中的函数原型不匹配

Guru**** 2318210 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/584826/tm4c129xnczad-function-prototype-mismatch-in-tivaware

器件型号:TM4C129XNCZAD

只是偶然发现 ustdlib 中的函数原型不匹配。 它存在于 TivaWare 的所有版本中、并在使用最高优化时导致编译错误:

ustdlib.h:

extern int usprintf (char * restrict s、const char * restrict 格式、...);

ustdlib.c:

int usprintf (char * restrict s、const char *格式、...)

显然、c 文件中缺少"restrict"关键字。

此致

Klaus

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    感谢您观看本演示。 我记录了该误差以供将来更正。