Configuration has CC3000_SPI_MODE settings but source uses CONFIG_CC3000_SPIMODE. From Jussi Kivilinna
This commit is contained in:
parent
a9d89b5442
commit
b2d26436de
|
@ -271,9 +271,9 @@ static void usdelay(long ustimeout)
|
|||
static inline void cc3000_configspi(FAR struct spi_dev_s *spi)
|
||||
{
|
||||
ndbg("Mode: %d Bits: 8 Frequency: %d\n",
|
||||
CONFIG_CC3000_SPIMODE, CONFIG_CC3000_SPI_FREQUENCY);
|
||||
CONFIG_CC3000_SPI_MODE, CONFIG_CC3000_SPI_FREQUENCY);
|
||||
|
||||
SPI_SETMODE(spi, CONFIG_CC3000_SPIMODE);
|
||||
SPI_SETMODE(spi, CONFIG_CC3000_SPI_MODE);
|
||||
SPI_SETBITS(spi, 8);
|
||||
SPI_SETFREQUENCY(spi, CONFIG_CC3000_SPI_FREQUENCY);
|
||||
}
|
||||
|
|
|
@ -75,12 +75,12 @@
|
|||
# define CONFIG_CC3000_NPOLLWAITERS 2
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_CC3000_SPIMODE
|
||||
#ifndef CONFIG_CC3000_SPI_MODE
|
||||
/* CPOL = 0, CPHA = 1 Sample Data Falling Edge of Clock
|
||||
* See http://processors.wiki.ti.com/index.php/CC3000_Serial_Port_Interface_(SPI)
|
||||
*/
|
||||
|
||||
# define CONFIG_CC3000_SPIMODE SPIDEV_MODE1
|
||||
# define CONFIG_CC3000_SPI_MODE SPIDEV_MODE1
|
||||
#endif
|
||||
|
||||
/* Check for some required settings. This can save the user a lot of time
|
||||
|
|
Loading…
Reference in New Issue