remove VIM swap file, and add it to .gitignore
[rapper.git] / new_cmsis / usb / usbdesc.h
1 /*----------------------------------------------------------------------------\r
2  *      U S B  -  K e r n e l\r
3  *----------------------------------------------------------------------------\r
4  * Name:    usbdesc.h\r
5  * Purpose: USB Descriptors Definitions\r
6  * Version: V1.20\r
7  *----------------------------------------------------------------------------\r
8  *      This software is supplied "AS IS" without any warranties, express,\r
9  *      implied or statutory, including but not limited to the implied\r
10  *      warranties of fitness for purpose, satisfactory quality and\r
11  *      noninfringement. Keil extends you a royalty-free right to reproduce\r
12  *      and distribute executable files created using this software for use\r
13  *      on NXP Semiconductors LPC microcontroller devices only. Nothing else \r
14  *      gives you the right to use this software.\r
15  *\r
16  * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.\r
17  *---------------------------------------------------------------------------*/\r
18 \r
19 #ifndef __USBDESC_H__\r
20 #define __USBDESC_H__\r
21 \r
22 \r
23 #define WBVAL(x) (x & 0xFF),((x >> 8) & 0xFF)\r
24 \r
25 #define USB_DEVICE_DESC_SIZE        (sizeof(USB_DEVICE_DESCRIPTOR))\r
26 #define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR))\r
27 #define USB_INTERFACE_DESC_SIZE     (sizeof(USB_INTERFACE_DESCRIPTOR))\r
28 #define USB_ENDPOINT_DESC_SIZE      (sizeof(USB_ENDPOINT_DESCRIPTOR))\r
29 \r
30 extern const uint8_t USB_DeviceDescriptor[];\r
31 extern const uint8_t USB_ConfigDescriptor[];\r
32 extern const uint8_t USB_StringDescriptor[];\r
33 \r
34 \r
35 #endif  /* __USBDESC_H__ */\r