1 /*----------------------------------------------------------------------------
3 *----------------------------------------------------------------------------
5 * Purpose: USB Core Definitions
7 *----------------------------------------------------------------------------
8 * This software is supplied "AS IS" without any warranties, express,
9 * implied or statutory, including but not limited to the implied
10 * warranties of fitness for purpose, satisfactory quality and
11 * noninfringement. Keil extends you a royalty-free right to reproduce
12 * and distribute executable files created using this software for use
13 * on NXP Semiconductors LPC microcontroller devices only. Nothing else
14 * gives you the right to use this software.
16 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
17 *---------------------------------------------------------------------------*/
23 /* USB Endpoint Data Structure */
24 typedef struct _USB_EP_DATA {
29 /* USB Core Global Variables */
30 extern uint16_t USB_DeviceStatus;
31 extern uint8_t USB_DeviceAddress;
32 extern uint8_t USB_Configuration;
33 extern uint32_t USB_EndPointMask;
34 extern uint32_t USB_EndPointHalt;
35 extern uint32_t USB_EndPointStall;
36 extern uint8_t USB_AltSetting[USB_IF_NUM];
38 /* USB Endpoint 0 Buffer */
39 extern uint8_t EP0Buf[USB_MAX_PACKET0];
41 /* USB Endpoint 0 Data Info */
42 extern USB_EP_DATA EP0Data;
44 /* USB Setup Packet */
45 extern USB_SETUP_PACKET SetupPacket;
47 /* USB Core Functions */
48 extern void USB_ResetCore (void);
52 #endif /* __USBCORE_H__ */