Skip to content

libraries: SPI: improve transaction handling#210

Draft
soburi wants to merge 2 commits into
zephyrproject-rtos:nextfrom
soburi:spi_update
Draft

libraries: SPI: improve transaction handling#210
soburi wants to merge 2 commits into
zephyrproject-rtos:nextfrom
soburi:spi_update

Conversation

@soburi

@soburi soburi commented Jul 5, 2026

Copy link
Copy Markdown
Member
  • Use spi_transceive() for SPI transfers so TX and RX are handled as a
    single full-duplex operation.
  • Build separate 8-bit and 16-bit spi_config instances from SPISettings.
  • Track the last active config so endTransaction() releases the
    same configuration used by the transfer.

soburi and others added 2 commits July 5, 2026 23:26
Since SPI<n> might be defined externally, we undefine it to
avoid conflicts.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
- Use spi_transceive() for SPI transfers so TX and RX are handled as a
  single full-duplex operation.
- Build separate 8-bit and 16-bit spi_config instances from SPISettings.
- Track the last active config so endTransaction() releases the
  same configuration used by the transfer.

Co-authored-by: kurte <kurte@rockisland.com>
Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
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.

1 participant