-
Notifications
You must be signed in to change notification settings - Fork 233
bus/i2c: add RefCell, CriticalSection and Mutex shared bus implementations. #445
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
Conversation
99b652f
to
6b0b7dc
Compare
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.
It looks generally good to me, thank you!
Could you add some more information about the std
feature to the lib.rs?
@eldruin done |
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.
Looks good to me, thank you!
bors r+
Requires #440
Same as #443 but for I2C.
This adds a few bus sharing implementations, with varying tradeoffs:
RefCellDevice
: single thread onlyCriticalSectionDevice
: thread-safe, coarse locking, nostd.MutexDevice
: thread-safe, fine-grained locking, std only.