@@ -88,7 +88,7 @@ const DeviceDescriptor _cdcDeviceDescriptor PROGMEM =
88
88
64 , // packet size (64)
89
89
USB_VID, // vendor ID for the USB device
90
90
USB_PID, // product ID for the USB device
91
- 0x100 , // this indicates USB version 1.0
91
+ 0x100 , // device release version as BCD (1.00)
92
92
USB_STRING_INDEX_MANUFACTURER, // string index for mfg
93
93
USB_STRING_INDEX_PRODUCT, // string index for product name
94
94
USB_STRING_INDEX_SERIAL, // string index for serial number (0 for 'none')
@@ -124,7 +124,7 @@ const CDCDescriptor _cdcInterface = // needs to be no more than 55 bytes in leng
124
124
D_ENDPOINT (USB_ENDPOINT_IN (CDC_ENDPOINT_ACM), // IN endpoint for CDC_ENDPOINT_ACM
125
125
USB_ENDPOINT_TYPE_INTERRUPT, // INTERRUPT type
126
126
0x10 , // max packet size 16
127
- 0x40 ), // interval 64
127
+ 0x40 ), // interval 64 frames i.e. 64 msec (see USB spec table 9-13)
128
128
129
129
// SECOND INTERFACE
130
130
// CDC data interface (endpoints 1, 2)
@@ -137,12 +137,12 @@ const CDCDescriptor _cdcInterface = // needs to be no more than 55 bytes in leng
137
137
D_ENDPOINT (USB_ENDPOINT_OUT (CDC_ENDPOINT_OUT), // OUT endpoint, index 'CDC_ENDPOINT_OUT'
138
138
USB_ENDPOINT_TYPE_BULK, // BULK data transfers
139
139
0x40 , // max packet size 64
140
- 0 ), // interval 0
140
+ 1 ), // interval 1 (was 0)
141
141
142
142
D_ENDPOINT (USB_ENDPOINT_IN (CDC_ENDPOINT_IN), // IN endpoint, index 'CDC_ENDPOINT_IN'
143
143
USB_ENDPOINT_TYPE_BULK, // BULK data transfers
144
144
0x40 , // max packet size 64
145
- 0 ) // interval 0
145
+ 0 ) // interval 0 (apparently not needed)
146
146
};
147
147
148
148
void WEAK CDC_Reset (void )
0 commit comments