sipeed / bl602-hal

Hardware Abstract Layer for BL602 RISC-V WiFi + BLE SoC in embedded Rust
Other
74 stars 14 forks source link

Update embedded-hal traits #47

Closed 9names closed 11 months ago

9names commented 1 year ago

Update all drivers to use embedded-hal 1.0 alpha 11 where possible. Port all nb drivers to use embedded-hal-nb 1.0 alpha 3. Move any remaining drivers using removed embedded-hal 1.0 alpha traits to embedded-hal 0.2 traits. Update the examples to make them build again after all of the above.

Notes:

Wait until testing is complete before merging, but you can review at any time. Please squash this PR when merging.

9names commented 1 year ago

I've tested this with the examples - serial, gpio, delay work fine. i2c isn't working correctly for me, but it wasn't working on main branch either.