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

rtic-monotonics: Fix stm32-metapac use #813

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

nilfit
Copy link
Contributor

@nilfit nilfit commented Oct 3, 2023

Previously, the stm32 monotonics only compiled for some chip families (#803). For example, stm32g081kb worked, but not stm32f407*.

The stm32-metapac does not directly unify peripheral names between the many stm32 families, but provides tools for build scripts to generate code that uses the right names for the selected chip. Use that mechanism instead of targeting a specific family.

The build script is based on https://github.com/embassy-rs/embassy/blob/ad524373edf8dde6ff816a41c6dd3fedf1072ba6/embassy-stm32/build.rs and probably still contains some things that are not needed for rtic-monotonics.

@nilfit nilfit force-pushed the fix/stm32-monotonics branch from 9a1d863 to 0effee4 Compare October 3, 2023 12:33
Previously, the stm32 monotonics only compiled for some chip families. For
example, stm32g081kb worked, but not stm32f407*.

The stm32-metapac does not directly unify peripheral names between the
many stm32 families, but provides tools for build scripts to generate
code that uses the right names for the selected chip. Use that mechanism
instead of targeting a specific family.
@nilfit nilfit force-pushed the fix/stm32-monotonics branch from 0effee4 to 3022bae Compare October 3, 2023 12:59
Copy link
Contributor

@AfoHT AfoHT left a comment

Choose a reason for hiding this comment

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

👍

@AfoHT AfoHT added this pull request to the merge queue Oct 3, 2023
Merged via the queue into rtic-rs:master with commit 8824202 Oct 3, 2023
49 checks passed
@nilfit nilfit deleted the fix/stm32-monotonics branch October 4, 2023 06:48
@AfoHT AfoHT linked an issue Oct 4, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STM32 rtic-monotonics APB register names incompatible
2 participants