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 64687ba commit 9b5af21Copy full SHA for 9b5af21
Src/stm32h7xx_hal_spi.c
@@ -2781,6 +2781,15 @@ HAL_StatusTypeDef HAL_SPI_Abort_IT(SPI_HandleTypeDef *hspi)
2781
/* If DMA Tx and/or DMA Rx Handles are associated to SPI Handle, DMA Abort complete callbacks should be initialized
2782
before any call to DMA Abort functions */
2783
2784
+ if (hspi->hdmarx != NULL)
2785
+ {
2786
+ if (HAL_IS_BIT_SET(hspi->Instance->CFG1, SPI_CFG1_RXDMAEN))
2787
2788
+ /* Set DMA Abort Complete callback if SPI DMA Rx request if enabled */
2789
+ hspi->hdmarx->XferAbortCallback = SPI_DMARxAbortCallback;
2790
+ }
2791
2792
+
2793
if (hspi->hdmatx != NULL)
2794
{
2795
if (HAL_IS_BIT_SET(hspi->Instance->CFG1, SPI_CFG1_TXDMAEN))
0 commit comments