zephyr/drivers/spi
Florian Vaussard 59f0c99f0e spi: stm32: Correctly apply CPOL and CPHA settings
SPI_MODE_GET() returns a bitfield. It is thus wrong to test if a bit is
set using the equality operator. The bit-wise AND operator must be used
instead.

This can be tested by setting the SPI in mode 3 (CPOL + CPHA). Currently
both tests will fail and the result is a SPI configured in mode 0. This
was confirmed using an oscilloscope. Applying the patch fixes the
polarity.

Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
2018-01-11 19:00:19 -05:00
..
CMakeLists.txt
Kconfig
Kconfig.dw
Kconfig.mcux_dspi
Kconfig.nrf5_legacy
spi_context.h
spi_dw_legacy.c
spi_dw_quark_se_ss_regs.h
spi_dw_regs.h
spi_dw.c
spi_dw.h
spi_handlers.c
spi_intel.c
spi_intel.h
spi_ll_stm32.c
spi_ll_stm32.h
spi_mcux_dspi.c
spi_qmsi_ss.c
spi_qmsi.c
spim_nrf52_legacy.c
spis_nrf5_legacy.c