主题中讨论的其他器件:CC1310
您好!
我是 Radhika、正在研究使用 CC1310的项目。
不得不管理日期和时间,所以尝试在 NORTOS 中实施代码。
用于设置电机运行时间的 API、 seconds_set (newTime -2208988800); 在我的代码中无法正常工作。
如何在 CC1310 NORTOS 中使用此 API ?
谢谢。
此致、
拉迪卡
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.
您好!
我是 Radhika、正在研究使用 CC1310的项目。
不得不管理日期和时间,所以尝试在 NORTOS 中实施代码。
用于设置电机运行时间的 API、 seconds_set (newTime -2208988800); 在我的代码中无法正常工作。
如何在 CC1310 NORTOS 中使用此 API ?
谢谢。
此致、
拉迪卡
seconds_set 是一个 tirtos 内核服务 API (https://software-dl.ti.com/lprf/simplelink_cc26x2_sdk-1.60/docs/tirtos/sysbios/docs/cdoc/ti/sysbios/hal/Seconds.html)、但您使用的 NoRTOS 不提供该服务。 您必须自己实施它。 您可以通过 AONRTCSecGet (https://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/2_14_01_20/exports/tirtos_full_2_14_01_20/products/cc26xxware_2_21_03_15980/doc/driverlib/group__aonrtc__api.html#ga139caabd8d9d9b3f5a86b043fb6263a3)获取当前时间戳。 这将为您提供自引导以来的时间。 为了调整时间、您可以在应用程序中存储偏移、因为您无法更改 RTC 硬件时间戳。