-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
base: master
Are you sure you want to change the base?
Lite version #64
Conversation
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
//#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 | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
Definitely a useful improvement, especially when running on resource constrained platforms like the ATmega328p. |
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.