mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
cc3200: Remove unneeded SPI instruction in the simplelink driver.
Setting the word count before a SPI transaction is only needed when using DMA.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user