-
Notifications
You must be signed in to change notification settings - Fork 202
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
General HAL examples #534
Comments
tl;dr: I fully agree This "de-BSP-ing" process you describe is something I've also run into when starting out, I can see people having some board Another case for these bare-HAL examples are for peripherals which are truly independent of pin mappings, for example the ICM and PUKCC among others. |
I'm not opposed. I think it would be a nice addition. My only concern is that any examples involving pins would have to use some arbitrary pin mapping. Thus, instead of being use anywhere, they would in fact be use nowhere. I concede, though, that remapping the pins is usually simple, so it would still be useful to have. In those situations, it may even present an opportunity to introduce the |
I don't think that such a big deal. If you have a blinky example for example the user would just have to adjust the pin to much their own to get it to work on any board.
The How would you structure the examples? |
@Sympatron you can have sub-directories within |
How about to extend the documentation for this case? Another useful case for this are people who have designed their own board. |
At the moment we only have examples for BSPs and while this might be the main use case for most users, I think it would be beneficial to also have examples of using the bare HAL.
The main problem with the current setup is that if you are looking for an example of how to properly use a specific peripheral you kind of have to search through all BSPs to find it.
The other problem is that I felt it's kind of difficult to get the BSP example code to work without a BSP (or with another BSP) if you are not super familiar with the HAL and BSP yet.
The advantage of bare HAL examples would be that they can be used anywhere and would be much easier to maintain than the BSP examples.
What do you think? If the community is interested I could start a PR with a few examples from BSPs.
The text was updated successfully, but these errors were encountered: