1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 13:54:59 +02:00

fw/include/atusb/ep0.h: protect also USB_DIR_IN and USB_DIR_OUT

They're currently not defined by libusb, but since the kernel has them,
they may eventually also end up in user space.
This commit is contained in:
Werner Almesberger 2013-04-01 11:23:48 -03:00
parent 16dd767857
commit 3e749c3140

View File

@ -46,8 +46,13 @@
#define USB_TYPE_VENDOR 0x40
#endif
#ifndef USB_DIR_IN
#define USB_DIR_IN 0x80
#endif
#ifndef USB_DIR_OUT
#define USB_DIR_OUT 0x00
#endif
#define ATUSB_FROM_DEV(req) (ATUSB_REQ_FROM_DEV | (req) << 8)
#define ATUSB_TO_DEV(req) (ATUSB_REQ_TO_DEV | (req) << 8)