[riot-notifications] [RIOT-OS/RIOT] usbus: Add CDC-ACM (Serial console) function (#11085)

Koen Zandberg notifications at github.com
Sat Jun 15 21:48:03 CEST 2019


bergzand commented on this pull request.



> +            break;
+        case USB_SETUP_REQ_SET_CONTROL_LINE_STATE:
+            if (setup->value & USB_CDC_ACM_CONTROL_LINE_DTE) {
+                DEBUG("CDC ACM: DTE Enabled\n");
+                cdcacm->state = USBUS_CDCACM_LINE_STATE_DTE;
+                _cdc_acm_flush(cdcacm);
+            }
+            else {
+                cdcacm->state = USBUS_CDCACM_LINE_STATE_DISCONNECTED;
+                DEBUG("CDC ACM: DTE disabled\n");
+            }
+            DEBUG("Value:0x%x, interface:%d, nb:%d\n", setup->value,
+                                                       setup->index,
+                                                       setup->length);
+            break;
+        default:

You're right, added the `return -1`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11085#discussion_r294057689
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190615/89f6ce8e/attachment-0001.html>


More information about the notifications mailing list