aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrey Smirnov2012-11-07 11:30:44 -0800
committerAndrey Smirnov2012-11-07 11:30:44 -0800
commit720e85f850064ad6ab3e79101b972e43d4e31ef6 (patch)
tree06f9b150cb137954d034a15f750a3a13fc8691ca /include
parentc5c4db01969608ac19bba290b9f6ec965ef01e5c (diff)
Further re-factor USB string handling code
This commit refactors USB string code, making it, hopefully, less buggy and more easier to understand. It also removes "magic" bit manipulation and "magic" numbers;
Diffstat (limited to 'include')
-rw-r--r--include/libopencm3/usb/usbstd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libopencm3/usb/usbstd.h b/include/libopencm3/usb/usbstd.h
index 8610fdb..01fc7e3 100644
--- a/include/libopencm3/usb/usbstd.h
+++ b/include/libopencm3/usb/usbstd.h
@@ -220,4 +220,7 @@ struct usb_iface_assoc_descriptor {
#define USB_DT_INTERFACE_ASSOCIATION_SIZE \
sizeof(struct usb_iface_assoc_descriptor)
+enum usb_language_id {
+ USB_LANGID_ENGLISH_US = 0x409,
+};
#endif