Index

auto-plow / 4a63c8c

A wheelchair motor-propelled battery-powered ESP32-driven remote control snow plow.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
630 Nov 2018 18:364a63c8cInclude Arduino core filesJoshua1460N

Blob @ auto-plow / include / arduino / USBDesc.h

text/plain1519 bytesdownload raw
1/*
2 Copyright (c) 2011, Peter Barrett
3 Copyright (c) 2015, Arduino LLC
4
5 Permission to use, copy, modify, and/or distribute this software for
6 any purpose with or without fee is hereby granted, provided that the
7 above copyright notice and this permission notice appear in all copies.
8
9 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
12 BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
13 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
14 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
15 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
16 SOFTWARE.
17 */
18
19#define PLUGGABLE_USB_ENABLED
20
21#if defined(EPRST6)
22#define USB_ENDPOINTS 7 // AtMegaxxU4
23#else
24#define USB_ENDPOINTS 5 // AtMegaxxU2
25#endif
26
27#define ISERIAL_MAX_LEN 20
28
29#define CDC_INTERFACE_COUNT 2
30#define CDC_ENPOINT_COUNT 3
31
32#define CDC_ACM_INTERFACE 0 // CDC ACM
33#define CDC_DATA_INTERFACE 1 // CDC Data
34#define CDC_FIRST_ENDPOINT 1
35#define CDC_ENDPOINT_ACM (CDC_FIRST_ENDPOINT) // CDC First
36#define CDC_ENDPOINT_OUT (CDC_FIRST_ENDPOINT+1)
37#define CDC_ENDPOINT_IN (CDC_FIRST_ENDPOINT+2)
38
39#define INTERFACE_COUNT (MSC_INTERFACE + MSC_INTERFACE_COUNT)
40
41#define CDC_RX CDC_ENDPOINT_OUT
42#define CDC_TX CDC_ENDPOINT_IN
43
44#define IMANUFACTURER 1
45#define IPRODUCT 2
46#define ISERIAL 3
47