| 61 | } |
| 62 | |
| 63 | static 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 | |
| 74 | static rt_err_t pico_rtc_set_secs(time_t *sec) |
| 75 | { |
nothing calls this directly
no test coverage detected