diff options
-rw-r--r-- | drivers/src/fsl_dspi.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |