- Timestamp:
- Apr 30, 2016, 11:29:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/USB/USBDesc.h
r136 r224 1 // Copyright (c) 2010, Peter Barrett2 1 /* 3 ** Permission to use, copy, modify, and/or distribute this software for 4 ** any purpose with or without fee is hereby granted, provided that the 5 ** above copyright notice and this permission notice appear in all copies. 6 ** 7 ** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 8 ** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 9 ** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 10 ** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 11 ** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 12 ** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 13 ** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 14 ** SOFTWARE. 2 Copyright (c) 2014 Arduino LLC. All right reserved. 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 See the GNU Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with this library; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 /* 19 **Modified 04/04/2016 by Arduino.org development team 15 20 */ 16 21 … … 22 27 #define HID_ENABLED 23 28 29 30 #ifdef CDC_ENABLED 31 #define CDC_INTERFACE_COUNT 2 32 #define CDC_ENPOINT_COUNT 3 33 #endif 34 24 35 // CDC 25 36 #define CDC_ACM_INTERFACE 0 // CDC ACM 26 37 #define CDC_DATA_INTERFACE 1 // CDC Data 38 #define CDC_FIRST_ENDPOINT 1 27 39 #define CDC_ENDPOINT_ACM 1 28 40 #define CDC_ENDPOINT_OUT 2 29 41 #define CDC_ENDPOINT_IN 3 42 43 #ifdef CDC_ENABLED 44 #define CDC_RX CDC_ENDPOINT_OUT 45 #define CDC_TX CDC_ENDPOINT_IN 46 #endif 30 47 31 48 // HID … … 33 50 #define HID_ENDPOINT_INT 4 34 51 52 53 #define ISERIAL_MAX_LEN 20 54 35 55 // Defined string description 36 56 #define IMANUFACTURER 1 37 #define IPRODUCT 2 57 #define IPRODUCT 2 58 #define ISERIAL 3 38 59 39 60 #endif /* __USBDESC_H__ */
Note:
See TracChangeset
for help on using the changeset viewer.