tests: drivers: spi: loopback: Configurable large buffer
In order to allow fiting test in targets with smaller memory make large buffer configurable through Kconfig. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
28ec98a54a
commit
614e7d5399
|
@ -7,6 +7,10 @@ source "Kconfig.zephyr"
|
|||
config SPI_LOOPBACK_MODE_LOOP
|
||||
bool "Configure the SPI in LOOP mode, so that no extra wiring is needed"
|
||||
|
||||
config SPI_LARGE_BUFFER_SIZE
|
||||
int "Large buffer size"
|
||||
default 8192
|
||||
|
||||
if SOC_SERIES_STM32H7X
|
||||
|
||||
config SPI_LOOPBACK_16BITS_FRAMES
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
CONFIG_DMA=y
|
||||
CONFIG_DSPI_MCUX_EDMA=y
|
||||
CONFIG_MCUX_DSPI_BUFFER_SIZE=5760
|
||||
CONFIG_SPI_LARGE_BUFFER_SIZE=1440
|
||||
|
|
|
@ -58,13 +58,7 @@ static struct spi_dt_spec spi_slow = SPI_DT_SPEC_GET(SPI_SLOW_DEV, SPI_OP(FRAME_
|
|||
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
|
||||
#define BUF_SIZE 18
|
||||
#define BUF2_SIZE 36
|
||||
|
||||
#ifdef CONFIG_DSPI_MCUX_EDMA
|
||||
/*DSPI DMA need aligned buffer for internal*/
|
||||
#define BUF3_SIZE 1440
|
||||
#else
|
||||
#define BUF3_SIZE 8192
|
||||
#endif
|
||||
#define BUF3_SIZE CONFIG_SPI_LARGE_BUFFER_SIZE
|
||||
|
||||
|
||||
#if CONFIG_NOCACHE_MEMORY
|
||||
|
|
Loading…
Reference in New Issue