From 0cb19d907a5551a5d64c4b553b95d25cd3eff567 Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Mon, 17 Dec 2018 00:05:07 +0100 Subject: Fix compile when SPI_DMA is not defined Signed-off-by: Dominik Sliwa --- drivers/src/fsl_dspi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/src/fsl_dspi.c b/drivers/src/fsl_dspi.c index 1ec01b3..4eddce7 100644 --- a/drivers/src/fsl_dspi.c +++ b/drivers/src/fsl_dspi.c @@ -1445,7 +1445,9 @@ void DSPI_SlaveTransferHandleIRQ(SPI_Type *base, dspi_slave_handle_t *handle) assert(handle); volatile uint32_t dataReceived; -// uint32_t dataSend = 0; +#ifndef SPI_DMA + uint32_t dataSend = 0; +#endif /* Because SPI protocol is synchronous, the number of bytes that that slave received from the * master is the actual number of bytes that the slave transmitted to the master. So we only -- cgit v1.2.3