zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.64k stars 6.51k forks source link

SPI API updates (3-wire, frame-format and extended modes) #39992

Open tbursztyka opened 2 years ago

tbursztyka commented 2 years ago

This is the main issue for adding new features to the existing SPI API.

jefflongo commented 2 years ago

38386 added support for a SPI_HALF_DUPLEX option for 3-wire SPI mode. As far as I can tell, none of the platform SPI drivers use this yet. How is this flag meant to be used given that the API only exposes only a transceive function (i.e. deciding direction, switching direction)?