Skip to content

Conversation

astapleton
Copy link
Member

This adds slave operation to the SPI driver. The driver exposes the same set of APIs as those provided for master operation, with the exception that the blocking APIs are defined by the driver instead of the embedded-hal traits, which do not currently support slave operation.

This closes #36.


fn hardware_cs_enabled(&self) -> bool {
// SSM bit indicates software control of SS input is enabled if it is set
self.inner.spi.cfg2().read().ssm().is_disabled()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking Not SW means HW?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, yeah:
Screenshot 2025-08-02 at 11 10 09

I can clarify that comment

Copy link
Member

@usbalbin usbalbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

LGTM now :)

@astapleton astapleton merged commit 4a21d41 into master Aug 5, 2025
33 checks passed
@astapleton astapleton deleted the as/spi-slave branch August 5, 2025 00:19
@astapleton astapleton mentioned this pull request Aug 5, 2025
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.

Feature request - SPI

2 participants