From bfa7b480a7a537fc5496c8d9ffbf560f3a02314d Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 30 Sep 2014 22:26:59 +0100 Subject: stmhal: For spi_init, add argument to select if NSS pin is enabled. Most of the time you don't use the NSS pin of the SPI bus, and so it shouldn't be enabled by default (this gave some bugs in the past). --- drivers/cc3000/src/ccspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/cc3000/src/ccspi.c b/drivers/cc3000/src/ccspi.c index 2abc637fe..81ea5628d 100644 --- a/drivers/cc3000/src/ccspi.c +++ b/drivers/cc3000/src/ccspi.c @@ -153,7 +153,7 @@ void SpiOpen(gcSpiHandleRx pfRxHandler) SPI_HANDLE->Init.TIMode = SPI_TIMODE_DISABLED; SPI_HANDLE->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLED; SPI_HANDLE->Init.CRCPolynomial = 7; - spi_init(SPI_HANDLE); + spi_init(SPI_HANDLE, false); // configure wlan CS and EN pins GPIO_InitTypeDef GPIO_InitStructure; -- cgit v1.2.3