We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6ad01 commit 4d82d77Copy full SHA for 4d82d77
ports/stm32/spi.c
@@ -510,6 +510,12 @@ int spi_init(const spi_t *self, bool enable_nss_pin) {
510
}
511
512
void spi_deinit(const spi_t *spi_obj) {
513
+ if (spi_obj->rx_dma_descr != NULL) {
514
+ dma_deinit(spi_obj->rx_dma_descr);
515
+ }
516
+ if (spi_obj->tx_dma_descr != NULL) {
517
+ dma_deinit(spi_obj->tx_dma_descr);
518
519
SPI_HandleTypeDef *spi = spi_obj->spi;
520
HAL_SPI_DeInit(spi);
521
if (0) {
0 commit comments