Skip to content

Conversation

@engdoreis
Copy link
Contributor

No description provided.

// Could potentially be implemented by sending an empty packet that
// holds the CS and another which deasserts when dropped.
Err(TransportError::UnsupportedOperation.into())
Ok(AssertChipSelect::new(self))
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this change make sense? It will allow host code that calls spi.assert_cs() to compile, but this isn't actually sending packets with the CS signals to QEMU.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my interpretation, CS doesn't make sense for QEMU because it's now a bus implemented with pins, so I think that the qemu transport should just fake it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a warning for now. As we disscussed, this would need a larger refactor of the way the ChipSelect is handled.

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