-
Notifications
You must be signed in to change notification settings - Fork 227
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
Added RefCell blanket implementation for I2C to allow sharing, see #35 #55
Conversation
…st-embedded#35 Signed-off-by: Daniel Egger <[email protected]>
@japaric Any chance you could check this out and let me know whether this is what you had in mind? |
This also useful for blocking RefCell, etc. |
@burrbull "blocking RefCell"? You probably mean other blocking busses? Yes, it is. I just wanted to start with one I can actually test to make sure it hits the spot. |
I mean RefCell for blocking Delay (DelayUs, DelayMs). |
Yes, totally agree that this would be useful. |
I know I originally suggested this, and I know there are at least two other threads discussing this I'm concerned about the scalability and the "coupling" of this approach. To elaborate: That's the scalability issue; the "coupling" problem is that I'd like us to explore, and exhaust, all the other options before committing to one approach -- I (*) I'll post some other idea that I have in one of those threads if it has not been brought up |
As there are valid arguments against this solution, and as the discussion in #35 has since moved on to other approaches, it seems to me that this pull request can be closed. @therealprof Do you agree? |
The validity of the arguments against this solution depends on the POV but as long as there is a workable solution I'm happy. |
@therealprof did you take a look at my proposed solution yet? I tried implementing your proxy idea and it looks promising in my opinion. |
@Rahix Not yet but I will. ;) The problem I see is that the number of hoops one has to jump through to use Rust on MCUs is accumulating, so every time we say "Well, we can't do that because it's considered unsafe and in Rust we don't do unsafe." to something that is quite common everywhere else that is driving people away from Rust instead of attracting them. |
Without commenting on the specifics of this case, I believe that to some degree this is unavoidable. There's something we want to get out of using Rust, and often we need to pay for that in complexity. That doesn't mean we shouldn't do our best to minimize that additional complexity though. |
55: Update gpio-cdev to 0.4.0 and add async-tokio feature r=ryankurte a=dfrankland It'd be lovely to allow streaming of chip line events asynchronously now that `gpio-cdev` supports it. Co-authored-by: Dylan Frankland <[email protected]>
59: Note the change to the MSRV in the changelog r=ryankurte a=eldruin After merging rust-embedded#55 Co-authored-by: Diego Barrios Romero <[email protected]>
Signed-off-by: Daniel Egger [email protected]