JS休眠

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/pdy8023/article/details/82703277
/**
 * 休眠(毫秒)
 */
function sleep(n) {
    var start = new Date().getTime();
    while (true) {
        if (new Date().getTime() - start > n) {
            break;
        }
    }
}

 

展开阅读全文

pxa270 休眠

07-25

用gpio0作为唤醒按键,但是按下休眠后出现下面这样的调试信息特别是后面的 我明明看到他都要sleep 了 怎么还打印出这么一大串东西 按下powerbutton建 唤醒不了 下面红色的字是什么错误啊 不懂rnGPIO0 interrupt occorrn======+PbInterruptHandler()======rnPWM: Waiting for PM state transition notificationrn======Here to toggle backlight!!======rn======We are sleep!!======rnBackLightSetState - OFFrnBackLightSetState!rnOEMIoControl: Unsupported Code 0x10100f4 - device 0x0101 func 61rn*****OFF*************DdsiTouchPanelPowerHandlerrnUnConfigureAC97Control: InitRefCnt=2rnDdsiTouchPanelPowerHandler--------rnUSERKEY: KEY_PowerDownrn**************+Battery PowerDown**************rn**************-Battery PowerDown**************rn+NLedDriverPowerDownrnnInfoId = 1rnfnHWTurnOffNled[Before] --> Turn off RED LED!! rnfnHWTurnOffNled[After] --> Turn off RED LED!! rnfnHWTurnOffNled[Before] --> Turn off GREEN LED!! rnfnHWTurnOffNled[After] --> Turn off GREEN LED!! rn-NLedDriverPowerDownrnWaveDev2: PowerDownrnUnConfigureAC97Control: InitRefCnt=1rn======+OEMPowerOff()!!======rn======+OEMPowerOff():Here 01======rn======+BSPPowerOff()======rn======+BSPPowerOff():PSSR:0x 0======rn======+BSPPowerOff():PSLR:0xcc000000======rn======+BSPSetWakeSrc()-> IRQ_GPIO0======rnOUTREG32(&pPwrRst_reg->pwer, pwerVal);=80000001rn======-BSPPowerOff()======rn======+OEMPowerOff():Here 02======rn======+OEMPowerOff():Here 03======rn======+XllpPmSleepCLevelProcessing()======rn======XllpPmSleepCLevelProcessing(), checksum->0x79192eb======rn======-XllpPmSleepCLevelProcessing()======rn======-XllpPmSleepCLevGFGSGSGSGSGSGSelProcessing()======rn[color=#FF0000]RaiseException: Thread=87df5db8 Proc=801281c0 'device.exe'rnAKY=0000000d PC=03fa7308(coredll.dll+0x00037308) RA=9aabfbdc(NK.EXE+0x0003fbdc) BVA=00000001 FSR=00000001rnException 'RaiseException' Thread=87df5db8 AKY=0000000d PC=00000020 BVA=00000001rn R0=8012a4a0 R1=80129f80 R2=80129f90 R3=ffffc808rn R4=000000f9 R5=00000064 R6=ffffc886 R7=ffffc74crn R8=ffffc764 R9=9aabfbdc R10=9aa88a10 R11=9aa86404rnR12=9aaafbf0 SP=00000000 Lr=80106654 Psr=a00000dfrnHalting systemrn[/color] 论坛

没有更多推荐了,返回首页