[bsp][at32]disable spi to change transfer size (#7448)
This commit is contained in:
parent
3419e591da
commit
16472d03f7
|
@ -232,6 +232,8 @@ static rt_err_t configure(struct rt_spi_device* device,
|
|||
spi_init_struct.transmission_mode = SPI_TRANSMIT_FULL_DUPLEX;
|
||||
spi_init_struct.master_slave_mode = SPI_MODE_MASTER;
|
||||
spi_init_struct.cs_mode_selection = SPI_CS_SOFTWARE_MODE;
|
||||
/* disable spi to change transfer size */
|
||||
spi_enable(instance->config->spi_x, FALSE);
|
||||
/* init spi */
|
||||
spi_init(instance->config->spi_x, &spi_init_struct);
|
||||
|
||||
|
|
Loading…
Reference in New Issue