请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
Thread 中讨论的其他器件:SYSBIOS工具/软件:TI-RTOS
您好!
对于我的项目、我需要一个实时时钟。 遗憾的是、我找不到任何有关如何实现它的示例。
我使用的是 MSP432。
感谢你的帮助
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.
谢谢 Janet、
我尝试过:
Seconds_set (1412800000);
while (1){
uint32_t sec = seconds_get();
System_printf ("Sec =%i\n"、秒);
system_flush();
Task_sleep ((UINT) arg0);
GPIO_TOGGLE (Board_LED0);
}
它可以缝合工作。
然后、我注释掉了设置命令:
//seconds_set (1412800000);
之后、时间不会每秒增加一次。
我尚未从交流电源拔下设备。
这是否意味着我必须设置每次重建程序时的时间、或者我的 RTC 不能正常工作。
谢谢!
Miha.