Committer:
chris
Date:
Fri Oct 21 23:02:16 2011 +0000
Revision:
1:4d08e0ebf5dd
Parent:
0:e98d1c2b16c6

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:e98d1c2b16c6 1 /* USBEndpoints.h */
chris 0:e98d1c2b16c6 2 /* USB endpoint configuration */
chris 0:e98d1c2b16c6 3 /* Copyright (c) 2011 ARM Limited. All rights reserved. */
chris 0:e98d1c2b16c6 4
chris 0:e98d1c2b16c6 5 #ifndef USB_ENDPOINTS
chris 0:e98d1c2b16c6 6 #define USB_ENDPOINTS
chris 0:e98d1c2b16c6 7
chris 0:e98d1c2b16c6 8 /* SETUP packet size */
chris 0:e98d1c2b16c6 9 #define SETUP_PACKET_SIZE (8)
chris 0:e98d1c2b16c6 10
chris 0:e98d1c2b16c6 11 /* Options flags for configuring endpoints */
chris 0:e98d1c2b16c6 12 #define DEFAULT_OPTIONS (0)
chris 0:e98d1c2b16c6 13 #define SINGLE_BUFFERED (1U << 0)
chris 0:e98d1c2b16c6 14 #define ISOCHRONOUS (1U << 1)
chris 0:e98d1c2b16c6 15 #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */
chris 0:e98d1c2b16c6 16
chris 0:e98d1c2b16c6 17 /* Endpoint transfer status, for endpoints > 0 */
chris 0:e98d1c2b16c6 18 typedef enum {
chris 0:e98d1c2b16c6 19 EP_COMPLETED, /* Transfer completed */
chris 0:e98d1c2b16c6 20 EP_PENDING, /* Transfer in progress */
chris 0:e98d1c2b16c6 21 EP_INVALID, /* Invalid parameter */
chris 0:e98d1c2b16c6 22 EP_STALLED, /* Endpoint stalled */
chris 0:e98d1c2b16c6 23 } EP_STATUS;
chris 0:e98d1c2b16c6 24
chris 0:e98d1c2b16c6 25 /* Include configuration for specific target */
chris 0:e98d1c2b16c6 26 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
chris 0:e98d1c2b16c6 27 #include "USBEndpoints_LPC17_LPC23.h"
chris 0:e98d1c2b16c6 28 #elif defined(TARGET_LPC11U24)
chris 0:e98d1c2b16c6 29 #include "USBEndpoints_LPC11U.h"
chris 0:e98d1c2b16c6 30 #else
chris 0:e98d1c2b16c6 31 #error "Unknown target type"
chris 0:e98d1c2b16c6 32 #endif
chris 0:e98d1c2b16c6 33
chris 0:e98d1c2b16c6 34 #endif