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

Update PACs to use newly defined radio bits #3101

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Feb 5, 2025

This PR rewrites the regi2c_write functions of C6 and H2, by using the I2C_ANA_MST peripheral defined in the PAC.

The old C6 implementation was using the "wrong" peripheral (was using LP_I2C_ANA_MST, I guess esp-idf has changed since that point), new implementation follows https://github.com/espressif/esp-idf/blob/d30e4d9960afd0d1ed067fef741126af810f675e/components/esp_rom/patches/esp_rom_hp_regi2c_esp32c6.c

H2 implementation follows https://github.com/espressif/esp-idf/blob/d30e4d9960afd0d1ed067fef741126af810f675e/components/esp_rom/patches/esp_rom_regi2c_esp32h2.c

The rest of the chips received a bit of a touchup as well, though nothing major.

PAC PR: esp-rs/esp-pacs#316

@bugadani bugadani force-pushed the radio_bits branch 2 times, most recently from 6cf8ba0 to 8b52422 Compare February 5, 2025 18:09
@bugadani bugadani added the skip-changelog No changelog modification needed label Feb 5, 2025
@bugadani bugadani force-pushed the radio_bits branch 4 times, most recently from 7ca987b to 06fd3a8 Compare February 6, 2025 13:17
@bugadani bugadani marked this pull request as ready for review February 6, 2025 13:18
@bugadani bugadani force-pushed the radio_bits branch 2 times, most recently from 5774b50 to 8017865 Compare February 6, 2025 13:57
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I merged esp-rs/esp-pacs#316 not sure if you need to change the pacs commit or not.

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

Did some testing and seems to work fine

@bjoernQ bjoernQ added this pull request to the merge queue Feb 6, 2025
Merged via the queue into esp-rs:main with commit dc4daa9 Feb 6, 2025
27 checks passed
@bugadani bugadani deleted the radio_bits branch February 6, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants