Skip to content

Dont depend on hal #6

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

Merged
merged 9 commits into from
May 1, 2025
Merged

Dont depend on hal #6

merged 9 commits into from
May 1, 2025

Conversation

usbalbin
Copy link
Owner

@usbalbin usbalbin commented Apr 24, 2025

Avoid depending on hals. Most of the removed code will have to be moved out to the corresponding hals.

See stm32-rs/stm32g4xx-hal#192 for corresponding hal changes

@usbalbin usbalbin marked this pull request as ready for review April 26, 2025 21:29
@@ -26,6 +22,7 @@ cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
defmt-rtt = "0.4.0"
cortex-m-rt = "0.7.2"
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
stm32g4xx-hal = { git = "https://github.com/usbalbin/stm32g4xx-hal", branch = "hrtim", features = ["defmt", "hrtim"] }
Copy link
Owner Author

@usbalbin usbalbin Apr 26, 2025

Choose a reason for hiding this comment

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

@burrbull As far as I know we can not have optional dev dependendecies and thus need to select one hal to use for the examples. Would it then be better to let the examples live in the corresponding hals? See stm32-rs/stm32g4xx-hal#192

@usbalbin
Copy link
Owner Author

@burrbull is it ok if I merge this now? Do you have any suggestions for changes? or should I wait for #3?

@burrbull
Copy link

burrbull commented May 1, 2025

it should not be hard to rebase. So I'm fine.

@usbalbin usbalbin merged commit c0aa71d into the_code May 1, 2025
8 checks passed
usbalbin added a commit that referenced this pull request May 2, 2025
* Dont depend on hal

* Remove connect pins

* Move out device specific things to hals

* update pac

* Update CI

* fixes

* Fix errors for f334 and h7

* Update examples

* clippy
@usbalbin usbalbin deleted the dont_depend_on_hal branch May 2, 2025 11:50
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.

2 participants