-
Notifications
You must be signed in to change notification settings - Fork 203
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
Spi implementation enhancements #751
Comments
Thinking more about 1 above; since that behaviour might be a bit unexpected and wouldn't be caught at compile time, it might be better to wrap the unidirectional |
Hi @ianrrees I know it's not yet complete or released, but, for reasons, I am attempting to migrate from I noticed that the SPI types and objects have changed (they ostensibly seem like improvements, particularly the Pygamer-specific type aliases) so I am wondering if the display not working may be related to this issue. I am interested in helping to solve the issue, but I'm not even really sure where to start in terms of what could be causing the display problem. I'm also still a bit new to embedded stuff and pretty much just know the basics of SPI so I'm not sure how useful I can be if this is a super low level issue. Mainly just wanted to get your thoughts on this. I can create a MRE if needed. |
…test `pygamer` and `atsamd-hal` to test using async timers for async delays. However, now the display no longer works, which may be related to a SPI issue in the updated HAL: atsamd-rs/atsamd#751
Hi @kyp44 , sorry about my slow reply - I'm very busy with a new job away from home, and won't have SAMD hardware to work with until I'm back in mid-December. It's hard to say what could be going wrong with your display - I ~recently made some updates to the PyGamer BSP and tested the examples that use the display, so I don't think the HAL is likely to be the cause of your problem so long as you're using one new enough to have #743 . |
@ianrrees Thanks for the response! I've been working with @jbeaurivage on some things, and the display issue turned out to be something silly and not a real bug, so please disregard. |
Really just notes from a few hours spent with the SPI-driven WS2812 (neopixel) crate.
SpiBus::read()
for Tx SPI should probably panic with an appropriate message.SpiBus::write()
impl we have an implementation that doesn't send word N+1 OUT until N has shifted IN:but something a little more complicated can have considerably higher throughput, especially when the SPI clock is a higher fraction of the CPU clock (tinkering with a SAMD51, I'm seeing twice as fast in release mode with a 50MHz SPI):
The text was updated successfully, but these errors were encountered: