28 #ifdef CONFIG_RTC_MULTI
33 struct rtc *(*rtc_init)(uint32_t index);
59 #ifdef CONFIG_INSTANCE_NAME
65 #ifdef CONFIG_RTC_THREAD_SAVE
71 #ifdef CONFIG_RTC_MULTI
75 const struct rtc_ops *ops;
98 #ifndef CONFIG_RTC_MULTI
118 inline struct rtc *
rtc_init(uint32_t index) {
124 return p->ops->rtc_init(index);
128 return p->ops->rtc_deinit(rtc);
130 inline int32_t
rtc_adjust(
struct rtc *rtc,
struct timespec *offset, TickType_t waittime) {
132 return p->ops->rtc_adjust(rtc, offset, waittime);
136 return p->ops->rtc_getTime(rtc, time, waittime);
140 return p->ops->rtc_setTime(rtc, time, waittime);
144 return p->ops->rtc_adjustISR(rtc, offset);
148 return p->ops->rtc_getTimeISR(rtc, time);
152 return p->ops->rtc_setTimeISR(rtc, time);