RTC是Real Time Clock的简称,它在硬件电路上单独供电,当系统关机时,CPU和其他外部硬件设备全部掉电,但是RTC仍然继续工作. HWCR (Hibernate Wakeup Control Register)是一个控制休眠唤醒的寄存器,如果我们要使用休眠状态下RTC唤醒的功能,我们需要打开它的第0位ELAM(RTC Alarm Wakeup enable),当ELAM置1时,使能ELAM功能. RTCSR (RTC Second Registe)是一个32位的寄存器,它的值以1H
Event Priorities If more than one event is scheduled for the same time their priority values are used to determine the order they are run. import sched import time scheduler = sched.scheduler(time.time, time.sleep) def print_event(name): print 'EVENT