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

Abstraction of I2C interface for discussion - STM32 #76

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

Conversation

brucemack
Copy link

@brucemack brucemack commented Oct 10, 2020

Hi Jason:
Thanks for an excellent Si5351 library. I use it all the time on Arduino/Teensy. I've started doing some projects using the STM32 family and I'd love to be able to keep using your library. I think this should be straight-forward if the I2C interface can be abstracted a bit. This pull request is a request for comment on the general idea.

The IC2Interface class provides the generic interface to the I2C bus. There would be implementations of this interface for different platforms. The default would be Arduino to make sure existing code doesn't break.

I have tested this on an STM32F446 board and it works fine.

Let me know if you'd be open to accepting this general type of change.

73s, Bruce KC1FSZ

@coburnw
Copy link

coburnw commented Oct 4, 2021

Ive been exploring git submodules as a way to make use of Bruce's abstraction without having to burden NT7S's repository with code specific to platforms he might not have access to or care to support. Im offering this up solely for thought or discussion: https://github.com/coburnw/Si5351Linux
Best Regards, Coburn

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