tests: Update spi driver test for mcux
Jira: ZEP-1374 Change-Id: Ibd66df42919d085666cfd7e98bea5c808d8d54e0 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
e1c9dfcee5
commit
06bd605da3
2 changed files with 7 additions and 4 deletions
|
@ -11,12 +11,12 @@
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <misc/printk.h>
|
#include <misc/printk.h>
|
||||||
|
|
||||||
#define SPI_DRV_NAME "SPI_0"
|
#define SPI_DRV_NAME CONFIG_SPI_0_NAME
|
||||||
|
|
||||||
#ifdef CONFIG_SPI_INTEL
|
#ifdef CONFIG_SPI_INTEL
|
||||||
#include <spi/spi_intel.h>
|
#include <spi/spi_intel.h>
|
||||||
#if defined(CONFIG_SPI_1)
|
#if defined(CONFIG_SPI_1)
|
||||||
#define SPI_DRV_NAME "SPI_1"
|
#define SPI_DRV_NAME CONFIG_SPI_1_NAME
|
||||||
#endif
|
#endif
|
||||||
#define SPI_SLAVE 0
|
#define SPI_SLAVE 0
|
||||||
#elif defined(CONFIG_SPI_DW)
|
#elif defined(CONFIG_SPI_DW)
|
||||||
|
@ -25,6 +25,9 @@
|
||||||
#elif defined(CONFIG_SPI_QMSI)
|
#elif defined(CONFIG_SPI_QMSI)
|
||||||
#define SPI_MAX_CLK_FREQ_250KHZ 128
|
#define SPI_MAX_CLK_FREQ_250KHZ 128
|
||||||
#define SPI_SLAVE 1
|
#define SPI_SLAVE 1
|
||||||
|
#elif defined(CONFIG_SPI_MCUX)
|
||||||
|
#define SPI_MAX_CLK_FREQ_250KHZ KHZ(250)
|
||||||
|
#define SPI_SLAVE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned char wbuf[16] = "Hello";
|
unsigned char wbuf[16] = "Hello";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[test]
|
[test]
|
||||||
build_only = true
|
build_only = true
|
||||||
tags = apps
|
tags = apps
|
||||||
arch_whitelist = x86
|
arch_whitelist = x86 arm
|
||||||
platform_whitelist = galileo arduino_101 quark_se_c1000_devboard
|
platform_whitelist = galileo arduino_101 quark_se_c1000_devboard frdm_k64f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue