xd

Dependencies:   mbed

Fork of Simple_Touch_Sens by Veikko Kero

Committer:
Vekotin
Date:
Thu Jan 30 06:13:55 2014 +0000
Revision:
1:7ed7d128d225
egw

Who changed what in which revision?

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