Skip to content

Conversation

@whitequark
Copy link
Member

@whitequark whitequark commented Dec 1, 2025

This turns out to be very necessary for a lot of real-world devices.

To do:

  • Ensure sufficient setup time for CS# to SCK
  • Add spi-controller applet support
  • Review use of await self._spi_iface.dummy(128) in iCE40 SRAM interface

"Mode" has a specific meaning in context of SPI which this enum did not
reflect. QSPI does not have the same "mode", but is also changed for
consistency.
The reasoning is explained in the next commit.
The SPI controller gains an additional usage constraint: when changing
modes (the default is Mode 0), you must perform an idle operation with
the new mode before transferring any data. (Obviously, changing mode
while a device is selected is not supported.)
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