REWG questions / discussion with Rust Project #915
Replies: 3 comments 9 replies
-
|
We've had discussions around the usability of address 0, inspired by #issues/908 . Would be nice to clarify in what contexts address 0 and its pointers/refs can / should be legitimately used. |
Beta Was this translation helpful? Give feedback.
-
|
We should discuss register reads and writes in the context of https://ferrous-systems.com/blog/hardware-access-rust/ , maybe? The article provides a good starting point for that discussion. |
Beta Was this translation helpful? Give feedback.
-
|
A perennial problem for me is how to make trait objects available globally without a heap, so that they can be mutably shared with interrupt handlers. The issue arises because of the RE practice of giving peripheral instances unique types: one wants to write a library that stores a So for example my fantasy would be to be able to write something vaguely like static mut ADC: Option<Adc<T: AdcTrait>> = None;This is obviously wrong and maybe even horrible, but communicates the idea I think? Maybe there's some way to get something like this that I don't know about? All the options I've explored are grim at best. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have some upcoming opportunities to ask questions and make requests with the Rust Project. Pain points in particular. Let's organize here for that.
Beta Was this translation helpful? Give feedback.
All reactions