From 278a76b3a6dbf658bd0d3ad67ad7f15d8b8fa32a Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 14 Nov 2017 00:26:16 +0100 Subject: add some documentation in usb.h and usb_drv.h Change-Id: Icd39ee5c017fc219144b33ef96b0df85c5d430da --- firmware/export/usb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export/usb.h') 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 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 */ -- cgit v1.2.3