sanguino/cores/arduino/USBDesc.h

Fri, 17 Nov 2017 10:13:31 +0100

author
mdd
date
Fri, 17 Nov 2017 10:13:31 +0100
changeset 3
770b218a4931
parent 2
b373b0288715
permissions
-rw-r--r--

proper configuration, homing and planner optimization

2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
3 /* Copyright (c) 2011, Peter Barrett
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
4 **
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
5 ** Permission to use, copy, modify, and/or distribute this software for
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
6 ** any purpose with or without fee is hereby granted, provided that the
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
7 ** above copyright notice and this permission notice appear in all copies.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
8 **
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
9 ** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
10 ** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
11 ** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
12 ** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
13 ** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
14 ** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
15 ** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
16 ** SOFTWARE.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
17 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
18
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
19 #define CDC_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
20 #define HID_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
21
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
22
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
23 #ifdef CDC_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
24 #define CDC_INTERFACE_COUNT 2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
25 #define CDC_ENPOINT_COUNT 3
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
26 #else
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
27 #define CDC_INTERFACE_COUNT 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
28 #define CDC_ENPOINT_COUNT 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
29 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
30
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
31 #ifdef HID_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
32 #define HID_INTERFACE_COUNT 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
33 #define HID_ENPOINT_COUNT 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
34 #else
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
35 #define HID_INTERFACE_COUNT 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
36 #define HID_ENPOINT_COUNT 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
37 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
38
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
39 #define CDC_ACM_INTERFACE 0 // CDC ACM
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
40 #define CDC_DATA_INTERFACE 1 // CDC Data
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
41 #define CDC_FIRST_ENDPOINT 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
42 #define CDC_ENDPOINT_ACM (CDC_FIRST_ENDPOINT) // CDC First
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
43 #define CDC_ENDPOINT_OUT (CDC_FIRST_ENDPOINT+1)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
44 #define CDC_ENDPOINT_IN (CDC_FIRST_ENDPOINT+2)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
45
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
46 #define HID_INTERFACE (CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT) // HID Interface
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
47 #define HID_FIRST_ENDPOINT (CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
48 #define HID_ENDPOINT_INT (HID_FIRST_ENDPOINT)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
49
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
50 #define INTERFACE_COUNT (MSC_INTERFACE + MSC_INTERFACE_COUNT)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
51
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
52 #ifdef CDC_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
53 #define CDC_RX CDC_ENDPOINT_OUT
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
54 #define CDC_TX CDC_ENDPOINT_IN
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
55 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
56
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
57 #ifdef HID_ENABLED
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
58 #define HID_TX HID_ENDPOINT_INT
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
59 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
60
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
61 #define IMANUFACTURER 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
62 #define IPRODUCT 2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
63

mercurial