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

Allow osctune.h to deal with F_CPU defines that end in 'UL' or 'L'. Also add more explanatory comments. #34

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

Conversation

th-in-gs
Copy link

@th-in-gs th-in-gs commented Dec 5, 2022

The meat of the change here is to allow osctune.h to deal with F_CPU defines that end in 'UL' or 'L' (e.g. 12000000UL), as they do (maybe just in some toolchains?) nowadays. The assembler can't handle the letter suffixes, so we create another macro, F_CPU_NUMERIC, with the letters stripped.

I also commented a lot of osctune.h while working out for myself what it did (there are no changes ot the algorithm, just comments).

…defines that end in 'UL' or 'L' (e.g. 12000000UL), as they do (maybe just in some toolchains?) nowadays. The assembler can't handle the letter suffixes, so we create another macro, F_CPU_NUMERIC, with the letters stripped.

I also commented a lot of osctune.h while working out for myself what it did (there are no changes ot the algorithm, just comments).
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.

1 participant