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

Function pico_rtc_get_secs

bsp/raspberry-pico/Drivers/drv_rtc.c:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static rt_err_t pico_rtc_get_secs(time_t *sec)
64{
65 struct timeval tv;
66
67 pico_rtc_get_timeval(&tv);
68 *(time_t *) sec = tv.tv_sec;
69 LOG_D("RTC: get rtc_time %d", *sec);
70
71 return RT_EOK;
72}
73
74static rt_err_t pico_rtc_set_secs(time_t *sec)
75{

Callers

nothing calls this directly

Calls 1

pico_rtc_get_timevalFunction · 0.85

Tested by

no test coverage detected