| 74 | #endif |
| 75 | |
| 76 | static void set_rtc_time(time_t t) |
| 77 | { |
| 78 | init_time = t - (rt_tick_get() - init_tick) / RT_TICK_PER_SECOND; |
| 79 | #ifdef RT_USING_ALARM |
| 80 | soft_rtc_alarm_update(&wkalarm); |
| 81 | #endif |
| 82 | } |
| 83 | |
| 84 | static rt_err_t soft_rtc_control(rt_device_t dev, int cmd, void *args) |
| 85 | { |
no test coverage detected