Line 13... |
Line 13... |
13 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT 1
|
13 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT 1
|
14 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT3 0
|
14 |
#define USB_CFG_HAVE_INTRIN_ENDPOINT3 0
|
15 |
#define USB_CFG_IMPLEMENT_HALT 0
|
15 |
#define USB_CFG_IMPLEMENT_HALT 0
|
16 |
#define USB_CFG_INTR_POLL_INTERVAL 10
|
16 |
#define USB_CFG_INTR_POLL_INTERVAL 10
|
17 |
#define USB_CFG_IS_SELF_POWERED 0
|
17 |
#define USB_CFG_IS_SELF_POWERED 0
|
18 |
#define USB_CFG_MAX_BUS_POWER 150
|
18 |
#define USB_CFG_MAX_BUS_POWER 100
|
19 |
#define USB_CFG_IMPLEMENT_FN_WRITE 0
|
19 |
#define USB_CFG_IMPLEMENT_FN_WRITE 0
|
20 |
#define USB_CFG_IMPLEMENT_FN_READ 0
|
20 |
#define USB_CFG_IMPLEMENT_FN_READ 0
|
21 |
#define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
|
21 |
#define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
|
22 |
#define USB_CFG_HAVE_FLOWCONTROL 0
|
22 |
#define USB_CFG_HAVE_FLOWCONTROL 0
|
23 |
|
23 |
|
24 |
#ifndef __ASSEMBLER__
|
- |
|
25 |
extern void usbEventResetReady(void);
|
- |
|
26 |
#endif
|
- |
|
27 |
|
- |
|
28 |
#define USB_RESET_HOOK(isReset) if(!isReset){usbEventResetReady();}
|
- |
|
29 |
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0
|
24 |
#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0
|
30 |
|
25 |
|
31 |
/* -------------------------- Device Description --------------------------- */
|
26 |
/* -------------------------- Device Description --------------------------- */
|
32 |
|
27 |
|
33 |
#define USB_CFG_VENDOR_ID 0x42, 0x42
|
28 |
#define USB_CFG_VENDOR_ID 0x42, 0x42
|
34 |
#define USB_CFG_DEVICE_ID 0x31, 0xe1
|
29 |
#define USB_CFG_DEVICE_ID 0x31, 0xe2
|
35 |
#define USB_CFG_DEVICE_VERSION 0x00, 0x02
|
30 |
#define USB_CFG_DEVICE_VERSION 0x02, 0x00
|
36 |
#define USB_CFG_VENDOR_NAME 'n', 'e', 'w', 'i', 'o', 'i', 't', '.', 'c', 'o', 'm', '.', 'a', 'u'
|
31 |
#define USB_CFG_VENDOR_NAME 'n', 'e', 'w', 'i', 'o', 'i', 't', '.', 'c', 'o', 'm', '.', 'a', 'u'
|
37 |
#define USB_CFG_VENDOR_NAME_LEN 14
|
32 |
#define USB_CFG_VENDOR_NAME_LEN 14
|
38 |
#define USB_CFG_DEVICE_NAME 'C', 'o', 'm', 'm', ' ', 'S', 'e', 'l', 'e', 'c', 't', 'o', 'r'
|
33 |
#define USB_CFG_DEVICE_NAME 'C', 'o', 'm', 'm', ' ', 'S', 'e', 'l', 'e', 'c', 't', 'o', 'r'
|
39 |
#define USB_CFG_DEVICE_NAME_LEN 13
|
34 |
#define USB_CFG_DEVICE_NAME_LEN 13
|
40 |
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
35 |
/*#define USB_CFG_SERIAL_NUMBER 'N', 'o', 'n', 'e' */
|
Line 42... |
Line 37... |
42 |
#define USB_CFG_DEVICE_CLASS 0
|
37 |
#define USB_CFG_DEVICE_CLASS 0
|
43 |
#define USB_CFG_DEVICE_SUBCLASS 0
|
38 |
#define USB_CFG_DEVICE_SUBCLASS 0
|
44 |
#define USB_CFG_INTERFACE_CLASS 3 /* HID */
|
39 |
#define USB_CFG_INTERFACE_CLASS 3 /* HID */
|
45 |
#define USB_CFG_INTERFACE_SUBCLASS 0 /* no boot interface */
|
40 |
#define USB_CFG_INTERFACE_SUBCLASS 0 /* no boot interface */
|
46 |
#define USB_CFG_INTERFACE_PROTOCOL 0 /* no protocol */
|
41 |
#define USB_CFG_INTERFACE_PROTOCOL 0 /* no protocol */
|
47 |
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 44 /* total length of report descriptor */
|
42 |
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH HID_SIZE /* total length of report descriptor */
|
48 |
/* #define USB_PUBLIC static */
|
43 |
/* #define USB_PUBLIC static */
|
49 |
|
44 |
|
50 |
/* ------------------- Fine Control over USB Descriptors ------------------- */
|
45 |
/* ------------------- Fine Control over USB Descriptors ------------------- */
|
51 |
|
46 |
|
52 |
#define USB_CFG_DESCR_PROPS_DEVICE 0
|
47 |
#define USB_CFG_DESCR_PROPS_DEVICE 0
|