source: rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/USB/USBDesc.h@ 224

Last change on this file since 224 was 224, checked in by ertl-honda, 8 years ago

1.7.10のファイルに更新

File size: 1.5 KB
Line 
1/*
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
20*/
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
29
30#ifdef CDC_ENABLED
31#define CDC_INTERFACE_COUNT 2
32#define CDC_ENPOINT_COUNT 3
33#endif
34
35// CDC
36#define CDC_ACM_INTERFACE 0 // CDC ACM
37#define CDC_DATA_INTERFACE 1 // CDC Data
38#define CDC_FIRST_ENDPOINT 1
39#define CDC_ENDPOINT_ACM 1
40#define CDC_ENDPOINT_OUT 2
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
47
48// HID
49#define HID_INTERFACE 2 // HID
50#define HID_ENDPOINT_INT 4
51
52
53#define ISERIAL_MAX_LEN 20
54
55// Defined string description
56#define IMANUFACTURER 1
57#define IPRODUCT 2
58#define ISERIAL 3
59
60#endif /* __USBDESC_H__ */
Note: See TracBrowser for help on using the repository browser.