mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 18:57:11 +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:
parent
16dd767857
commit
3e749c3140
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user