Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ele350 by
USBEndpoints.h@65:9dbee72e3e6e, 2016-02-23 (annotated)
- Committer:
- GGHHHH
- Date:
- Tue Feb 23 16:16:34 2016 +0000
- Revision:
- 65:9dbee72e3e6e
- Parent:
- 61:920749e762f4
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GGHHHH | 65:9dbee72e3e6e | 1 | |
GGHHHH | 61:920749e762f4 | 2 | |
GGHHHH | 61:920749e762f4 | 3 | #ifndef USBENDPOINTS_H |
GGHHHH | 61:920749e762f4 | 4 | #define USBENDPOINTS_H |
GGHHHH | 61:920749e762f4 | 5 | |
GGHHHH | 61:920749e762f4 | 6 | /* SETUP packet size */ |
GGHHHH | 61:920749e762f4 | 7 | #define SETUP_PACKET_SIZE (8) |
GGHHHH | 61:920749e762f4 | 8 | |
GGHHHH | 61:920749e762f4 | 9 | /* Options flags for configuring endpoints */ |
GGHHHH | 61:920749e762f4 | 10 | #define DEFAULT_OPTIONS (0) |
GGHHHH | 61:920749e762f4 | 11 | #define SINGLE_BUFFERED (1U << 0) |
GGHHHH | 61:920749e762f4 | 12 | #define ISOCHRONOUS (1U << 1) |
GGHHHH | 61:920749e762f4 | 13 | #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */ |
GGHHHH | 61:920749e762f4 | 14 | |
GGHHHH | 61:920749e762f4 | 15 | /* Endpoint transfer status, for endpoints > 0 */ |
GGHHHH | 61:920749e762f4 | 16 | typedef enum { |
GGHHHH | 61:920749e762f4 | 17 | EP_COMPLETED, /* Transfer completed */ |
GGHHHH | 61:920749e762f4 | 18 | EP_PENDING, /* Transfer in progress */ |
GGHHHH | 61:920749e762f4 | 19 | EP_INVALID, /* Invalid parameter */ |
GGHHHH | 61:920749e762f4 | 20 | EP_STALLED, /* Endpoint stalled */ |
GGHHHH | 61:920749e762f4 | 21 | } EP_STATUS; |
GGHHHH | 61:920749e762f4 | 22 | |
GGHHHH | 61:920749e762f4 | 23 | /* Include configuration for specific target */ |
GGHHHH | 61:920749e762f4 | 24 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC2460) || defined(TARGET_LPC4088_DM) |
GGHHHH | 61:920749e762f4 | 25 | #include "USBEndpoints_LPC17_LPC23.h" |
GGHHHH | 61:920749e762f4 | 26 | #elif defined(TARGET_LPC11UXX) || defined(TARGET_LPC1347) || defined (TARGET_LPC11U6X) || defined (TARGET_LPC1549) |
GGHHHH | 61:920749e762f4 | 27 | #include "USBEndpoints_LPC11U.h" |
GGHHHH | 61:920749e762f4 | 28 | #elif defined(TARGET_KL25Z) | defined(TARGET_KL26Z) | defined(TARGET_KL43Z) | defined(TARGET_KL46Z) | defined(TARGET_K20D50M) | defined(TARGET_K64F) | defined(TARGET_K22F) | defined(TARGET_TEENSY3_1) |
GGHHHH | 61:920749e762f4 | 29 | #include "USBEndpoints_KL25Z.h" |
GGHHHH | 61:920749e762f4 | 30 | #elif defined (TARGET_STM32F4) |
GGHHHH | 61:920749e762f4 | 31 | #include "USBEndpoints_STM32F4.h" |
GGHHHH | 61:920749e762f4 | 32 | #elif defined (TARGET_RZ_A1H) |
GGHHHH | 61:920749e762f4 | 33 | #include "USBEndpoints_RZ_A1H.h" |
GGHHHH | 61:920749e762f4 | 34 | #elif defined(TARGET_Maxim) |
GGHHHH | 61:920749e762f4 | 35 | #include "USBEndpoints_Maxim.h" |
GGHHHH | 61:920749e762f4 | 36 | #elif defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32WG_STK3800) || defined(TARGET_EFM32HG_STK3400) |
GGHHHH | 61:920749e762f4 | 37 | #include "USBEndpoints_EFM32.h" |
GGHHHH | 61:920749e762f4 | 38 | #else |
GGHHHH | 61:920749e762f4 | 39 | #error "Unknown target type" |
GGHHHH | 61:920749e762f4 | 40 | #endif |
GGHHHH | 61:920749e762f4 | 41 | |
GGHHHH | 61:920749e762f4 | 42 | #endif |