Browse Source

usb: add USB_REQ_TYPE_OUT to match USB_REQ_TYPE_IN

#defines are free.

Fixes https://github.com/libopencm3/libopencm3/issues/515
pull/958/head
Karl Palsson 6 years ago
parent
commit
6fa75afbc6
  1. 1
      include/libopencm3/usb/usbstd.h

1
include/libopencm3/usb/usbstd.h

@ -68,6 +68,7 @@ struct usb_setup_data {
/* bit 7 : direction */
#define USB_REQ_TYPE_DIRECTION 0x80
#define USB_REQ_TYPE_IN 0x80
#define USB_REQ_TYPE_OUT 0x0
/* bits 6..5 : type */
#define USB_REQ_TYPE_TYPE 0x60
#define USB_REQ_TYPE_STANDARD 0x00

Loading…
Cancel
Save