mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add a higher level USB detection that prevents fraudulent bus resets from causing USB mode to be entered. Enable for SA9200 only at this time. Also, for SA9200, use the bus power GPIO rather than the 'connector inserted' GPIO to detect the cable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29068 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bcc0f88372
commit
05f6f3419a
7 changed files with 43 additions and 18 deletions
|
@ -559,6 +559,11 @@ static void request_handler_device_get_descriptor(struct usb_ctrlrequest* req)
|
|||
case USB_DT_DEVICE:
|
||||
ptr = &device_descriptor;
|
||||
size = sizeof(struct usb_device_descriptor);
|
||||
#ifdef USB_DETECT_BY_CORE
|
||||
/* Something requested a device descriptor; consider this a legit
|
||||
connection */
|
||||
usb_drv_usb_detect_event();
|
||||
#endif
|
||||
break;
|
||||
|
||||
case USB_DT_OTHER_SPEED_CONFIG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue