-
Notifications
You must be signed in to change notification settings - Fork 212
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
move private features to build.rs #710
base: master
Are you sure you want to change the base?
Conversation
2feec2f
to
a7ecd01
Compare
Cargo.toml
Outdated
|
||
[[example]] | ||
name = "f413disco-lcd-ferris" | ||
required-features = ["gpiod", "gpioe", "gpiof", "gpiog", "fsmc", "fsmc_lcd"] # stm32f413 | ||
required-features = ["stm32f413", "fsmc_lcd"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was kind of hoping we would go the other way around and make them less MCU model dependent? Not really a big fan of declaring that this only works on stm32f413... Same for the others of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. But I don't have good answer.
Do you have ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, except that this is going in the wrong direction. Not quite sure how we can accomplish more genericity with the build.rs idea.
8e20c08
to
5d294f1
Compare
1fd9678
to
aeb6764
Compare
uart9 = [] | ||
uart10 = [] | ||
# Private features for testing only | ||
_pac_fsmc = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@therealprof
I could not find any other solution for examples except fictive features.
No description provided.