Skip to content
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

[SAMD51] Fix extra serial compiling #21066

Merged
merged 3 commits into from
Feb 14, 2021
Merged

[SAMD51] Fix extra serial compiling #21066

merged 3 commits into from
Feb 14, 2021

Conversation

GMagician
Copy link
Contributor

@GMagician GMagician commented Feb 12, 2021

This let compile Marlin with Serial 1, 2 and 3 not defined, by default, by framework to save H/W resources

@thinkyhead
Copy link
Member

It seems like it would be fine to also add #if ANY_SERIAL_IS(0) and #if ANY_SERIAL_IS(-1). And, perhaps this can be applied to some of the other platforms too.

@thinkyhead thinkyhead added A: SAMD51 C: Optimization T: HAL & APIs Topic related to the HAL and internal APIs. labels Feb 14, 2021
@thinkyhead thinkyhead merged commit 8fd88ee into MarlinFirmware:bugfix-2.0.x Feb 14, 2021
@GMagician GMagician deleted the Fix-SAMD51-extra-serial-compiling branch February 14, 2021 14:03
@GMagician
Copy link
Contributor Author

It seems like it would be fine to also add #if ANY_SERIAL_IS(0) and #if ANY_SERIAL_IS(-1). And, perhaps this can be applied to some of the other platforms too.

Not sure how much memory, in samd51, may be freed. Serial and Serial1 are already defined in framework, but this for sure doesn't hurt

kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
zillarob pushed a commit to zillarob/Marlin that referenced this pull request Feb 25, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vyacheslav-shubin pushed a commit to vyacheslav-shubin/Marlin that referenced this pull request Mar 10, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vyacheslav-shubin pushed a commit to vyacheslav-shubin/Marlin that referenced this pull request Mar 10, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thinkyhead added a commit that referenced this pull request Apr 30, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: SAM3X8C/E A: SAMD51 C: Optimization T: HAL & APIs Topic related to the HAL and internal APIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants