1 | // Copyright (c) 2010, Peter Barrett
|
---|
2 | /*
|
---|
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.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef __USBDESC_H__
|
---|
18 | #define __USBDESC_H__
|
---|
19 |
|
---|
20 | // CDC or HID can be enabled together.
|
---|
21 | #define CDC_ENABLED
|
---|
22 | #define HID_ENABLED
|
---|
23 |
|
---|
24 | // CDC
|
---|
25 | #define CDC_ACM_INTERFACE 0 // CDC ACM
|
---|
26 | #define CDC_DATA_INTERFACE 1 // CDC Data
|
---|
27 | #define CDC_ENDPOINT_ACM 1
|
---|
28 | #define CDC_ENDPOINT_OUT 2
|
---|
29 | #define CDC_ENDPOINT_IN 3
|
---|
30 |
|
---|
31 | // HID
|
---|
32 | #define HID_INTERFACE 2 // HID
|
---|
33 | #define HID_ENDPOINT_INT 4
|
---|
34 |
|
---|
35 | // Defined string description
|
---|
36 | #define IMANUFACTURER 1
|
---|
37 | #define IPRODUCT 2
|
---|
38 |
|
---|
39 | #endif /* __USBDESC_H__ */
|
---|