Skip to content

Commit fba1d75

Browse files
authored
Merge pull request #4017 from eYoung8475/master
[bsp][allwinner_tina]fixed spi driver bug
2 parents dfa99ad + d005a07 commit fba1d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/allwinner_tina/drivers/spi/drv_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static rt_err_t configure(struct rt_spi_device *device,
483483
SPI_SetFirstTransmitBit(spi, SPI_TCTRL_FBS_LSB);
484484
}
485485

486-
switch (configuration->mode)
486+
switch (configuration->mode & RT_SPI_MODE_3)
487487
{
488488
case RT_SPI_MODE_0:
489489
SPI_SetSclkMode(spi, SPI_SCLK_Mode0);

0 commit comments

Comments
 (0)