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

Optionally disable MCP2517FD workarounds #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Flole998
Copy link
Contributor

@Flole998 Flole998 commented Jan 4, 2023

By default this does nothing, when enabling the compile-time-define DISABLEMCP2517FDCOMPAT it no longer disables interrupts during SPI transactions which slightly increases performance and avoids delaying interrupts (which could be problematic on dimmers for example as they may start flickering).

I took this chance to move the duplicate enable/disable code to it's own function that is always inlined, so this just improved readability but shouldn't affect the generated machine code at all.

This new option should be added to the documentation PDF aswell.

Fixes: #26

fterretf added a commit to fterretf/acan2517FD that referenced this pull request Jun 2, 2023
fterretf added a commit to fterretf/acan2517FD that referenced this pull request Jun 7, 2023
fterretf added a commit to fterretf/acan2517FD that referenced this pull request Jun 14, 2023
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.

noInterrupts() and Interrupts() call potentially unneccesary
1 participant