[bsp][gd32450z-eval]fixed spi driver bug

This commit is contained in:
linyiyang 2020-12-03 08:48:07 +08:00
parent df3d4b7bc9
commit 183f9be898
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;