remove VIM swap file, and add it to .gitignore
[rapper.git] / new_cmsis / usb / usbcore.h
1 /*----------------------------------------------------------------------------\r
2  *      U S B  -  K e r n e l\r
3  *----------------------------------------------------------------------------\r
4  * Name:    usbcore.h\r
5  * Purpose: USB Core 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 __USBCORE_H__\r
20 #define __USBCORE_H__\r
21 \r
22 \r
23 /* USB Endpoint Data Structure */\r
24 typedef struct _USB_EP_DATA {\r
25   uint8_t  *pData;\r
26   uint16_t Count;\r
27 } USB_EP_DATA;\r
28 \r
29 /* USB Core Global Variables */\r
30 extern uint16_t USB_DeviceStatus;\r
31 extern uint8_t  USB_DeviceAddress;\r
32 extern uint8_t  USB_Configuration;\r
33 extern uint32_t USB_EndPointMask;\r
34 extern uint32_t USB_EndPointHalt;\r
35 extern uint32_t USB_EndPointStall;\r
36 extern uint8_t  USB_AltSetting[USB_IF_NUM];\r
37 \r
38 /* USB Endpoint 0 Buffer */\r
39 extern uint8_t  EP0Buf[USB_MAX_PACKET0];\r
40 \r
41 /* USB Endpoint 0 Data Info */\r
42 extern USB_EP_DATA EP0Data;\r
43 \r
44 /* USB Setup Packet */\r
45 extern USB_SETUP_PACKET SetupPacket;\r
46 \r
47 /* USB Core Functions */\r
48 extern void USB_ResetCore (void);\r
49 \r
50 \r
51 \r
52 #endif  /* __USBCORE_H__ */\r