MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_soft_rtc_sync

Function rt_soft_rtc_sync

components/drivers/rtc/dev_soft_rtc.c:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255#ifdef RT_USING_SYSTEM_WORKQUEUE
256
257rt_err_t rt_soft_rtc_sync(void)
258{
259 time_t time = 0;
260
261 rt_device_control(&soft_rtc_dev, RT_DEVICE_CTRL_RTC_GET_TIME, &time);
262 set_rtc_time(time);
263 return RT_EOK;
264}
265
266static void rtc_sync_work_func(struct rt_work *work, void *work_data)
267{

Callers 2

rtc_sync_work_funcFunction · 0.85
cmd_rtc_syncFunction · 0.85

Calls 2

rt_device_controlFunction · 0.85
set_rtc_timeFunction · 0.85

Tested by

no test coverage detected