diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-03 14:48:05 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-03 14:48:05 +0000 |
commit | 28f986059cda116426dc810add559a5095aceb59 (patch) | |
tree | 0915bff8154934feb9394b0c82c266c16923c8d5 /os | |
parent | 06cdcc071c82cd139b18e21648a8f559cc07fa98 (diff) | |
download | ChibiOS-28f986059cda116426dc810add559a5095aceb59.tar.gz ChibiOS-28f986059cda116426dc810add559a5095aceb59.tar.bz2 ChibiOS-28f986059cda116426dc810add559a5095aceb59.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11216 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c | 3 |
1 files changed, 3 insertions, 0 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 b96ed9bbc..936537337 100644 --- a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c @@ -92,6 +92,9 @@ static void spi_lld_serve_rx_interrupt(SPIDriver *spip, uint32_t flags) { (void)flags;
#endif
+ /* Stopping SPI.*/
+ spip->spi->CR1 |= SPI_CR1_CSUSP;
+
/* Stop everything.*/
dmaStreamDisable(spip->dmatx);
dmaStreamDisable(spip->dmarx);
|