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.14k stars 6.23k forks source link

STM32 SPI Set transfer direction is fixed #49446

Open Cherish-Gww opened 1 year ago

Cherish-Gww commented 1 year ago

https://github.com/zephyrproject-rtos/zephyr/blob/32e2e1cb799ecbb5676a6f933cc38e8778b1ed45/drivers/spi/spi_ll_stm32.c#L533

SPI full duplex and half duplex need configured by struct spi_config.

Cherish-Gww commented 1 year ago

@FRASTM

erwango commented 1 year ago

Can you test https://github.com/zephyrproject-rtos/zephyr/pull/46803?

Cherish-Gww commented 1 year ago

@erwango I have read and tesed #46803. there is an issue, I don`t understand why after transmited ( cs pin is high), there have a word clock. I`m looking into the matter.

Cherish-Gww commented 1 year ago

@erwango https://github.com/zephyrproject-rtos/zephyr/pull/46803. The author has disappeared for too long. When can this patch be merged。

erwango commented 1 year ago

@erwango #46803. The author has disappeared for too long. When can this patch be merged。

This patch will be merged when the review is completed, this depends on the author. But if you're able to test and improve it (enhance factorization for instance), you can also push a new PR for this feature.

erwango commented 9 months ago

@Cherish-Gww is this is still required, please have a check to https://github.com/zephyrproject-rtos/zephyr/pull/57993. Author is not around atm, but will show up eventually