stm32-rs / stm32g4xx-hal

Peripheral access API for STM32G4 series microcontrollers
Apache License 2.0
66 stars 48 forks source link

Add embedded-hal 1.0 trait support #129

Open techmccat opened 3 months ago

techmccat commented 3 months ago

Fixes #118

The new traits are not feature gated, instead embedded_hal 0.2 is now exported as hal_02 Traits from embedded-hal 1.0 have replaced the old ones in the prelude

usbalbin commented 3 months ago

There appears a bunch of unrelated changes. Since this PR is quite large, would it be possible to keep this PR to only the e-hal 1.0 migration? :)

Also the CI was has just been fixed in #128, which was just merged. Would it be possible to rebase over the latest changes to get better ci results?

techmccat commented 3 months ago

I've tried cherry-picking only the hal-1 related changes, suppose I'll put SPI driver improvements and i2c example in separate PRs once this one goes through.