]> git.sur5r.net Git - armstart-ibdap/blob - inc/usbd/usbd_desc.h
Fix build
[armstart-ibdap] / inc / usbd / usbd_desc.h
1 /***********************************************************************\r
2 * $Id:: mw_usbd_desc.h 165 2011-04-14 17:41:11Z usb10131                      $\r
3 *\r
4 * Project: USB device ROM Stack\r
5 *\r
6 * Description:\r
7 *     USB Descriptors Definitions.\r
8 *\r
9 ***********************************************************************\r
10 *   Copyright(C) 2011, NXP Semiconductor\r
11 *   All rights reserved.\r
12 *\r
13 * Software that is described herein is for illustrative purposes only\r
14 * which provides customers with programming information regarding the\r
15 * products. This software is supplied "AS IS" without any warranties.\r
16 * NXP Semiconductors assumes no responsibility or liability for the\r
17 * use of the software, conveys no license or title under any patent,\r
18 * copyright, or mask work right to the product. NXP Semiconductors\r
19 * reserves the right to make changes in the software without\r
20 * notification. NXP Semiconductors also make no representation or\r
21 * warranty that such application will be suitable for the specified\r
22 * use without further testing or modification.\r
23 **********************************************************************/\r
24 \r
25 #ifndef __USBDESC_H__\r
26 #define __USBDESC_H__\r
27 \r
28 #include "usbd.h"\r
29 \r
30 #define WBVAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF)\r
31 #define B3VAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF),(((x) >> 16) & 0xFF)\r
32 \r
33 #define USB_DEVICE_DESC_SIZE        (sizeof(USB_DEVICE_DESCRIPTOR))\r
34 #define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR))\r
35 #define USB_INTERFACE_DESC_SIZE     (sizeof(USB_INTERFACE_DESCRIPTOR))\r
36 #define USB_ENDPOINT_DESC_SIZE      (sizeof(USB_ENDPOINT_DESCRIPTOR))\r
37 #define USB_DEVICE_QUALI_SIZE       (sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR))\r
38 #define USB_OTHER_SPEED_CONF_SIZE   (sizeof(USB_OTHER_SPEED_CONFIGURATION))\r
39 \r
40 //#define HID_DESC_SIZE               (sizeof(HID_DESCRIPTOR))\r
41 //#define HID_REPORT_DESC_SIZE        (sizeof(HID_ReportDescriptor))\r
42 \r
43 extern const uint8_t  HID_ReportDescriptor[];\r
44 extern const uint16_t HID_ReportDescSize;\r
45 extern const uint16_t HID_DescOffset;\r
46 \r
47 \r
48 #endif  /* __USBDESC_H__ */\r