tests: add spi dma loop test on frdm_k64f
add spi edma loop mode test Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
parent
ef410ee732
commit
6232ade277
3 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
# enable DMA mode
|
||||||
|
CONFIG_DMA=y
|
||||||
|
CONFIG_DSPI_MCUX_EDMA=y
|
||||||
|
CONFIG_MCUX_DSPI_BUFFER_SIZE=144
|
||||||
|
CONFIG_SPI_LOOPBACK_FAST_FREQ=1000000
|
|
@ -430,6 +430,11 @@ static int spi_rx_every_4(const struct device *dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_DSPI_MCUX_EDMA)) {
|
||||||
|
LOG_INF("Skip every 4");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
LOG_INF("Start every 4");
|
LOG_INF("Start every 4");
|
||||||
|
|
||||||
(void)memset(buffer_rx, 0, BUF_SIZE);
|
(void)memset(buffer_rx, 0, BUF_SIZE);
|
||||||
|
|
|
@ -10,3 +10,10 @@ tests:
|
||||||
fixture: spi_loopback
|
fixture: spi_loopback
|
||||||
driver.spi.loopback.internal:
|
driver.spi.loopback.internal:
|
||||||
filter: CONFIG_SPI_LOOPBACK_MODE_LOOP
|
filter: CONFIG_SPI_LOOPBACK_MODE_LOOP
|
||||||
|
drivers.mcux_dspi_dma.loopback:
|
||||||
|
tags: dma
|
||||||
|
harness: ztest
|
||||||
|
extra_args: OVERLAY_CONFIG="overlay-mcux-dspi-dma.conf"
|
||||||
|
harness_config:
|
||||||
|
fixture: spi_loopback
|
||||||
|
platform_allow: frdm_k64f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue