-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Deactivate USB-Core via -D definition #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@NicoHood AFAIU, -U only undefines things previously defined with -D on the same commandline, it does not prevent #defining them in the source. To support what you need, you would need an #ifnded NO_USB (or something better named) in the source. |
Okay so I changed the issue. We could:
2nd option would save us any compiler flags and new boards.txt submenus. |
Problem with the second option is that any existing sketches will break, since they won't have the right include... |
See the PR I referenced. This would solve it properly. The only question is if we should add a workaround or update the bootloader. |
I want to deactivate the USB core of Arduino. Therefore USBCON needs to be undefined. Passing options with -D works, -U not.
2nd issue related to this: the USB-Core should not rely on such a USBCON definition, there should be a wrapper
cc @facchinm
The text was updated successfully, but these errors were encountered: