Other Parts Discussed in Thread: MSP430FR5992
主题中讨论的其他器件:MSP430FR5992
您好、TI 团队、
您能否为我提供一个代码来将 RTC 时间从日历转换为 epoch 时间格式。 如果您有任何代码可供我提供该资源。
此致
阿比塞克
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.
Other Parts Discussed in Thread: MSP430FR5992
您好、TI 团队、
您能否为我提供一个代码来将 RTC 时间从日历转换为 epoch 时间格式。 如果您有任何代码可供我提供该资源。
此致
阿比塞克
尊敬的 Xiaodong:
在这里、IMX8处理器是主处理器、mspm0是从处理器。 因此、imx8将通过 SPI 协议发送 epoch 时间。 我们的 MSP 将获取该 epoch 时间并将其存储在 RTC 寄存器中、当 IMX 请求读取更新的 epoch 数据时、MSP 将从 RTC 寄存器获取值、将其转换为 epoch 格式、并将更新的 epoch 时间发送到 imx8。
此致
阿比塞克
您好!
这在 msp430fr5992中正常工作。 此 time.h 文件位于 C:\ti\ccs1240\ccs\tools\compiler\ti-CGT-MSP430_21.6.0.LTs\include\time.h 中。
我也测试了此代码。 在我的代码中实现的 mktime()和 localtime()函数正在运行。 另外、还请介绍如何在我的代码中实现这些函数。
此致
阿比塞克