PDA

View Full Version : USB Suspend



johngb
4th October 2012, 12:42
When I try and suspend the USB module after Connecting the program crashes.



Connect:
Repeat
USBPoll ' Poll the USB port
Until USB_tConnected = 1 Or USB_tConfigured ' Host is connected so stop polling
Return

Suspend:
Set UCON.1
Return

'Resume:
Clear UCON.1
GoSub Connect



How do I suspend and resume a USB connection?