summaryrefslogtreecommitdiffstats
path: root/firmware/export/usbstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/usbstack.h')
-rw-r--r--firmware/export/usbstack.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/export/usbstack.h b/firmware/export/usbstack.h
index bf1c2db5bf..4ad477ec97 100644
--- a/firmware/export/usbstack.h
+++ b/firmware/export/usbstack.h
@@ -22,7 +22,15 @@
#include <errno.h>
-#define USB_STACK_MAX_SETTINGS_NAME 32*10 /* should be enough for > 10 driver names */
+#define USB_STACK_MAX_SETTINGS_NAME 32*10 /* should be enough for > 10 driver names */
+
+/* usb stack configuration */
+#ifndef USBSTACK_CAPS
+#define USBSTACK_CAPS 0 /* default: use no controller */
+#endif
+
+#define CONTROLLER_DEVICE (1 << 0)
+#define CONTROLLER_HOST (1 << 1)
/*
* error codes
@@ -30,7 +38,7 @@
#define ENOFREESLOT 1
#define EWRONGCONTROLLERTYPE 2
#define ENODRIVERFOUND 3
-#define EHWCRITICAL 4
+#define EHWCRITICAL 4
enum usb_controller_type {
DEVICE = 0,