Port of Keils USBCDC example, compiles ok. Gets stuck at init

Dependencies:   mbed

Committer:
tecnosys
Date:
Mon Jul 05 10:16:57 2010 +0000
Revision:
0:0b777ff85deb

        

Who changed what in which revision?

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