summaryrefslogtreecommitdiff
path: root/firmware/export/usb_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/usb_drv.h')
-rw-r--r--firmware/export/usb_drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/usb_drv.h b/firmware/export/usb_drv.h
index b5b5a7f065..7ef7c8b7ee 100644
--- a/firmware/export/usb_drv.h
+++ b/firmware/export/usb_drv.h
@@ -80,4 +80,11 @@ bool usb_drv_connected(void);
80int usb_drv_request_endpoint(int type, int dir); 80int usb_drv_request_endpoint(int type, int dir);
81void usb_drv_release_endpoint(int ep); 81void usb_drv_release_endpoint(int ep);
82 82
83/* USB_STRING_INITIALIZER(u"Example String") */
84#define USB_STRING_INITIALIZER(S) { \
85 sizeof(struct usb_string_descriptor) + sizeof(S) - sizeof(*S), \
86 USB_DT_STRING, \
87 S \
88}
89
83#endif /* _USB_DRV_H */ 90#endif /* _USB_DRV_H */