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

fix(deps): update esp-hal requirement from 0.20.1 to 0.22.0 #22

Merged
merged 11 commits into from
Dec 16, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 6, 2024

Updates the requirements on esp-hal to permit the latest version.

Release notes

Sourced from esp-hal's releases.

0.22.0

Please note that only changes to the esp-hal package are tracked in these release notes.

Migration Guide

IO changes

GPIO pins are now accessible via Peripherals

 let peripherals = esp_hal::init(Default::default());
-let io = Io::new(peripherals.GPIO, peripherals.IOMUX);
-let pin = io.pins.gpio5;
+let pin = peripherals.GPIO5;

Io constructor changes

  • new_with_priority and new_no_bind_interrupts have been removed. Use set_priority to configure the GPIO interrupt priority. We no longer overwrite interrupt handlers set by user code during initialization.
  • new no longer takes peripherals.GPIO

Removed async-specific constructors

The following async-specific constuctors have been removed:

  • configure_for_async DMA channel constructors
  • TwaiConfiguration::new_async and TwaiConfiguration::new_async_no_transceiver
  • I2c::new_async
  • LcdCam::new_async
  • UsbSerialJtag::new_async
  • Rsa::new_async
  • Rmt::new_async
  • Uart::new_async, Uart::new_async_with_config
  • UartRx::new_async, UartRx::new_async_with_config
  • UartTx::new_async, UartTx::new_async_with_config

You can use the blocking counterparts, then call into_async on the returned peripheral instead.

-let mut config = twai::TwaiConfiguration::new_async(
+let mut config = twai::TwaiConfiguration::new(
     peripherals.TWAI0,
     loopback_pin.peripheral_input(),
     loopback_pin,
     twai::BaudRate::B1000K,
     TwaiMode::SelfTest,
-);
+).into_async();
</tr></table> 

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [esp-hal](https://github.com/esp-rs/esp-hal) to permit the latest version.
- [Release notes](https://github.com/esp-rs/esp-hal/releases)
- [Commits](esp-rs/esp-hal@v0.20.1...v0.22.0)

---
updated-dependencies:
- dependency-name: esp-hal
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 6, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 4 0 0.1s
✅ JSON jsonlint 3 0 0.17s
✅ JSON prettier 3 0 0 0.51s
✅ MARKDOWN markdownlint 10 0 0 0.79s
✅ MARKDOWN markdown-link-check 10 0 9.03s
✅ MARKDOWN markdown-table-formatter 10 0 0 0.22s
✅ RUST clippy yes no 24.83s
✅ YAML prettier 7 0 0 0.54s
✅ YAML yamllint 7 0 0.4s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@ScottGibb
Copy link
Collaborator

When I did this update it didnt like the 7BitAddress Trait. So I used an I2c trait from the embedded_hal and it seemed to work. Im a bit unsure wether this is the right approach or not?

@ScottGibb ScottGibb self-requested a review December 16, 2024 17:44
@ScottGibb ScottGibb merged commit 1bf1b4a into main Dec 16, 2024
21 checks passed
@ScottGibb ScottGibb deleted the dependabot/cargo/esp-hal-0.22.0 branch December 16, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants