Lines Matching refs:alarm
84 alarm = int(rtc.get_seconds() + seconds)
85 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm)
86 rtc.set_wake_alarm(alarm)
87 return (alarm, wakeup_count)
90 def check_wakeup(alarm): argument
96 if now < alarm:
113 alarm, wakeup_count = prepare_wakeup(suspend_seconds)
119 check_wakeup(alarm)
120 return alarm
152 alarm, wakeup_count = prepare_wakeup(seconds)
161 if e.errno == errno.EBUSY and rtc.get_seconds() >= alarm:
172 check_wakeup(alarm)
184 alarm, _ = prepare_wakeup(seconds)
185 while rtc.get_seconds() < alarm:
196 return alarm
212 alarm, wakeup_count = prepare_wakeup(seconds)
225 check_wakeup(alarm)
226 return alarm