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.

[参考译文] SIMPLELINK-CC13XX-CC26XX-SDK:针对 TI-RTOS7 时钟初始化 SimpleLink Academy — 自定义配置文件中给出的代码

Guru**** 2419530 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1541067/simplelink-cc13xx-cc26xx-sdk-for-the-code-given-in-ti-rtos7-clock-initialization-simplelink-academy---custom-profile

器件型号:SIMPLELINK-CC13XX-CC26XX-SDK


工具/软件:

您好、

下面显示了简单链接学院“Custom Profiles“的任务 6 中“添加和初始化时钟“下列出的时钟初始化示例代码。

// clockParams is only used during init and can be on the stack.
Clock_Params myClockParams;
// Insert default params
Clock_Params_init(&myClockParams);
// Set a period, so it times out periodically without jitter
myClockParams.period = DEFAULT_SUNLIGHT_TIMEOUT * (1000/Clock_tickPeriod),
// Initialize the clock object / Clock_Struct previously added globally.
Clock_construct(&myClock, myClockSwiFxn,
            0, // Initial delay before first timeout
            &myClockParams);

在第 6 行“myClockParams.period = default_sunt_timeout *(1000/Clock_tickPeriod)“末尾的“、“的意图是什么?
这只是一个拼写错误吗?

此致。

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

    尊敬的 Yasukane:

    感谢您联系我们!

    你是对的;这是一个拼写错误... 感谢您告诉我们! 应该是终止命令行的分号(而不是逗号)。 我们将进入并更新 SLA 中的代码。

    谢谢、

    Mayur