detect usb or no usb for standalone mode [ryan]

This commit is contained in:
skamkar
2009-08-08 07:42:51 +00:00
parent 14ac2f1ea0
commit 50722269b6
3 changed files with 15 additions and 7 deletions

View File

@@ -436,6 +436,14 @@ void UsbStart(void)
}
}
BOOL UsbConnected()
{
if (UDP_GLOBAL_STATE & UDP_GLOBAL_STATE_CONFIGURED)
return TRUE;
else
return FALSE;
}
BOOL UsbPoll(BOOL blinkLeds)
{
BOOL ret = FALSE;