mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch/arm/src/stm32h7/stm32_spi.c: fixed build issue when SPI is configured without DMA
This commit is contained in:
committed by
David Sidrane
parent
1e94367eb2
commit
0544c52cbf
@@ -1022,9 +1022,10 @@ static int spi_interrupt(int irq, void *context, void *arg)
|
|||||||
spi_modifyreg(priv, STM32_SPI_IER_OFFSET, SPI_IER_EOTIE, 0);
|
spi_modifyreg(priv, STM32_SPI_IER_OFFSET, SPI_IER_EOTIE, 0);
|
||||||
|
|
||||||
/* Set result and release wait semaphore */
|
/* Set result and release wait semaphore */
|
||||||
|
#ifdef CONFIG_STM32H7_SPI_DMA
|
||||||
priv->txresult = 0x80;
|
priv->txresult = 0x80;
|
||||||
nxsem_post(&priv->txsem);
|
nxsem_post(&priv->txsem);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user