- Notifications
You must be signed in to change notification settings - Fork 355
Split out PHY init into esp-phy crate. #3892
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
Conversation
| I think this is going into a good direction. As a matter of taste I would probably move the We can also take the opportunity to turn a few |
| @bjoernQ I may need some help with the linker files for |
| A quick look at libphy.a shows these undefined functions (used the ESP32 library - will slightly vary across chips): To be defined:
Undefined - no idea if needed
esp-wifi-sys
esp-rom-sys
Things defined in esp-*-sys you don't need to worry about. No idea about the second category - we don't define them anywhere. Maybe they come from one of the other static libraries but haven't seen anything there Things from the first category should be implemented following the pattern in #3890 |
| Alright, I will implement it like that. Thanks for the detailed response |
| Hi, sorry for the delay. I'll work on this tomorrow. |
| There were some changes around the moved code - just FYI |
| @bjoernQ I'm not quite sure, what's causing the CI failure on the S3. Do you have any ideas? |
| Oh crap, I forgot about the other uses of critical-section. Sorry |
bugadani left a comment
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 think this is now ready to go, thanks very much :)
SergioGasquez left a comment
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.
Can you modify https://github.com/esp-rs/esp-hal/blob/main/.github/workflows/changelog.yml to check the new esp-phy changelog too?
be3264a to 8ff1dca Compare
bjoernQ left a comment
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.
LGTM
| @SergioGasquez I guess we need a thumbs up from your side, too |
| default: | ||
| - value: false | ||
| | ||
| - name: phy_full_calibration |
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.
This config is unused. Was this an intentional change?
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.
Crap, I forgot to implement that. I can create a new PR for that, if you want.
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.
That would be awesome, if you don't mind
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packagescommand to ensure that all changed code is formatted correctly.CHANGELOG.mdin the proper section.Extra:
Pull Request Details 📖
Description
This is a follow-up to #3687, that extracts the PHY init into a separate
esp-phycrate, to make it generically usable for bothesp-radioandesp-wifi-hal. The PHY init is now tied to the peripheral singleton, just like the PHY clock initialization. LMK if this architecture looks good to you.I think, that it would be good to add this PR to #3814.
Testing
Describe how you tested your changes.
closes #2469