add LPC1549, add FRDM-KL46Z, fix epComplete bit operation.

Dependents:   XBee-ExplorerLite USBLocalFileSystem USB-to-UART-bridge USBLocalFileSystem

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
va009039
Date:
Tue Aug 11 23:06:34 2015 +0000
Parent:
23:554b76408e69
Commit message:
add TARGET_MCU_LPC11U35_501

Changed in this revision

USBSerial/USBCDC.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBSerial/USBCDC.cpp	Sat Jun 21 07:25:16 2014 +0900
+++ b/USBSerial/USBCDC.cpp	Tue Aug 11 23:06:34 2015 +0000
@@ -44,6 +44,7 @@
     /* Process class-specific requests */
 
     if (transfer->setup.bmRequestType.Type == CLASS_TYPE) {
+        int rts,dtr;
         switch (transfer->setup.bRequest) {
             case CDC_GET_LINE_CODING:
                 transfer->remaining = 7;
@@ -58,8 +59,10 @@
                 terminal_connected = true;
                 break;
             case CDC_SET_CONTROL_LINE_STATE:
-                controlLineStateChanged((transfer->setup.wValue>>1) & 1, (transfer->setup.wValue) & 1);
-                terminal_connected = false;
+                rts = (transfer->setup.wValue>>1) & 1;
+                dtr = (transfer->setup.wValue) & 1;
+                controlLineStateChanged(rts, dtr);
+                terminal_connected = true;
                 success = true;
                 break;
             case CDC_SEND_BREAK: