add LPC1549, add FRDM-KL46Z, fix epComplete bit operation.
Dependents: XBee-ExplorerLite USBLocalFileSystem USB-to-UART-bridge USBLocalFileSystem
Fork of USBDevice by
Diff: USBSerial/USBCDC.cpp
- Revision:
- 23:554b76408e69
- Parent:
- 22:8615d80a0568
- Child:
- 24:8bd969c0b0f2
--- a/USBSerial/USBCDC.cpp Tue May 13 15:31:04 2014 +0900 +++ b/USBSerial/USBCDC.cpp Sat Jun 21 07:25:16 2014 +0900 @@ -80,15 +80,15 @@ if (length != 7) { return; } - + CONTROL_TRANSFER * transfer = getTransferPtr(); - + /* Process class-specific requests */ if (transfer->setup.bmRequestType.Type == CLASS_TYPE) { if (transfer->setup.bRequest == CDC_SET_LINE_CODING) { if (memcmp(cdc_line_coding, buf, 7)) { - memcpy(cdc_line_coding, buf, 7); - + memcpy(cdc_line_coding, buf, 7); + int baud = buf[0] + (buf[1] << 8) + (buf[2] << 16) + (buf[3] << 24); int stop = buf[4]; @@ -193,7 +193,7 @@ 0, // iConfiguration 0x80, // bmAttributes 50, // bMaxPower - + // IAD to associate the two CDC interfaces 0x08, // bLength 0x0b, // bDescriptorType