-
Notifications
You must be signed in to change notification settings - Fork 156
Remove PhantomData<*const ()>
from peripherals
#458
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
(rust_highfive has picked a reviewer for you, use r? to override) |
Not sure which purpose they're supposed to serve but the do seem kind of pointless. Signed-off-by: Daniel Egger <[email protected]>
994a89f
to
ca88f39
Compare
I think the purpose is to opt out of |
We manually implement |
If these were Sync, it would be possible to store a peripheral without a Mutex in a In any event I'd be very wary of removing the
|
|
Actually, since the modify methods don't need
We do have threads of execution, namely ISRs and "thread mode" (on ARM), which can race each other and respect Send/Sync. |
Sure do.
Can they though? Since they're purely implemented in hardware and you can conjure peripheral access abstractions out of thin air or completely bypass them I'm not sure how I do agree with you though that it doesn't make sense to change this just for the sake of changing it. |
Let's drop this then. |
Not sure which purpose they're supposed to serve but the do seem kind of
pointless.
Signed-off-by: Daniel Egger [email protected]