EA BaseBoard, playing wav, PC see\'s SD-card through USB port.

Dependencies:   mbed

Committer:
Lerche
Date:
Tue Nov 22 05:45:58 2011 +0000
Revision:
0:fef366d2ed20
Thanks to those who provided EA_WavPlayer and USB_MSC

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Lerche 0:fef366d2ed20 1 /* USBEndpoints_LPC11U.h */
Lerche 0:fef366d2ed20 2 /* Endpoint configuration for LPC11U */
Lerche 0:fef366d2ed20 3 /* Copyright (c) 2011 ARM Limited. All rights reserved. */
Lerche 0:fef366d2ed20 4
Lerche 0:fef366d2ed20 5 #define NUMBER_OF_LOGICAL_ENDPOINTS (5)
Lerche 0:fef366d2ed20 6 #define NUMBER_OF_PHYSICAL_ENDPOINTS (NUMBER_OF_LOGICAL_ENDPOINTS * 2)
Lerche 0:fef366d2ed20 7
Lerche 0:fef366d2ed20 8 /* Define physical endpoint numbers */
Lerche 0:fef366d2ed20 9
Lerche 0:fef366d2ed20 10 /* Endpoint No. Type(s) MaxPacket DoubleBuffer */
Lerche 0:fef366d2ed20 11 /* ---------------- ------------ ---------- --- */
Lerche 0:fef366d2ed20 12 #define EP0OUT (0) /* Control 64 No */
Lerche 0:fef366d2ed20 13 #define EP0IN (1) /* Control 64 No */
Lerche 0:fef366d2ed20 14 #define EP1OUT (2) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 15 #define EP1IN (3) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 16 #define EP2OUT (4) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 17 #define EP2IN (5) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 18 #define EP3OUT (6) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 19 #define EP3IN (7) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 20 #define EP4OUT (8) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 21 #define EP4IN (9) /* Int/Bulk/Iso 64/64/1023 Yes */
Lerche 0:fef366d2ed20 22
Lerche 0:fef366d2ed20 23 /* Maximum Packet sizes */
Lerche 0:fef366d2ed20 24
Lerche 0:fef366d2ed20 25 #define MAX_PACKET_SIZE_EP0 (64)
Lerche 0:fef366d2ed20 26 #define MAX_PACKET_SIZE_EP1 (64) /* Int/Bulk */
Lerche 0:fef366d2ed20 27 #define MAX_PACKET_SIZE_EP2 (64) /* Int/Bulk */
Lerche 0:fef366d2ed20 28 #define MAX_PACKET_SIZE_EP3 (64) /* Int/Bulk */
Lerche 0:fef366d2ed20 29 #define MAX_PACKET_SIZE_EP4 (64) /* Int/Bulk */
Lerche 0:fef366d2ed20 30
Lerche 0:fef366d2ed20 31 #define MAX_PACKET_SIZE_EP1_ISO (1023) /* Isochronous */
Lerche 0:fef366d2ed20 32 #define MAX_PACKET_SIZE_EP2_ISO (1023) /* Isochronous */
Lerche 0:fef366d2ed20 33 #define MAX_PACKET_SIZE_EP3_ISO (1023) /* Isochronous */
Lerche 0:fef366d2ed20 34 #define MAX_PACKET_SIZE_EP4_ISO (1023) /* Isochronous */
Lerche 0:fef366d2ed20 35
Lerche 0:fef366d2ed20 36 /* Generic endpoints - intended to be portable accross devices */
Lerche 0:fef366d2ed20 37 /* and be suitable for simple USB devices. */
Lerche 0:fef366d2ed20 38
Lerche 0:fef366d2ed20 39 /* Bulk endpoint */
Lerche 0:fef366d2ed20 40 #define EPBULK_OUT (EP2OUT)
Lerche 0:fef366d2ed20 41 #define EPBULK_IN (EP2IN)
Lerche 0:fef366d2ed20 42 /* Interrupt endpoint */
Lerche 0:fef366d2ed20 43 #define EPINT_OUT (EP1OUT)
Lerche 0:fef366d2ed20 44 #define EPINT_IN (EP1IN)
Lerche 0:fef366d2ed20 45 /* Isochronous endpoint */
Lerche 0:fef366d2ed20 46 #define EPISO_OUT (EP3OUT)
Lerche 0:fef366d2ed20 47 #define EPISO_IN (EP3IN)
Lerche 0:fef366d2ed20 48
Lerche 0:fef366d2ed20 49 #define MAX_PACKET_SIZE_EPBULK (MAX_PACKET_SIZE_EP2)
Lerche 0:fef366d2ed20 50 #define MAX_PACKET_SIZE_EPINT (MAX_PACKET_SIZE_EP1)
Lerche 0:fef366d2ed20 51 #define MAX_PACKET_SIZE_EPISO (MAX_PACKET_SIZE_EP3_ISO)