1 /*----------------------------------------------------------------------------
\r
2 * U S B - K e r n e l
\r
3 *----------------------------------------------------------------------------
\r
5 * Purpose: USB Core Definitions
\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
16 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
\r
17 *---------------------------------------------------------------------------*/
\r
19 #ifndef __USBCORE_H__
\r
20 #define __USBCORE_H__
\r
23 /* USB Endpoint Data Structure */
\r
24 typedef struct _USB_EP_DATA {
\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
38 /* USB Endpoint 0 Buffer */
\r
39 extern uint8_t EP0Buf[USB_MAX_PACKET0];
\r
41 /* USB Endpoint 0 Data Info */
\r
42 extern USB_EP_DATA EP0Data;
\r
44 /* USB Setup Packet */
\r
45 extern USB_SETUP_PACKET SetupPacket;
\r
47 /* USB Core Functions */
\r
48 extern void USB_ResetCore (void);
\r
52 #endif /* __USBCORE_H__ */
\r