반응형
while(TRUE) // Main Loop
{
TD_Poll();
if(GotSUD)
{
SetupCommand();
GotSUD = FALSE;
}
if (Sleep)
{
if(TD_Suspend())
{
Sleep = FALSE;
do
{
EZUSB_Susp();
}
while(!Rwuen && EZUSB_EXTWAKEUP());
// above. Must continue to go back into suspend if the host has disabled remote wakeup
// *and* the wakeup was caused by the external wakeup pin.
EZUSB_Resume();
TD_Resume();
}
}
}// END OF while(TRUE)
반응형
'나머지 > IT개발.잡다한것.' 카테고리의 다른 글
8051 XDATA IDATA DATA FX2 (0) | 2012.09.25 |
---|---|
SYNCDELAY (0) | 2012.09.24 |
Bulk Isochronous Interrupt USB (0) | 2012.09.20 |
메모리 스트로브 (0) | 2012.09.18 |
비주얼 스튜디오 2010 줄 번호( visual studio line numbering ) (0) | 2012.09.14 |