We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feefae3 commit d005a07Copy full SHA for d005a07
bsp/allwinner_tina/drivers/spi/drv_spi.c
@@ -483,7 +483,7 @@ static rt_err_t configure(struct rt_spi_device *device,
483
SPI_SetFirstTransmitBit(spi, SPI_TCTRL_FBS_LSB);
484
}
485
486
- switch (configuration->mode)
+ switch (configuration->mode & RT_SPI_MODE_3)
487
{
488
case RT_SPI_MODE_0:
489
SPI_SetSclkMode(spi, SPI_SCLK_Mode0);
0 commit comments