rp-rs / rp-hal-boards

Board Support Packages for RP2040 based PCBs
199 stars 82 forks source link

Upgrade to embedded-hal v1.0.0 #57

Closed Michael2MacDonald closed 4 months ago

Michael2MacDonald commented 6 months ago

Upgrade to embedded-hal v1.0.0

v1.0.0 is the most current release of embedded-hal and has several breaking changes compared to v0.2.x. One example is v1.0.0 replaces embedded_hal::digital::v2::OutputPin with embedded_hal::digital::OutputPin. v1.0.0 also drops the adc interface and the timer CountDown trait. Moving forward, most code will be written for v1.0.0 and newer versions. The whole point of embedded-hal is to provide interfaces for portable and hardware-agnostic code. Using an outdated version defeats its entire purpose.

rp-hal and rp2040-hal already use embedded-hal v1.0.0 to my knowledge.

jenshnielsen commented 5 months ago

For the record this was merged to main in https://github.com/rp-rs/rp-hal-boards/pull/60

9names commented 4 months ago

Resolved by #60, and as of #62 the published versions of the crates on crates.io now support 1.0