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: usbuser.h
tecnosys 0:0b777ff85deb 5 * Purpose: USB Custom User 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 family microcontroller devices only. Nothing
tecnosys 0:0b777ff85deb 14 * else 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 __USBUSER_H__
tecnosys 0:0b777ff85deb 20 #define __USBUSER_H__
tecnosys 0:0b777ff85deb 21
tecnosys 0:0b777ff85deb 22
tecnosys 0:0b777ff85deb 23 /* USB Device Events Callback Functions */
tecnosys 0:0b777ff85deb 24 extern void USB_Power_Event (uint32_t power);
tecnosys 0:0b777ff85deb 25 extern void USB_Reset_Event (void);
tecnosys 0:0b777ff85deb 26 extern void USB_Suspend_Event (void);
tecnosys 0:0b777ff85deb 27 extern void USB_Resume_Event (void);
tecnosys 0:0b777ff85deb 28 extern void USB_WakeUp_Event (void);
tecnosys 0:0b777ff85deb 29 extern void USB_SOF_Event (void);
tecnosys 0:0b777ff85deb 30 extern void USB_Error_Event (uint32_t error);
tecnosys 0:0b777ff85deb 31
tecnosys 0:0b777ff85deb 32 /* USB Endpoint Callback Events */
tecnosys 0:0b777ff85deb 33 #define USB_EVT_SETUP 1 /* Setup Packet */
tecnosys 0:0b777ff85deb 34 #define USB_EVT_OUT 2 /* OUT Packet */
tecnosys 0:0b777ff85deb 35 #define USB_EVT_IN 3 /* IN Packet */
tecnosys 0:0b777ff85deb 36 #define USB_EVT_OUT_NAK 4 /* OUT Packet - Not Acknowledged */
tecnosys 0:0b777ff85deb 37 #define USB_EVT_IN_NAK 5 /* IN Packet - Not Acknowledged */
tecnosys 0:0b777ff85deb 38 #define USB_EVT_OUT_STALL 6 /* OUT Packet - Stalled */
tecnosys 0:0b777ff85deb 39 #define USB_EVT_IN_STALL 7 /* IN Packet - Stalled */
tecnosys 0:0b777ff85deb 40 #define USB_EVT_OUT_DMA_EOT 8 /* DMA OUT EP - End of Transfer */
tecnosys 0:0b777ff85deb 41 #define USB_EVT_IN_DMA_EOT 9 /* DMA IN EP - End of Transfer */
tecnosys 0:0b777ff85deb 42 #define USB_EVT_OUT_DMA_NDR 10 /* DMA OUT EP - New Descriptor Request */
tecnosys 0:0b777ff85deb 43 #define USB_EVT_IN_DMA_NDR 11 /* DMA IN EP - New Descriptor Request */
tecnosys 0:0b777ff85deb 44 #define USB_EVT_OUT_DMA_ERR 12 /* DMA OUT EP - Error */
tecnosys 0:0b777ff85deb 45 #define USB_EVT_IN_DMA_ERR 13 /* DMA IN EP - Error */
tecnosys 0:0b777ff85deb 46
tecnosys 0:0b777ff85deb 47 /* USB Endpoint Events Callback Pointers */
tecnosys 0:0b777ff85deb 48 extern void (* const USB_P_EP[16])(uint32_t event);
tecnosys 0:0b777ff85deb 49
tecnosys 0:0b777ff85deb 50 /* USB Endpoint Events Callback Functions */
tecnosys 0:0b777ff85deb 51 extern void USB_EndPoint0 (uint32_t event);
tecnosys 0:0b777ff85deb 52 extern void USB_EndPoint1 (uint32_t event);
tecnosys 0:0b777ff85deb 53 extern void USB_EndPoint2 (uint32_t event);
tecnosys 0:0b777ff85deb 54 extern void USB_EndPoint3 (uint32_t event);
tecnosys 0:0b777ff85deb 55 extern void USB_EndPoint4 (uint32_t event);
tecnosys 0:0b777ff85deb 56 extern void USB_EndPoint5 (uint32_t event);
tecnosys 0:0b777ff85deb 57 extern void USB_EndPoint6 (uint32_t event);
tecnosys 0:0b777ff85deb 58 extern void USB_EndPoint7 (uint32_t event);
tecnosys 0:0b777ff85deb 59 extern void USB_EndPoint8 (uint32_t event);
tecnosys 0:0b777ff85deb 60 extern void USB_EndPoint9 (uint32_t event);
tecnosys 0:0b777ff85deb 61 extern void USB_EndPoint10 (uint32_t event);
tecnosys 0:0b777ff85deb 62 extern void USB_EndPoint11 (uint32_t event);
tecnosys 0:0b777ff85deb 63 extern void USB_EndPoint12 (uint32_t event);
tecnosys 0:0b777ff85deb 64 extern void USB_EndPoint13 (uint32_t event);
tecnosys 0:0b777ff85deb 65 extern void USB_EndPoint14 (uint32_t event);
tecnosys 0:0b777ff85deb 66 extern void USB_EndPoint15 (uint32_t event);
tecnosys 0:0b777ff85deb 67
tecnosys 0:0b777ff85deb 68 /* USB Core Events Callback Functions */
tecnosys 0:0b777ff85deb 69 extern void USB_Configure_Event (void);
tecnosys 0:0b777ff85deb 70 extern void USB_Interface_Event (void);
tecnosys 0:0b777ff85deb 71 extern void USB_Feature_Event (void);
tecnosys 0:0b777ff85deb 72
tecnosys 0:0b777ff85deb 73
tecnosys 0:0b777ff85deb 74 #endif /* __USBUSER_H__ */