Skip to content
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

[board] Add configuration version for DISCO-F469NI #819

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Feb 5, 2022

This adds configuration versions for the DISCO-F469NI board <extends>modm:disco-f469ni:b-03</extends> to fix the different I2C address of the touch sensor.
See #818 (comment).

Fixes #818.

cc @rleh

@salkinium salkinium force-pushed the feature/config_revision branch 2 times, most recently from 0d06c65 to 5e41b53 Compare February 6, 2022 01:11
@salkinium salkinium changed the title [board] Add configuration revision [board] Add configuration version for DISCO-F469NI Feb 6, 2022
@salkinium salkinium requested a review from rleh February 6, 2022 09:12
Copy link
Member

@rleh rleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! 👍🏽

@salkinium salkinium force-pushed the feature/config_revision branch 2 times, most recently from 581d47b to 6ca4043 Compare February 10, 2022 15:45
@salkinium salkinium requested a review from rleh February 11, 2022 06:37
@@ -14,6 +14,7 @@
def init(module):
module.name = ":board:disco-f469ni"
module.description = FileReader("module.md")
# Revisions = [b-03, b-01]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the line is commented out?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config is just a named (versioned) alias to a project.xml file inside modm. It must be declared in repo.lb so it can act as a repository option, therefore you need a mechanism to pass the revision to the repo.lb without having a giant table there, which is currently done by regexing the board/*/module.lb files. It's not great, but I don't know a better way. Ideas?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe create a module.revisions file and add one configuration name per line?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix it when it becomes a problem. I first would like to see more board revision examples to decide a better way.

@salkinium salkinium merged commit b18385c into modm-io:develop Feb 14, 2022
@salkinium salkinium added this to the 2022q1 milestone Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

STM32F469I-DISCO touch does not work on newer board revisions (B-03)
2 participants