From 6a1ce8b72583fb10045abd125b91e77594bf5fa3 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 4 Jan 2018 14:30:07 +0000 Subject: Yet another problem fixed, now it starts to output data, still problems. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11223 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c b/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c index 0af6c7290..1bcdbbe24 100644 --- a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c @@ -556,7 +556,8 @@ void spi_lld_start(SPIDriver *spip) { spip->spi->CR1 = SPI_CR1_MASRX; spip->spi->CR2 = 0U; spip->spi->CFG1 = cfg1; - spip->spi->CFG2 = (spip->config->cfg2 | SPI_CFG2_MASTER) & ~SPI_CFG2_COMM_Msk; + spip->spi->CFG2 = (spip->config->cfg2 | SPI_CFG2_MASTER | SPI_CFG2_SSOE) & + ~SPI_CFG2_COMM_Msk; spip->spi->IER = SPI_IER_OVRIE; spip->spi->IFCR = 0xFFFFFFFFU; spip->spi->CR1 |= SPI_CR1_SPE; -- cgit v1.2.3