用2410的朋友,请问你们的电源键唤醒系统时,在哪里去抖动?

如题。
[3 byte] By [huangjinli] at [2008-5-20]
# 1
做过的老大,帮帮忙啊。
huangjinli at 2007-10-22 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...
# 2
if (gOffFlag == FALSE)
{
if (PBT_IsPushed()) /* To Filter Noise */
{
Sleep(200);

if (PBT_IsPushed())
{
// RETAILMSG(1, (TEXT("::: Back Light On/Off \r\n")));
}
else
{
// Soft reset and standard suspend-resume both start with suspend for now.
#if (WINCEOSVER >= 400)
// call whichever shutdown API is available
if(gpfnSetSystemPowerState != NULL)
{
gpfnSetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE);

}
else
{
PowerOffSystem();

}
#else
PowerOffSystem();

#endif

// Give control back to system if it wants it for anything. Not in
// power handling mode yet. All suspend and resume operations
// will be performed in the PowerOffSystem() function.
DriverSleep(0, FALSE);
}
}

InterruptDone(SYSINTR_POWER);
}
}
}
oilking_zhh-痞子张 at 2007-10-22 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...
# 3
这是在挂起的时候去抖动,不是在唤醒的时候。
huangjinli at 2007-10-22 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...