FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Lite version by ChocolateFrogsNuts · Pull Request #64 · etherkit/Si5351Arduino · GitHub

Lite version - #64

Open
ChocolateFrogsNuts wants to merge 2 commits into
etherkit:masterfrom
ChocolateFrogsNuts:lite
Open

Lite version#64
ChocolateFrogsNuts wants to merge 2 commits into
etherkit:masterfrom
ChocolateFrogsNuts:lite

Conversation

Copy link
Copy Markdown

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 thread src/si5351.h
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think WITH_CLK67 should change to SI5351_WITH_CLK67.

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL