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

Lite version #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ChocolateFrogsNuts
Copy link

Finally got around to doing a pull request for this!
Code optimisations and changes to make it possible to use a "Lite" version.
If using CLK6/7 this will cut the compiled size by almost 2K.
If you don't need CLK6/7 the compiled size can be reduced a further 2K.

Code optimisations and changes to make it possible to use a "Lite" version.
If using CLK6/7 this will cut the compiled size by almost 2K.
If you don't need CLK6/7 the compiled size can be reduced a further 2K.
Forgot to include the header in the last commit
Comment on lines +36 to +52
//#define SI5351_WITH_CLK67 0

#ifndef SI5351_WITH_CLK67
#define SI5351_WITH_CLK67 1
#endif
#ifndef SI5351_WITH_NEW
#define SI5351_WITH_NEW 0
#endif

/* Define definitions */

#if WITH_CLK67
#define SI5351_CLK_LAST SI5351_CLK7
#else
#define SI5351_CLK_LAST SI5351_CLK5
#endif

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to set 2 seperate flags(SI5351_WITH_CLK67, WITH_CLK67) and to indicate that there are clocks 6 and 7? It can be a single flag I think.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think WITH_CLK67 should change to SI5351_WITH_CLK67.

@MedadRufus
Copy link

Definitely a useful improvement, especially when running on resource constrained platforms like the ATmega328p.

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