summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-03-26 20:47:51 +0100
committerDaniel Campora <daniel@wipy.io>2015-03-26 20:50:39 +0100
commit1eba62cac9473b69712effb3fa30bb3f9f9b6b1b (patch)
treee0f3c83625fd5a89a5d97b55a3ab11c5f88dde7e
parent1826036a8363de825668185c3d5b4efd2820d353 (diff)
downloadmicropython-1eba62cac9473b69712effb3fa30bb3f9f9b6b1b.tar.gz
micropython-1eba62cac9473b69712effb3fa30bb3f9f9b6b1b.zip
cc3200: Remove unneeded SPI instruction in the simplelink driver.
Setting the word count before a SPI transaction is only needed when using DMA.
-rw-r--r--cc3200/simplelink/cc_pal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cc3200/simplelink/cc_pal.c b/cc3200/simplelink/cc_pal.c
index cc29ec1fc9..7b0be5d13e 100644
--- a/cc3200/simplelink/cc_pal.c
+++ b/cc3200/simplelink/cc_pal.c
@@ -310,7 +310,6 @@ int spi_Read(Fd_t fd, unsigned char *pBuff, int len)
return -1;
}
- MAP_SPIWordCountSet(LSPI_BASE, 0);
return spi_Read_CPU(pBuff, len);
}
@@ -340,7 +339,6 @@ int spi_Write(Fd_t fd, unsigned char *pBuff, int len)
return -1;
}
- MAP_SPIWordCountSet(LSPI_BASE, 0);
return spi_Write_CPU(pBuff,len);
}