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
转自:http://blog.csdn.net/hanmengaidudu/article/details/11777501 标准linux休眠过程: l power management notifiers are executed with PM_SUSPEND_PREPARE l tasks are frozen l target system sleep state is announced to the platform-handling co
void fu_state_machine_init(void) { /* NRF_POWER_RESETREAS_SREQ_MASK JLINK DOWNLOAD / POWER ON can cause this reason */ if(nrf_power_resetreas_get() & NRF_POWER_RESETREAS_OFF_MASK)//读取是掉电重启还是按键唤醒 {//按键唤醒 //if(KEY_POWER_PRESSED) //{ // key_smokekey_ena