diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-26 11:50:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-26 11:50:35 +0000 |
commit | 95229524a642ae2cfe7f19b79a82f3e8a274b3a3 (patch) | |
tree | ccfaa06d05131fac67664f9598e6343060871bef /os/hal/ports/STM32/LLD/SPIv2 | |
parent | ccef2d248b7269766f00b9122eb1930aa1100605 (diff) | |
download | ChibiOS-95229524a642ae2cfe7f19b79a82f3e8a274b3a3.tar.gz ChibiOS-95229524a642ae2cfe7f19b79a82f3e8a274b3a3.tar.bz2 ChibiOS-95229524a642ae2cfe7f19b79a82f3e8a274b3a3.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8242 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/SPIv2')
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv2/spi_lld.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c index 8704e5a21..a31563ef4 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv2/spi_lld.c @@ -549,9 +549,6 @@ void spi_lld_ignore(SPIDriver *spip, size_t n) { void spi_lld_exchange(SPIDriver *spip, size_t n,
const void *txbuf, void *rxbuf) {
- /* DMA buffer invalidation because data cache.*/
- dmaBufferInvalidate(rxbuf, (uint8_t *)rxbuf + (n * spip->fsize));
-
dmaStreamSetMemory0(spip->dmarx, rxbuf);
dmaStreamSetTransactionSize(spip->dmarx, n);
dmaStreamSetMode(spip->dmarx, spip->rxdmamode | STM32_DMA_CR_MINC);
@@ -606,9 +603,6 @@ void spi_lld_send(SPIDriver *spip, size_t n, const void *txbuf) { */
void spi_lld_receive(SPIDriver *spip, size_t n, void *rxbuf) {
- /* DMA buffer invalidation because data cache.*/
- dmaBufferInvalidate(rxbuf, (uint8_t *)rxbuf + (n * spip->fsize));
-
dmaStreamSetMemory0(spip->dmarx, rxbuf);
dmaStreamSetTransactionSize(spip->dmarx, n);
dmaStreamSetMode(spip->dmarx, spip->rxdmamode | STM32_DMA_CR_MINC);
|