Lines Matching full:rtc
10 #include <zephyr/drivers/rtc.h>
17 static const struct device *rtc = DEVICE_DT_GET(DT_ALIAS(rtc)); variable
18 static const uint16_t alarms_count = DT_PROP(DT_ALIAS(rtc), alarms_count);
78 ret = rtc_alarm_set_time(rtc, i, 0, NULL); in ZTEST()
85 ret = rtc_alarm_set_callback(rtc, i, NULL, NULL); in ZTEST()
93 ret = rtc_alarm_get_supported_fields(rtc, i, &alarm_time_mask_supported); in ZTEST()
99 ret = rtc_alarm_set_time(rtc, i, test_alarm_time_masks[j], in ZTEST()
103 "%s: RTC should reject invalid alarm %d time in field %zu.", in ZTEST()
104 rtc->name, i, j); in ZTEST()
111 ret = rtc_alarm_get_supported_fields(rtc, i, &alarm_time_mask_supported); in ZTEST()
119 ret = rtc_alarm_set_time(rtc, i, test_alarm_time_mask_set, &test_alarm_time_set); in ZTEST()
125 ret = rtc_alarm_get_time(rtc, i, &alarm_time_mask_get, &alarm_time_get); in ZTEST()
178 /* Set RTC time */ in ZTEST()
179 ret = rtc_set_time(rtc, &test_rtc_time_set); in ZTEST()
184 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
193 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
202 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()
209 ret = rtc_alarm_set_time(rtc, i, 0, NULL); in ZTEST()
212 ret = rtc_alarm_is_pending(rtc, i); in ZTEST()