Merge pull request #4111 from eYoung8475/master

[bsp][gd32450z-eval]fixed spi driver bug
This commit is contained in:
Bernard Xiong 2020-12-30 09:57:11 +08:00 committed by GitHub
commit a9a004f5b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static rt_err_t configure(struct rt_spi_device* device,
}
} /* baudrate */
switch(configuration->mode)
switch(configuration->mode & RT_SPI_MODE_3)
{
case RT_SPI_MODE_0:
spi_init_struct.clock_polarity_phase = SPI_CK_PL_LOW_PH_1EDGE;