Date:2013-04-01 16:23:48 (10 years 11 months ago)
Author:Werner Almesberger
Commit:3e749c31406c218668efb813853664ebe3e90304
Message: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.
Files: atusb/fw/include/atusb/ep0.h (1 diff)

Change Details

atusb/fw/include/atusb/ep0.h
4646#define USB_TYPE_VENDOR 0x40
4747#endif
4848
49#ifndef USB_DIR_IN
4950#define USB_DIR_IN 0x80
51#endif
52
53#ifndef USB_DIR_OUT
5054#define USB_DIR_OUT 0x00
55#endif
5156
5257#define ATUSB_FROM_DEV(req) (ATUSB_REQ_FROM_DEV | (req) << 8)
5358#define ATUSB_TO_DEV(req) (ATUSB_REQ_TO_DEV | (req) << 8)

Archive Download the corresponding diff file



interactive