stm32-rs / stm32h7xx-hal

Peripheral access API for STM32H7 series microcontrollers
BSD Zero Clause License
220 stars 102 forks source link

Structure of examples folder #4

Open richardeoin opened 5 years ago

richardeoin commented 5 years ago

Is the structure of the examples folder suitable? Should we add board-specific examples here?

richardeoin commented 5 years ago

Previous comment from @astraw

I was thinking about a possible solution to the demo code: rather than putting it in examples/, we make sub-crates in this repo which would be e.g. nucleo-h743-examples with its own Cargo.toml. The base directory in this repo would become the root of a cargo workspace. @richardeoin what board are you testing your h743 on? We could also make a xyz-h743-examples crate for your examples."

richardeoin commented 5 years ago

Is a simple solution just to make all the examples for the nucleo board? Then there's only one set to maintain. Other boards are less available (I have a custom board of my own, unreleased).

We'll need to check and refactor some of the existing examples.