USBMSD SD card Hello World for Mbed platforms
Dependencies: mbed USBMSD_SD USBDevice
USBDevice/USBDevice/USBEndpoints.h@2:27a7e7f8d399, 2011-11-11 (annotated)
- Committer:
- samux
- Date:
- Fri Nov 11 15:22:53 2011 +0000
- Revision:
- 2:27a7e7f8d399
we have 2MB with the sdcard!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux |
2:27a7e7f8d399 | 1 | /* USBEndpoints.h */ |
samux |
2:27a7e7f8d399 | 2 | /* USB endpoint configuration */ |
samux |
2:27a7e7f8d399 | 3 | /* Copyright (c) 2011 ARM Limited. All rights reserved. */ |
samux |
2:27a7e7f8d399 | 4 | |
samux |
2:27a7e7f8d399 | 5 | #ifndef USBENDPOINTS_H |
samux |
2:27a7e7f8d399 | 6 | #define USBENDPOINTS_H |
samux |
2:27a7e7f8d399 | 7 | |
samux |
2:27a7e7f8d399 | 8 | /* SETUP packet size */ |
samux |
2:27a7e7f8d399 | 9 | #define SETUP_PACKET_SIZE (8) |
samux |
2:27a7e7f8d399 | 10 | |
samux |
2:27a7e7f8d399 | 11 | /* Options flags for configuring endpoints */ |
samux |
2:27a7e7f8d399 | 12 | #define DEFAULT_OPTIONS (0) |
samux |
2:27a7e7f8d399 | 13 | #define SINGLE_BUFFERED (1U << 0) |
samux |
2:27a7e7f8d399 | 14 | #define ISOCHRONOUS (1U << 1) |
samux |
2:27a7e7f8d399 | 15 | #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */ |
samux |
2:27a7e7f8d399 | 16 | |
samux |
2:27a7e7f8d399 | 17 | /* Endpoint transfer status, for endpoints > 0 */ |
samux |
2:27a7e7f8d399 | 18 | typedef enum { |
samux |
2:27a7e7f8d399 | 19 | EP_COMPLETED, /* Transfer completed */ |
samux |
2:27a7e7f8d399 | 20 | EP_PENDING, /* Transfer in progress */ |
samux |
2:27a7e7f8d399 | 21 | EP_INVALID, /* Invalid parameter */ |
samux |
2:27a7e7f8d399 | 22 | EP_STALLED, /* Endpoint stalled */ |
samux |
2:27a7e7f8d399 | 23 | } EP_STATUS; |
samux |
2:27a7e7f8d399 | 24 | |
samux |
2:27a7e7f8d399 | 25 | /* Include configuration for specific target */ |
samux |
2:27a7e7f8d399 | 26 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) |
samux |
2:27a7e7f8d399 | 27 | #include "USBEndpoints_LPC17_LPC23.h" |
samux |
2:27a7e7f8d399 | 28 | #elif defined(TARGET_LPC11U24) |
samux |
2:27a7e7f8d399 | 29 | #include "USBEndpoints_LPC11U.h" |
samux |
2:27a7e7f8d399 | 30 | #else |
samux |
2:27a7e7f8d399 | 31 | #error "Unknown target type" |
samux |
2:27a7e7f8d399 | 32 | #endif |
samux |
2:27a7e7f8d399 | 33 | |
samux |
2:27a7e7f8d399 | 34 | #endif |