aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-04 14:30:07 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-04 14:30:07 +0000
commit6a1ce8b72583fb10045abd125b91e77594bf5fa3 (patch)
tree44b3253ec306e762920f8e63d88fed219592678f /os/hal/ports/STM32/LLD
parentbf6ef89792b3e7eeaad379ed54082126e2ed66ad (diff)
downloadChibiOS-6a1ce8b72583fb10045abd125b91e77594bf5fa3.tar.gz
ChibiOS-6a1ce8b72583fb10045abd125b91e77594bf5fa3.tar.bz2
ChibiOS-6a1ce8b72583fb10045abd125b91e77594bf5fa3.zip
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
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r--os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c3
1 files changed, 2 insertions, 1 deletions
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;