File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,9 @@ int Serial_::available(void)
176
176
{
177
177
ring_buffer *buffer = &cdc_rx_buffer;
178
178
if (buffer->full ) {
179
- USB->DEVICE .DeviceEndpoint [2 ].EPINTENSET .reg = ~USB_DEVICE_EPINTENCLR_RXSTP;
180
179
return CDC_SERIAL_BUFFER_SIZE;
181
180
}
182
181
if (buffer->head == buffer->tail ) {
183
- USB->DEVICE .DeviceEndpoint [2 ].EPINTENSET .reg = USB_DEVICE_EPINTENCLR_RXSTP;
184
182
USB->DEVICE .DeviceEndpoint [2 ].EPINTENSET .reg = USB_DEVICE_EPINTENCLR_TRCPT (1 );
185
183
}
186
184
return (uint32_t )(CDC_SERIAL_BUFFER_SIZE + buffer->head - buffer->tail ) % CDC_SERIAL_BUFFER_SIZE;
Original file line number Diff line number Diff line change 28
28
#define CDC_DATA_INTERFACE 1 // CDC Data
29
29
#define CDC_ENDPOINT_ACM 1
30
30
#define CDC_ENDPOINT_OUT 2
31
- #define CDC_ENDPOINT_IN 2
31
+ #define CDC_ENDPOINT_IN 3
32
32
33
33
// HID
34
34
#define HID_INTERFACE 2 // HID
35
- #define HID_ENDPOINT_INT 3
35
+ #define HID_ENDPOINT_INT 4
36
36
37
37
// Defined string description
38
38
#define IMANUFACTURER 1
You can’t perform that action at this time.
0 commit comments