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