1
0
Fork 0
forked from len0rd/rockbox

add some documentation in usb.h and usb_drv.h

Change-Id: Icd39ee5c017fc219144b33ef96b0df85c5d430da
This commit is contained in:
Amaury Pouly 2017-11-14 00:26:16 +01:00 committed by Solomon Peachy
parent b64a286a81
commit 278a76b3a6
2 changed files with 39 additions and 0 deletions

View file

@ -178,6 +178,9 @@ struct usb_transfer_completion_event_data
void usb_init(void) INIT_ATTR;
/* target must implement this to enable/disable the usb transceiver/core */
void usb_enable(bool on);
/* when one or more driver requires exclusive mode, this is called after all threads have acknowledged
* exclusive mode and disk have been umounted; otherwise it is called immediately after host has
* been detected */
void usb_attach(void);
/* enable usb detection monitoring; before this function is called, all usb
* detection changes are ignored */