samples: spi_test: Add support for using QMSI driver
Depending on the driver implementation, the name of the device will be different. Change-Id: I35395abe44727b39d930e4c123860fad7b13edfd Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
This commit is contained in:
parent
6e83effea8
commit
cedfb1f16e
1 changed files with 6 additions and 2 deletions
|
@ -35,10 +35,14 @@
|
|||
#include <spi/spi_intel.h>
|
||||
#define SPI_DRV_NAME CONFIG_SPI_INTEL_PORT_1_DRV_NAME
|
||||
#define SPI_SLAVE 0
|
||||
#else
|
||||
#define SPI_MAX_CLK_FREQ_250KHZ 131
|
||||
#elif defined(CONFIG_SPI_DW)
|
||||
#define SPI_MAX_CLK_FREQ_250KHZ 128
|
||||
#define SPI_DRV_NAME CONFIG_SPI_DW_PORT_0_DRV_NAME
|
||||
#define SPI_SLAVE 2
|
||||
#elif defined(CONFIG_SPI_QMSI)
|
||||
#define SPI_MAX_CLK_FREQ_250KHZ 128
|
||||
#define SPI_DRV_NAME CONFIG_SPI_QMSI_PORT_0_DRV_NAME
|
||||
#define SPI_SLAVE 1
|
||||
#endif
|
||||
|
||||
unsigned char wbuf[16] = "Hello";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue