summaryrefslogtreecommitdiff
path: root/firmware/export/usb.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-11-14 00:26:16 +0100
committerSolomon Peachy <pizza@shaftnet.org>2020-07-09 14:09:10 +0000
commit278a76b3a6dbf658bd0d3ad67ad7f15d8b8fa32a (patch)
treec8f8e47974dca803517dc5c86db7ec8399dc5ee7 /firmware/export/usb.h
parentb64a286a81fcb2706eada010ffe4b561b473889e (diff)
downloadrockbox-278a76b3a6dbf658bd0d3ad67ad7f15d8b8fa32a.tar.gz
rockbox-278a76b3a6dbf658bd0d3ad67ad7f15d8b8fa32a.zip
add some documentation in usb.h and usb_drv.h
Change-Id: Icd39ee5c017fc219144b33ef96b0df85c5d430da
Diffstat (limited to 'firmware/export/usb.h')
-rw-r--r--firmware/export/usb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index ff85cb99ce..0c74efc9e2 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -178,6 +178,9 @@ struct usb_transfer_completion_event_data
178void usb_init(void) INIT_ATTR; 178void usb_init(void) INIT_ATTR;
179/* target must implement this to enable/disable the usb transceiver/core */ 179/* target must implement this to enable/disable the usb transceiver/core */
180void usb_enable(bool on); 180void usb_enable(bool on);
181/* when one or more driver requires exclusive mode, this is called after all threads have acknowledged
182 * exclusive mode and disk have been umounted; otherwise it is called immediately after host has
183 * been detected */
181void usb_attach(void); 184void usb_attach(void);
182/* enable usb detection monitoring; before this function is called, all usb 185/* enable usb detection monitoring; before this function is called, all usb
183 * detection changes are ignored */ 186 * detection changes are ignored */