JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Committer:
GGHHHH
Date:
Wed Feb 03 15:26:04 2016 +0000
Revision:
61:920749e762f4
Child:
65:9dbee72e3e6e
ok;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GGHHHH 61:920749e762f4 1 /* Copyright (c) 2010-2011 mbed.org, MIT License
GGHHHH 61:920749e762f4 2 *
GGHHHH 61:920749e762f4 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
GGHHHH 61:920749e762f4 4 * and associated documentation files (the "Software"), to deal in the Software without
GGHHHH 61:920749e762f4 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
GGHHHH 61:920749e762f4 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
GGHHHH 61:920749e762f4 7 * Software is furnished to do so, subject to the following conditions:
GGHHHH 61:920749e762f4 8 *
GGHHHH 61:920749e762f4 9 * The above copyright notice and this permission notice shall be included in all copies or
GGHHHH 61:920749e762f4 10 * substantial portions of the Software.
GGHHHH 61:920749e762f4 11 *
GGHHHH 61:920749e762f4 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
GGHHHH 61:920749e762f4 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
GGHHHH 61:920749e762f4 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
GGHHHH 61:920749e762f4 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
GGHHHH 61:920749e762f4 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
GGHHHH 61:920749e762f4 17 */
GGHHHH 61:920749e762f4 18
GGHHHH 61:920749e762f4 19 #ifndef USBENDPOINTS_H
GGHHHH 61:920749e762f4 20 #define USBENDPOINTS_H
GGHHHH 61:920749e762f4 21
GGHHHH 61:920749e762f4 22 /* SETUP packet size */
GGHHHH 61:920749e762f4 23 #define SETUP_PACKET_SIZE (8)
GGHHHH 61:920749e762f4 24
GGHHHH 61:920749e762f4 25 /* Options flags for configuring endpoints */
GGHHHH 61:920749e762f4 26 #define DEFAULT_OPTIONS (0)
GGHHHH 61:920749e762f4 27 #define SINGLE_BUFFERED (1U << 0)
GGHHHH 61:920749e762f4 28 #define ISOCHRONOUS (1U << 1)
GGHHHH 61:920749e762f4 29 #define RATE_FEEDBACK_MODE (1U << 2) /* Interrupt endpoints only */
GGHHHH 61:920749e762f4 30
GGHHHH 61:920749e762f4 31 /* Endpoint transfer status, for endpoints > 0 */
GGHHHH 61:920749e762f4 32 typedef enum {
GGHHHH 61:920749e762f4 33 EP_COMPLETED, /* Transfer completed */
GGHHHH 61:920749e762f4 34 EP_PENDING, /* Transfer in progress */
GGHHHH 61:920749e762f4 35 EP_INVALID, /* Invalid parameter */
GGHHHH 61:920749e762f4 36 EP_STALLED, /* Endpoint stalled */
GGHHHH 61:920749e762f4 37 } EP_STATUS;
GGHHHH 61:920749e762f4 38
GGHHHH 61:920749e762f4 39 /* Include configuration for specific target */
GGHHHH 61:920749e762f4 40 #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC2460) || defined(TARGET_LPC4088_DM)
GGHHHH 61:920749e762f4 41 #include "USBEndpoints_LPC17_LPC23.h"
GGHHHH 61:920749e762f4 42 #elif defined(TARGET_LPC11UXX) || defined(TARGET_LPC1347) || defined (TARGET_LPC11U6X) || defined (TARGET_LPC1549)
GGHHHH 61:920749e762f4 43 #include "USBEndpoints_LPC11U.h"
GGHHHH 61:920749e762f4 44 #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 45 #include "USBEndpoints_KL25Z.h"
GGHHHH 61:920749e762f4 46 #elif defined (TARGET_STM32F4)
GGHHHH 61:920749e762f4 47 #include "USBEndpoints_STM32F4.h"
GGHHHH 61:920749e762f4 48 #elif defined (TARGET_RZ_A1H)
GGHHHH 61:920749e762f4 49 #include "USBEndpoints_RZ_A1H.h"
GGHHHH 61:920749e762f4 50 #elif defined(TARGET_Maxim)
GGHHHH 61:920749e762f4 51 #include "USBEndpoints_Maxim.h"
GGHHHH 61:920749e762f4 52 #elif defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32WG_STK3800) || defined(TARGET_EFM32HG_STK3400)
GGHHHH 61:920749e762f4 53 #include "USBEndpoints_EFM32.h"
GGHHHH 61:920749e762f4 54 #else
GGHHHH 61:920749e762f4 55 #error "Unknown target type"
GGHHHH 61:920749e762f4 56 #endif
GGHHHH 61:920749e762f4 57
GGHHHH 61:920749e762f4 58 #endif