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

RFC: Switch pac to upstream stm32-rs #18

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

karlp
Copy link

@karlp karlp commented Sep 8, 2021

This is built on my other patch series, and switches to "upstream" stm32-rs pac.

The real change here is all in c1e3a1c

It depends on either stm32-rs/stm32-rs#624 or stm32-rs/stm32-rs#473 so it's only an RFC at the moment. When/If those merge/release, the deps can be properly updated to a real version, instead of me having a local crate source override.

I've tested this with downstream examples from the eupn/stm32wb55 repo (BTLE ibeacon was a quick one) and also some other downstream apps using this hal.

I know this effectively obsoletes a chunk of your own work, and I'm not trying to step on your toes or anything, but it seems like the PAC layer at least could come from the stm32-rs project and get us a lot of work done for free.

karlp and others added 9 commits September 6, 2021 11:17
It may or may not be the PLL clock.

Signed-off-by: Karl Palsson <karlp@etactica.com>
Signed-off-by: Karl Palsson <karlp@etactica.com>
Fixes: eupn#13

Signed-off-by: Karl Palsson <karlp@etactica.com>
No reason to stay on the older package, and easier for other
applications to move forwards.

Signed-off-by: Karl Palsson <karlp@etactica.com>
Fixes: eupn#15
Fixes: 28886ae

Signed-off-by: Karl Palsson <karlp@etactica.com>
HSE wasn't actually being turned on, so even though the SW bits were set
to HSE, the SWS bits never switched over, and we continued running from
MSI.

Fixes: eupn#16

Signed-off-by: Karl Palsson <karlp@etactica.com>
Use the same naming style as the L4 HAL, given that the WB is an L4 with
a radio attached.  This makes it easier to use l4 example code.

Signed-off-by: Karl Palsson <karlp@etactica.com>
This is likely to be more maintained going forward.
Only changes are due to upstream renaming fields in the SVD to be more
standard across families, and to more closely match the RefManuals.

Depends on either stm32-rs/stm32-rs#624
or stm32-rs/stm32-rs#473
and then a new upstream pac release, so _this_ commit should change to
depend on those, but this shows what's needed and how, for preview.

Signed-off-by: Karl Palsson <karlp@etactica.com>
Cortex-m-rtic 0.6 supports cortex-m v0.7 by default, but it's not
released yet.

Signed-off-by: Karl Palsson <karlp@etactica.com>
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.

1 participant