These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /*----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 2 * U S B - K e r n e l
frank26080115 0:bf7b9fba3924 3 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 4 * Name: USBCORE.H
frank26080115 0:bf7b9fba3924 5 * Purpose: USB Core Definitions
frank26080115 0:bf7b9fba3924 6 * Version: V1.10
frank26080115 0:bf7b9fba3924 7 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 8 * This software is supplied "AS IS" without any warranties, express,
frank26080115 0:bf7b9fba3924 9 * implied or statutory, including but not limited to the implied
frank26080115 0:bf7b9fba3924 10 * warranties of fitness for purpose, satisfactory quality and
frank26080115 0:bf7b9fba3924 11 * noninfringement. Keil extends you a royalty-free right to reproduce
frank26080115 0:bf7b9fba3924 12 * and distribute executable files created using this software for use
frank26080115 0:bf7b9fba3924 13 * on NXP Semiconductors LPC family microcontroller devices only. Nothing
frank26080115 0:bf7b9fba3924 14 * else gives you the right to use this software.
frank26080115 0:bf7b9fba3924 15 *
frank26080115 0:bf7b9fba3924 16 * Copyright (c) 2005-2009 Keil Software.
frank26080115 0:bf7b9fba3924 17 *---------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 18
frank26080115 0:bf7b9fba3924 19 #ifndef __USBCORE_H__
frank26080115 0:bf7b9fba3924 20 #define __USBCORE_H__
frank26080115 0:bf7b9fba3924 21
frank26080115 0:bf7b9fba3924 22
frank26080115 0:bf7b9fba3924 23 /* USB Endpoint Data Structure */
frank26080115 0:bf7b9fba3924 24 typedef struct _USB_EP_DATA {
frank26080115 0:bf7b9fba3924 25 uint8_t *pData;
frank26080115 0:bf7b9fba3924 26 uint16_t Count;
frank26080115 0:bf7b9fba3924 27 } USB_EP_DATA;
frank26080115 0:bf7b9fba3924 28
frank26080115 0:bf7b9fba3924 29 /* USB Core Global Variables */
frank26080115 0:bf7b9fba3924 30 extern uint16_t USB_DeviceStatus;
frank26080115 0:bf7b9fba3924 31 extern uint8_t USB_DeviceAddress;
frank26080115 0:bf7b9fba3924 32 extern uint8_t USB_Configuration;
frank26080115 0:bf7b9fba3924 33 extern uint32_t USB_EndPointMask;
frank26080115 0:bf7b9fba3924 34 extern uint32_t USB_EndPointHalt;
frank26080115 0:bf7b9fba3924 35 extern uint8_t USB_AltSetting[USB_IF_NUM];
frank26080115 0:bf7b9fba3924 36
frank26080115 0:bf7b9fba3924 37 /* USB Endpoint 0 Buffer */
frank26080115 0:bf7b9fba3924 38 extern uint8_t EP0Buf[USB_MAX_PACKET0];
frank26080115 0:bf7b9fba3924 39
frank26080115 0:bf7b9fba3924 40 /* USB Endpoint 0 Data Info */
frank26080115 0:bf7b9fba3924 41 extern USB_EP_DATA EP0Data;
frank26080115 0:bf7b9fba3924 42
frank26080115 0:bf7b9fba3924 43 /* USB Setup Packet */
frank26080115 0:bf7b9fba3924 44 extern USB_SETUP_PACKET SetupPacket;
frank26080115 0:bf7b9fba3924 45
frank26080115 0:bf7b9fba3924 46 /* USB Core Functions */
frank26080115 0:bf7b9fba3924 47 extern void USB_ResetCore (void);
frank26080115 0:bf7b9fba3924 48
frank26080115 0:bf7b9fba3924 49
frank26080115 0:bf7b9fba3924 50 #endif /* __USBCORE_H__ */