Skip to content

Commit 1eba62c

Browse files
author
Daniel Campora
committed
cc3200: Remove unneeded SPI instruction in the simplelink driver.
Setting the word count before a SPI transaction is only needed when using DMA.
1 parent 1826036 commit 1eba62c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cc3200/simplelink/cc_pal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ int spi_Read(Fd_t fd, unsigned char *pBuff, int len)
310310
return -1;
311311
}
312312

313-
MAP_SPIWordCountSet(LSPI_BASE, 0);
314313
return spi_Read_CPU(pBuff, len);
315314
}
316315

@@ -340,7 +339,6 @@ int spi_Write(Fd_t fd, unsigned char *pBuff, int len)
340339
return -1;
341340
}
342341

343-
MAP_SPIWordCountSet(LSPI_BASE, 0);
344342
return spi_Write_CPU(pBuff,len);
345343
}
346344

0 commit comments

Comments
 (0)