diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-12-17 00:05:07 +0100 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-12-17 00:05:07 +0100 |
commit | 0cb19d907a5551a5d64c4b553b95d25cd3eff567 (patch) | |
tree | 28510e874bb3e390f73a31214fb09cb891247cd4 | |
parent | f339e410b5ba85752385dc3d6b07cc6ac96444de (diff) |
Fix compile when SPI_DMA is not defined
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-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 |