arch/arm/src/stm32h7/stm32_spi.c: fixed build issue when SPI is configured without DMA

This commit is contained in:
Eduard Niesner 2020-10-16 22:06:24 +03:00 committed by David Sidrane
parent 1e94367eb2
commit 0544c52cbf

View File

@ -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);
/* Set result and release wait semaphore */
#ifdef CONFIG_STM32H7_SPI_DMA
priv->txresult = 0x80;
nxsem_post(&priv->txsem);
#endif
}
return 0;