[bsp][allwinner_tina]fixed spi driver bug

This commit is contained in:
linyiyang 2020-11-10 13:47:01 +08:00
parent feefae348c
commit d005a0717b
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ static rt_err_t configure(struct rt_spi_device *device,
SPI_SetFirstTransmitBit(spi, SPI_TCTRL_FBS_LSB);
}
switch (configuration->mode)
switch (configuration->mode & RT_SPI_MODE_3)
{
case RT_SPI_MODE_0:
SPI_SetSclkMode(spi, SPI_SCLK_Mode0);