![]() |
ANCY |
|
|||||
I'm using the USBUART component from app note EP60246 but the question might also be valid for other USB interfaces. Everything works fine until the USB cable to the PC is unplugged. Now USBUART_bGetConfiguration() still reports a non-zero value. If I replug the PC and try to write to it USBUART_Write() fails to return. How can I detect the unplug and reconnect and reinitialize my USBUART component when possible?
Thanks |
|||||
|
||||||
Let us know if one of these work. |
||||||
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.