summaryrefslogtreecommitdiff
path: root/utils/hwstub/stub/usb_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/stub/usb_drv.h')
-rw-r--r--utils/hwstub/stub/usb_drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/hwstub/stub/usb_drv.h b/utils/hwstub/stub/usb_drv.h
index 00f22d8e1a..ef032f52a3 100644
--- a/utils/hwstub/stub/usb_drv.h
+++ b/utils/hwstub/stub/usb_drv.h
@@ -43,5 +43,12 @@ void usb_drv_set_address(int address);
43int usb_drv_port_speed(void); 43int usb_drv_port_speed(void);
44void usb_drv_configure_endpoint(int ep_num, int type); 44void usb_drv_configure_endpoint(int ep_num, int type);
45 45
46/* USB_STRING_INITIALIZER(u"Example String") */
47#define USB_STRING_INITIALIZER(S) { \
48 sizeof(struct usb_string_descriptor) + sizeof(S) - sizeof(*S), \
49 USB_DT_STRING, \
50 S \
51}
52
46#endif /* _USB_DRV_H */ 53#endif /* _USB_DRV_H */
47 54