arch/arm/src/stm32h7/stm32_spi.c: fixed build issue when SPI is configured without DMA
This commit is contained in:
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);
|
||||
|
||||
/* Set result and release wait semaphore */
|
||||
|
||||
#ifdef CONFIG_STM32H7_SPI_DMA
|
||||
priv->txresult = 0x80;
|
||||
nxsem_post(&priv->txsem);
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user