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

[FSDEV] Simplify toggle bit logic #2675

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

Okarss
Copy link
Contributor

@Okarss Okarss commented Jun 14, 2024

Reduced the toggle bit logic to a single XOR. Improves performance, reduces size and simplifies source code. The original code is more than a decade old nonsense from ST, which is still present in their current code.

In addition made the delays in the initialization safer against the optimization.

@Okarss Okarss changed the title [STM32 FSDEV] Simplify toggle bit logic [FSDEV] Simplify toggle bit logic Jun 14, 2024
@HiFiPhile
Copy link
Collaborator

Thanks, LGTM.

@HiFiPhile HiFiPhile merged commit edf1ef6 into hathach:master Jun 14, 2024
76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants