-
Notifications
You must be signed in to change notification settings - Fork 200
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
HAL-Bus SPI Exclusive Device Unsatisfied Traits #581
Comments
|
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 |
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?
The text was updated successfully, but these errors were encountered: