[136] | 1 | /*
|
---|
[224] | 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
|
---|
[136] | 17 | */
|
---|
[224] | 18 | /*
|
---|
| 19 | **Modified 04/04/2016 by Arduino.org development team
|
---|
| 20 | */
|
---|
[136] | 21 |
|
---|
| 22 | #ifndef __USBDESC_H__
|
---|
| 23 | #define __USBDESC_H__
|
---|
| 24 |
|
---|
| 25 | // CDC or HID can be enabled together.
|
---|
| 26 | #define CDC_ENABLED
|
---|
| 27 | #define HID_ENABLED
|
---|
| 28 |
|
---|
[224] | 29 |
|
---|
| 30 | #ifdef CDC_ENABLED
|
---|
| 31 | #define CDC_INTERFACE_COUNT 2
|
---|
| 32 | #define CDC_ENPOINT_COUNT 3
|
---|
| 33 | #endif
|
---|
| 34 |
|
---|
[136] | 35 | // CDC
|
---|
| 36 | #define CDC_ACM_INTERFACE 0 // CDC ACM
|
---|
| 37 | #define CDC_DATA_INTERFACE 1 // CDC Data
|
---|
[224] | 38 | #define CDC_FIRST_ENDPOINT 1
|
---|
[136] | 39 | #define CDC_ENDPOINT_ACM 1
|
---|
| 40 | #define CDC_ENDPOINT_OUT 2
|
---|
| 41 | #define CDC_ENDPOINT_IN 3
|
---|
| 42 |
|
---|
[224] | 43 | #ifdef CDC_ENABLED
|
---|
| 44 | #define CDC_RX CDC_ENDPOINT_OUT
|
---|
| 45 | #define CDC_TX CDC_ENDPOINT_IN
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
[136] | 48 | // HID
|
---|
| 49 | #define HID_INTERFACE 2 // HID
|
---|
| 50 | #define HID_ENDPOINT_INT 4
|
---|
| 51 |
|
---|
[224] | 52 |
|
---|
| 53 | #define ISERIAL_MAX_LEN 20
|
---|
| 54 |
|
---|
[136] | 55 | // Defined string description
|
---|
| 56 | #define IMANUFACTURER 1
|
---|
[224] | 57 | #define IPRODUCT 2
|
---|
| 58 | #define ISERIAL 3
|
---|
[136] | 59 |
|
---|
| 60 | #endif /* __USBDESC_H__ */
|
---|