From 56a1ab369f44308f8945384504c15657c3039b8d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 16 Mar 2013 09:59:51 +0000 Subject: Fixed bug 3608241. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5438 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/SPIv2/spi_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal') diff --git a/os/hal/platforms/STM32/SPIv2/spi_lld.c b/os/hal/platforms/STM32/SPIv2/spi_lld.c index afc027dfc..c8b733649 100644 --- a/os/hal/platforms/STM32/SPIv2/spi_lld.c +++ b/os/hal/platforms/STM32/SPIv2/spi_lld.c @@ -293,7 +293,7 @@ void spi_lld_start(SPIDriver *spip) { spip->spi->CR1 = 0; spip->spi->CR1 = spip->config->cr1 | SPI_CR1_MSTR | SPI_CR1_SSM | SPI_CR1_SSI; - spip->spi->CR2 = spip->config->cr2 | SPI_CR2_SSOE | + spip->spi->CR2 = spip->config->cr2 | SPI_CR2_FRXTH | SPI_CR2_SSOE | SPI_CR2_RXDMAEN | SPI_CR2_TXDMAEN; spip->spi->CR1 |= SPI_CR1_SPE; } -- cgit v1.2.3