Open tcaxle opened 8 months ago
tm4c129x_hal
needs updating, it's implementing the embedded-hal 0.2 traits, while embedded-hal-bus uses embedded-hal 1.0
Thanks for the quick response. I will look into the source and see about raising a PR to fix this.
Please can you point me in the direction of the specific changes that will need to be accounted for in the update? Is there a change-log for the embedded-hal-bus versions or should I just dig through commit messages?
EDIT: I have now found the migration guide, so should be able to make a start.
Still really struggling to get this HAL implementation correct. Can anyone point me at a HAL crate that implements SpiBus
correctly so I have something to crib from?
Embassy HALs implement both the 0.2 and 1.0 traits, should be a good reference since you can compare:
That's fantastic, thank you!
Good morning,
I am trying to understand if the unsatisfied traits error I am receiving in my implementation is due to an error in my implementation, the platform HAL package, or the underlying embedded HAL code.
I am trying to use the embedded_hal_bus ExclusiveDevice struct to wrap an SPI bus into an SPI device.
The SPI bus I have initialised using the platform HAL package (
tm4c129x_hal
):I'm then wrapping that up in the
ExclusiveDevice
object (cs0
is just a normal GPIO pin in output mode).However, this won't compile when I try to use the
write()
method of theExlusiveDevice
object. (message
is aVec
ofbyte
s).What I can't work out is what needs to be changed so that the trait bounds are satisfied. Can anyone shed some light?