forked from mirror/qmk_firmware
Fix issue in CDC device class driver where received data the size of the data endpoint could lock up the driver.
Further work on the new CDC and HID host mode class drivers. Reset changelog et. al. to reset development information for the new version currently under development.
This commit is contained in:
@@ -103,6 +103,13 @@ int main(void)
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
if (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
|
||||
{
|
||||
/* Echo received bytes from the attached device through the USART */
|
||||
while (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
|
||||
putchar(CDC_Host_ReceiveByte(&VirtualSerial_CDC_Interface));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,6 @@ LUFA_PATH = ../../../..
|
||||
# LUFA library compile-time options
|
||||
LUFA_OPTS = -D USE_NONSTANDARD_DESCRIPTOR_NAMES
|
||||
LUFA_OPTS += -D USB_HOST_ONLY
|
||||
LUFA_OPTS += -D NO_STREAM_CALLBACKS
|
||||
LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
|
||||
|
||||
|
||||
|
||||
@@ -105,6 +105,11 @@ int main(void)
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
break;
|
||||
case HOST_STATE_Configured:
|
||||
if (HID_Host_ReportReceived(&Mouse_HID_Interface))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user