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.

[参考译文] TI-RSLK:模块18实验18.4.4示例代码有错误

Guru**** 2568565 points


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

https://e2e.ti.com/support/tools/simulation-hardware-system-design-tools-group/sim-hw-system-design/f/simulation-hardware-system-design-tools-forum/724518/ti-rslk-module-18-lab-18-4-4-example-code-has-errors

我尝试使用  模块18 实验18:串行通信手册第18.4.4节中列出的代码示例、但我收到了此代码的编译器错误。  在列出的代码中、 "Sensor"和&goSensor"之间的 Sensor 条目缺少逗号、 "right"的函数指针条目显示"&doFast"而不是"&doRight"。  如果我在我的代码中进行这些更改、它看起来会按预期工作。

下面是指向我要引用的文档的链接。

http://www.ti.com/lit/ml/swrp217/swrp217.pdf 

相关代码为:

typedef struct {
char cmdname[8];//命令
void (*fnctPt)(void)的名称;//要执行此命令
}Cmd_t;
const Cmd_t Table[8]={
"Stop"、&doStop}、
{"Go"、&Dogo}、
{"Back "、 doBack}、
{"左"、&doLeft}、
{"右"、&doFast}、
{"慢速"、&doSlow}、
{"快速"、&doFast}、
{"传感器"&goSensor}}; 

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

    您好、Jon、

    感谢您在计划中找到此排印错误、团队将更新文档。 感谢您详细查看文档。

    谢谢

    Ayesha

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

    已更新。

    谢谢

    Ayesha