Skip to content
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

rp2040: Add spi slave example #391

Merged
merged 10 commits into from
Feb 17, 2025

Conversation

Grazfather
Copy link
Contributor

@Grazfather Grazfather commented Feb 17, 2025

Add a SPI slave example.

This one behaves like the example linked from the spi master example, but doesn't work with the spi master example.

That example switches between 12 and 8 bit mode, which is cool, but in practice is hard to synchronize.

I'd propose dropping that part from the example so that spi master and spi slave can actually behave with each other.

Tested by removing the 12-bit part of the spi master code, as well as against the spi master pico-examples code.

TODO:

  • Test spi slave on rp2350 (spi master already tested on this chip)
  • Move files from rp2040-only directory

@Grazfather Grazfather force-pushed the rp2040_spi_slave branch 2 times, most recently from 68b7839 to 13457f1 Compare February 17, 2025 03:14
@mattnite mattnite enabled auto-merge (squash) February 17, 2025 17:18
@mattnite mattnite merged commit 18cbbec into ZigEmbeddedGroup:main Feb 17, 2025
30 checks passed
@Grazfather Grazfather deleted the rp2040_spi_slave branch February 17, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants