Permalink
Browse files

usb_cdc_acm library: Changed max packet size of the notification endp…

…oint from 8 to 10; this is necessary because the notification packet is 10 bytes! Now usbser.sys handles the notifications fine.
  • Loading branch information...
1 parent 15ece71 commit 087388a5c6071e2bd62ae6288198db611f530add @DavidEGrayson DavidEGrayson committed Mar 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/src/usb_cdc_acm/usb_cdc_acm.c
@@ -189,7 +189,7 @@ CODE struct CONFIG1 {
USB_DESCRIPTOR_TYPE_ENDPOINT,
USB_ENDPOINT_ADDRESS_IN | CDC_NOTIFICATION_ENDPOINT, // bEndpointAddress
USB_TRANSFER_TYPE_INTERRUPT, // bmAttributes
- 8, // wMaxPacketSize
+ 10, // wMaxPacketSize
1, // bInterval
},
{
@@ -233,7 +233,7 @@ uint16 CODE * CODE usbStringDescriptors[] = { languages, manufacturer, product,
void usbCallbackInitEndpoints()
{
- usbInitEndpointIn(CDC_NOTIFICATION_ENDPOINT, 8);
+ usbInitEndpointIn(CDC_NOTIFICATION_ENDPOINT, 10);
usbInitEndpointOut(CDC_DATA_ENDPOINT, CDC_OUT_PACKET_SIZE);
usbInitEndpointIn(CDC_DATA_ENDPOINT, CDC_IN_PACKET_SIZE);

0 comments on commit 087388a

Please sign in to comment.