-
Notifications
You must be signed in to change notification settings - Fork 185
Cleanup examples #2
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
Comments
I think we should move out the examples entirely into a stm32f103-examples (sub-)crate or some potentially into their own crates. Anything that lives in the crate itself should would need to work on any MCU in that family (and since that requires a memory.x that would be kind of meh). |
Having example can be really interesting. For example, to check that binaries still works on PR, of on PR to give something to test on real hardware. I don't know if we can have more than one configuration on examples, to be able to compile for more than one MCU. |
Oh, I agree that having code exercising functionality to test for proper compilation would be a nice thing. But the examples here are highly target dependent and need additional hardware to be runnable at all so I'd prefer to have it in board specific repos rather than in the multi-MCU HAL if that makes sense. |
adding an stm32f103-examples, and build them on std32f1xx's travis? We'll have to find a way to use the current code with the examples to do that, but it looks like a good solution. It mightl also be tricky with breaking changes. Another way is to have them in a crate in this repository, with path dependencies |
Yes, that. |
Or move it out if it's really more a project in its own. |
A crate in the repo sounds like a better idea to me, if nothing else it makes the examples easier to find |
An idea. We can store all templates and examples for different microcontrollers in the one repository in different branches (already working) or in different folders. One crate to rule them all. |
@burrbull Sorry, but now I'm confused. :-D Which crate is the one to rule them all and who's going to maintain that? |
|
I think the current example setup works quite well, so 'll close this for now |
Maybe we can cleanup examples that doesn't show how to use this crate or test one of this crate functionnality? I think in particular to remove the examples relying on git dependencies.
I don't know if an example using RTFM (once 0.4 is out) is relevant. What do you think?
The text was updated successfully, but these errors were encountered: