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.

[参考译文] CC2340R2:millis ()"like "函数

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1453439/cc2340r2-millis-like-function

器件型号:CC2340R2

工具与软件:

嗨、团队:  

CC2340R2上是否有与 millis ()函数类似的可用函数? 它只需要返回复位后的毫秒数或者可以转换为毫秒的值。

我的客户需要它、用于他们正在开发的在操作系统运行前执行的测试代码版本。 该计时器将基于 SysTick、而不是基于 RTOS 控制的计时器。

此致!
Luke

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

    Luke、您好!

    我们可以使用 RTC 寄存器:
    "计数器可以从两个32位寄存器中读取。 RTC。 TIME8U 的范围约为9.5小时、LSB 表示8微秒。 RTC。 TIME524M 的范围约为71.4年、LSB 代表524毫秒"  

    谢谢!
    Alex F