rtc set time

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

rtc set time

1,314 次查看
carmilili
Contributor III

Hello everyone,

I want to set the RTC time.But the kernel code of "rtc-test.c"do not achieve functional.The function  test_rtc_set_time() and test_rtc_set_mmss() do not achieve functional.

The BSP is LTIB.My board is MCIMX6Q-SDB.Now I can read the time throw the node of “/dev/rtc0”.

How can I finish the above two function?

标签 (3)
0 项奖励
回复
1 回复

1,182 次查看
AnsonHuang
NXP Employee
NXP Employee

Hi, Carmili

     I think you can refer to Documentation/rtc.txt, there are many IOCTLs that you can use from userspace, just write an app to call them, if you are using L3.0.35, maybe you can just use the rtc unit test in /unit_tests/mxc_rtc_...

0 项奖励
回复