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.

[参考译文] RTOS/TM4C1294KCPDT:如何设置或复位以秒为单位的纳秒模块

Guru**** 2618835 points

Other Parts Discussed in Thread: SYSBIOS

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/784081/rtos-tm4c1294kcpdt-how-to-set-or-reset-a-nanoseconds-in-seconds-module

器件型号:TM4C1294KCPDT
Thread 中讨论的其他器件:SYSBIOS

工具/软件:TI-RTOS

您好!

在 TI_RTOS 中、是否有任何复位纳秒的设置?

通过使用 seconds_getTime (&ts);API、我们将获得秒和纳秒。

有一个选项可设置秒。 比如、是否有复位纳秒的选项?

需要快速回复。


此致、
Prem Kumar。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您是否尝试使用 seconds_setTime (&ts)?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、ScottG、

    感谢您的回答。 这是否适用于 CCSV6.2?

    目前我使用的是 CCSV6.2、SYSBIOS V6.45和 TI-RTOS V2.16、但在这些版本中找不到此 API。 您能否确认此 API 是否可用?


    此致、
    Prem Kumar。

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

    Prem、

    否,v6.45内核中不提供 seconds_setTime()函数。  我刚刚检查了这个函数、这个函数在去年10月被添加为一个新的内核 API。  您将需要使用 SYS/BIOS v6.75或更高版本来获得此 API。  您可以在6.75下载页面中看到 API 的说明: software-dl.ti.com/.../index_FDS.html,单击“API Documentation”,然后导航至 ti.sysbios.hal.seconds

    很抱歉,我没有意识到这是最近才添加的,我是在之前回复您的。

    此致、
    Scott