USBMSD SD card Hello World for Mbed platforms

Dependencies:   mbed USBMSD_SD USBDevice

Committer:
samux
Date:
Sun Dec 11 15:22:50 2011 +0000
Revision:
18:08b207d10056
Parent:
2:27a7e7f8d399
all is working: rename...

Who changed what in which revision?

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