Merge pull request #4017 from eYoung8475/master

[bsp][allwinner_tina]fixed spi driver bug
This commit is contained in:
Bernard Xiong 2020-11-27 22:57:45 +08:00 committed by GitHub
commit fba1d75485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);