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 and improve esp-lp-hal #1754

Merged
merged 8 commits into from
Jul 9, 2024

Conversation

jessebraham
Copy link
Member

@jessebraham jessebraham commented Jul 4, 2024

There is still some additional work to do (namely implementing embedded_hal::i2c::I2c and finishing up documentation), but figured I'd get these changes submitted just to try and keep reviewing reasonable.

Essentially this PR:

  • Uses embedded-hal@1.x.x by default instead of embedded-hal@0.2.x
  • Implements embedded-hal-nb and embedded-io traits for UART
  • Derives more traits on public types
  • Improves documentation in many places
  • Assorted cleanup/simplification

Progress for #1655.

@jessebraham jessebraham changed the title Feature/esp lp hal Update and improve esp-lp-hal Jul 4, 2024
@jessebraham

This comment was marked as outdated.

@jessebraham jessebraham marked this pull request as draft July 4, 2024 14:36
@jessebraham
Copy link
Member Author

On second thought, no reason this can't be reviewed as-is. I will open a subsequent PR implementing embedded_hal::i2c::I2c and wrapping up any remaining documentation.

@jessebraham jessebraham marked this pull request as ready for review July 8, 2024 16:03
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Just left a few suggestions to follow the same module docs format as we use in esp-hal.

Should we add LP uart, i2c and gpio tests to #1334?

esp-lp-hal/src/uart.rs Show resolved Hide resolved
esp-lp-hal/src/delay.rs Show resolved Hide resolved
esp-lp-hal/src/gpio.rs Show resolved Hide resolved
Copy link
Contributor

@JurajSadel JurajSadel 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!

@jessebraham jessebraham added this pull request to the merge queue Jul 9, 2024
Merged via the queue into esp-rs:main with commit 2bef914 Jul 9, 2024
30 checks passed
@jessebraham jessebraham deleted the feature/esp-lp-hal branch July 9, 2024 17:48
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.

3 participants