mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-15 16:46:07 +00:00
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> |
||
---|---|---|
.. | ||
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 |