Fixed yet another problem (thanks Andy).
@@ -160,7 +160,6 @@ | ||
160 | 160 | /* Waiting for current frame completion then stop SPI.*/ |
161 | 161 | while ((spip->spi->SR & SPI_SR_BSY) != 0U) { |
162 | 162 | } |
163 | - spip->spi->CR1 &= ~SPI_CR1_SPE; | |
164 | 163 | |
165 | 164 | /* Now it is idle, stopping RX DMA channel.*/ |
166 | 165 | dmaStreamDisable(spip->dmarx); |