Home
last modified time | relevance | path

Searched refs:sec_alarm (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/drivers/counter/maxim_ds3231/src/
Dmain.c149 struct maxim_ds3231_alarm sec_alarm; variable
292 rc = maxim_ds3231_get_alarm(ds3231, 0, &sec_alarm); in main()
293 printk("\nAlarm 1 flags %x at %u: %d\n", sec_alarm.flags, in main()
294 (uint32_t)sec_alarm.time, rc); in main()
303 sec_alarm.time = sp.rtc.tv_sec + 5; in main()
304 sec_alarm.flags = MAXIM_DS3231_ALARM_FLAGS_AUTODISABLE in main()
306 sec_alarm.handler = sec_alarm_handler; in main()
307 sec_alarm.user_data = &sec_alarm; in main()
309 printk("Min Sec base time: %s\n", format_time(sec_alarm.time, -1)); in main()
312 min_alarm.time = sec_alarm.time; in main()
[all …]