summaryrefslogtreecommitdiff
path: root/include/usb_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_api.h')
-rw-r--r--include/usb_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb_api.h b/include/usb_api.h
index dc0a0fd654..193c948fb6 100644
--- a/include/usb_api.h
+++ b/include/usb_api.h
@@ -21,6 +21,9 @@
*/
void usb_init(void);
+/* Check if USB peripheral is enabled. */
+int usb_is_enabled(void);
+
/*
* Enable the pullup on the DP line to signal that this device exists to the
* host and to start the enumeration process.