forked from mfulz_github/qmk_firmware
Fixed bug in RNDISEthernet and DualCDC demos not using the correct USB_ControlRequest structure for control request data.
Fixed documentation showing incorrect USB mode support on the supported AVRs list.
This commit is contained in:
parent
3f48497874
commit
e0985b9950
|
@ -186,16 +186,8 @@ EVENT_HANDLER(USB_ConfigurationChanged)
|
|||
*/
|
||||
EVENT_HANDLER(USB_UnhandledControlPacket)
|
||||
{
|
||||
uint8_t* LineCodingData;
|
||||
|
||||
/* Discard the unused wValue parameter */
|
||||
Endpoint_Discard_Word();
|
||||
|
||||
/* wIndex indicates the interface being controlled */
|
||||
uint16_t wIndex = Endpoint_Read_Word_LE();
|
||||
|
||||
/* Determine which interface's Line Coding data is being set from the wIndex parameter */
|
||||
LineCodingData = (wIndex == 0) ? (uint8_t*)&LineCoding1 : (uint8_t*)&LineCoding2;
|
||||
uint8_t* LineCodingData = (USB_ControlRequest.wIndex == 0) ? (uint8_t*)&LineCoding1 : (uint8_t*)&LineCoding2;
|
||||
|
||||
/* Process CDC specific control requests */
|
||||
switch (USB_ControlRequest.bRequest)
|
||||
|
|
|
@ -140,15 +140,6 @@ EVENT_HANDLER(USB_ConfigurationChanged)
|
|||
*/
|
||||
EVENT_HANDLER(USB_UnhandledControlPacket)
|
||||
{
|
||||
/* Discard the unused wValue parameter */
|
||||
Endpoint_Discard_Word();
|
||||
|
||||
/* Discard the unused wIndex parameter */
|
||||
Endpoint_Discard_Word();
|
||||
|
||||
/* Read in the wLength parameter */
|
||||
uint16_t wLength = Endpoint_Read_Word_LE();
|
||||
|
||||
/* Process RNDIS class commands */
|
||||
switch (USB_ControlRequest.bRequest)
|
||||
{
|
||||
|
@ -159,7 +150,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
|
|||
Endpoint_ClearSETUP();
|
||||
|
||||
/* Read in the RNDIS message into the message buffer */
|
||||
Endpoint_Read_Control_Stream_LE(RNDISMessageBuffer, wLength);
|
||||
Endpoint_Read_Control_Stream_LE(RNDISMessageBuffer, USB_ControlRequest.wLength);
|
||||
|
||||
/* Finalize the stream transfer to clear the last packet from the host */
|
||||
Endpoint_ClearIN();
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
*
|
||||
* \section Sec_ChangeLogXXXXXX Version XXXXXX
|
||||
*
|
||||
* - Fixed bug in RNDISEthernet and DualCDC demos not using the correct USB_ControlRequest structure for control request data
|
||||
* - Fixed documentation showing incorrect USB mode support on the supported AVRs list
|
||||
*
|
||||
* \section Sec_ChangeLog090510 Version 090510
|
||||
*
|
||||
* - Added new GenericHIDHost demo
|
||||
* - Corrections to the KeyboardHost and MouseHost demos' pipe handling to freeze and unfreeze the data pipes at the point of use
|
||||
* - KeyboardHost, MouseHost and GenericHIDHost demos now save and restore the currently selected pipe inside the pipe ISR
|
||||
|
|
|
@ -15,10 +15,10 @@
|
|||
* microcontrollers, released under the MIT license.
|
||||
*
|
||||
* Currently supported AVR models:
|
||||
* - AT90USB1286 (USB Host and Device)
|
||||
* - AT90USB1286 (USB Device Only)
|
||||
* - AT90USB1287 (USB Host and Device)
|
||||
* - AT90USB646 (USB Device Only)
|
||||
* - AT90USB647 (USB Device Only)
|
||||
* - AT90USB647 (USB Host and Device)
|
||||
* - AT90USB162 (USB Device Only)
|
||||
* - AT90USB82 (USB Device Only)
|
||||
* - ATMEGA16U4 (USB Device Only)
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
* to the next version released. It does not indicate all new additions to the library in each version change, only
|
||||
* areas relevant to making older projects compatible with the API changes of each new release.
|
||||
*
|
||||
* \section Sec_MigrationXXXXXX Migrating from 090401 to XXXXXX
|
||||
* \section Sec_MigrationXXXXXX Migrating from 090510 to XXXXXX
|
||||
*
|
||||
*
|
||||
* \section Sec_Migration090510 Migrating from 090401 to 090510
|
||||
*
|
||||
* <b>All</b>
|
||||
* - The ButtLoadTag.h header has been removed, as it was never used for its intended purpose. Projects should either remove all
|
||||
|
|
Loading…
Reference in New Issue