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: cdcuser.h
tecnosys 0:0b777ff85deb 5 * Purpose: USB Communication Device Class User module Definitions
tecnosys 0:0b777ff85deb 6 * Version: V1.10
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 __CDCUSER_H__
tecnosys 0:0b777ff85deb 20 #define __CDCUSER_H__
tecnosys 0:0b777ff85deb 21
tecnosys 0:0b777ff85deb 22 /* CDC buffer handling */
tecnosys 0:0b777ff85deb 23 extern int CDC_RdOutBuf (char *buffer, const int *length);
tecnosys 0:0b777ff85deb 24 extern int CDC_WrOutBuf (const char *buffer, int *length); //int was blank
tecnosys 0:0b777ff85deb 25 extern int CDC_OutBufAvailChar (int *availChar); //int was blank
tecnosys 0:0b777ff85deb 26
tecnosys 0:0b777ff85deb 27
tecnosys 0:0b777ff85deb 28 /* CDC Data In/Out Endpoint Address */
tecnosys 0:0b777ff85deb 29 #define CDC_DEP_IN 0x82
tecnosys 0:0b777ff85deb 30 #define CDC_DEP_OUT 0x02
tecnosys 0:0b777ff85deb 31
tecnosys 0:0b777ff85deb 32 /* CDC Communication In Endpoint Address */
tecnosys 0:0b777ff85deb 33 #define CDC_CEP_IN 0x81
tecnosys 0:0b777ff85deb 34
tecnosys 0:0b777ff85deb 35 /* CDC Requests Callback Functions */
tecnosys 0:0b777ff85deb 36 extern uint32_t CDC_SendEncapsulatedCommand (void);
tecnosys 0:0b777ff85deb 37 extern uint32_t CDC_GetEncapsulatedResponse (void);
tecnosys 0:0b777ff85deb 38 extern uint32_t CDC_SetCommFeature (unsigned short wFeatureSelector);
tecnosys 0:0b777ff85deb 39 extern uint32_t CDC_GetCommFeature (unsigned short wFeatureSelector);
tecnosys 0:0b777ff85deb 40 extern uint32_t CDC_ClearCommFeature (unsigned short wFeatureSelector);
tecnosys 0:0b777ff85deb 41 extern uint32_t CDC_GetLineCoding (void);
tecnosys 0:0b777ff85deb 42 extern uint32_t CDC_SetLineCoding (void);
tecnosys 0:0b777ff85deb 43 extern uint32_t CDC_SetControlLineState (unsigned short wControlSignalBitmap);
tecnosys 0:0b777ff85deb 44 extern uint32_t CDC_SendBreak (unsigned short wDurationOfBreak);
tecnosys 0:0b777ff85deb 45
tecnosys 0:0b777ff85deb 46 /* CDC Bulk Callback Functions */
tecnosys 0:0b777ff85deb 47 extern void CDC_BulkIn (void);
tecnosys 0:0b777ff85deb 48 extern void CDC_BulkOut (void);
tecnosys 0:0b777ff85deb 49
tecnosys 0:0b777ff85deb 50 /* CDC Notification Callback Function */
tecnosys 0:0b777ff85deb 51 extern void CDC_NotificationIn (void);
tecnosys 0:0b777ff85deb 52
tecnosys 0:0b777ff85deb 53 /* CDC Initializtion Function */
tecnosys 0:0b777ff85deb 54 extern void CDC_Init (char portNum);
tecnosys 0:0b777ff85deb 55
tecnosys 0:0b777ff85deb 56 /* CDC prepare the SERAIAL_STATE */
tecnosys 0:0b777ff85deb 57 extern unsigned short CDC_GetSerialState (void);
tecnosys 0:0b777ff85deb 58
tecnosys 0:0b777ff85deb 59 /* flow control */
tecnosys 0:0b777ff85deb 60 extern unsigned short CDC_DepInEmpty; // DataEndPoint IN empty
tecnosys 0:0b777ff85deb 61
tecnosys 0:0b777ff85deb 62 #endif /* __CDCUSER_H__ */
tecnosys 0:0b777ff85deb 63