forked from arduino/ArduinoCore-avr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow disabling CDC with -DCDC_DISABLED
based on https://github.com/gdsports/usb-metamorph/tree/master/USBSerPassThruLine CDC_DISABLED is also used in ArduinoCore-samd for the same purpose. You can emulate a USB Boot Keyboard with compatible Arduinos (like the Leonardo or the SparkFun Pro Micro), but by default it won't work with some hosts (definitely my Aten KVM switch, AFAIK also some BIOSes, old Windows versions and some accessibility devices), because they get confused by the "modem" and CDC devices used to provide a serial console over USB. This change makes it relatively easy to disable the CDC at compiletime. Disabling it of course means that the serial console won't work anymore, and that you can only flash directly after resetting the board. See also NicoHood/HID#225 and arduino/Arduino#6387 and https://forum.arduino.cc/index.php?topic=545288.msg3717028#msg3717028
- Loading branch information
1 parent
60f0d0b
commit 7bd9af8
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters