Lucas Lim / Mbed 2 deprecated HSP_Temperature_Barometer_CS3237

Dependencies:   mbed

Committer:
lucaslwl
Date:
Mon Aug 26 08:11:41 2019 +0000
Revision:
22:5c07298d3383
add library folder

Who changed what in which revision?

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