| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
I think WITH_CLK67 should change to SI5351_WITH_CLK67.
Sorry, something went wrong.
|
Definitely a useful improvement, especially when running on resource constrained platforms like the ATmega328p. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.